LaravelTest
3069 строк · 101.8 Кб
1/*!
2* AdminLTE v3.2.0 (https://adminlte.io)
3* Copyright 2014-2022 Colorlib <https://colorlib.com>
4* Licensed under MIT (https://github.com/ColorlibHQ/AdminLTE/blob/master/LICENSE)
5*/
6(function (global, factory) {7typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery')) :8typeof define === 'function' && define.amd ? define(['exports', 'jquery'], factory) :9(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.adminlte = {}, global.jQuery));10})(this, (function (exports, $) { 'use strict';11
12function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }13
14var $__default = /*#__PURE__*/_interopDefaultLegacy($);15
16/**17* --------------------------------------------
18* AdminLTE CardRefresh.js
19* License MIT
20* --------------------------------------------
21*/
22/**23* Constants
24* ====================================================
25*/
26
27var NAME$e = 'CardRefresh';28var DATA_KEY$e = 'lte.cardrefresh';29var EVENT_KEY$7 = "." + DATA_KEY$e;30var JQUERY_NO_CONFLICT$e = $__default["default"].fn[NAME$e];31var EVENT_LOADED = "loaded" + EVENT_KEY$7;32var EVENT_OVERLAY_ADDED = "overlay.added" + EVENT_KEY$7;33var EVENT_OVERLAY_REMOVED = "overlay.removed" + EVENT_KEY$7;34var CLASS_NAME_CARD$1 = 'card';35var SELECTOR_CARD$1 = "." + CLASS_NAME_CARD$1;36var SELECTOR_DATA_REFRESH = '[data-card-widget="card-refresh"]';37var Default$c = {38source: '',39sourceSelector: '',40params: {},41trigger: SELECTOR_DATA_REFRESH,42content: '.card-body',43loadInContent: true,44loadOnInit: true,45loadErrorTemplate: true,46responseType: '',47overlayTemplate: '<div class="overlay"><i class="fas fa-2x fa-sync-alt fa-spin"></i></div>',48errorTemplate: '<span class="text-danger"></span>',49onLoadStart: function onLoadStart() {},50onLoadDone: function onLoadDone(response) {51return response;52},53onLoadFail: function onLoadFail(_jqXHR, _textStatus, _errorThrown) {}54};55
56var CardRefresh = /*#__PURE__*/function () {57function CardRefresh(element, settings) {58this._element = element;59this._parent = element.parents(SELECTOR_CARD$1).first();60this._settings = $__default["default"].extend({}, Default$c, settings);61this._overlay = $__default["default"](this._settings.overlayTemplate);62
63if (element.hasClass(CLASS_NAME_CARD$1)) {64this._parent = element;65}66
67if (this._settings.source === '') {68throw new Error('Source url was not defined. Please specify a url in your CardRefresh source option.');69}70}71
72var _proto = CardRefresh.prototype;73
74_proto.load = function load() {75var _this = this;76
77this._addOverlay();78
79this._settings.onLoadStart.call($__default["default"](this));80
81$__default["default"].get(this._settings.source, this._settings.params, function (response) {82if (_this._settings.loadInContent) {83if (_this._settings.sourceSelector !== '') {84response = $__default["default"](response).find(_this._settings.sourceSelector).html();85}86
87_this._parent.find(_this._settings.content).html(response);88}89
90_this._settings.onLoadDone.call($__default["default"](_this), response);91
92_this._removeOverlay();93}, this._settings.responseType !== '' && this._settings.responseType).fail(function (jqXHR, textStatus, errorThrown) {94_this._removeOverlay();95
96if (_this._settings.loadErrorTemplate) {97var msg = $__default["default"](_this._settings.errorTemplate).text(errorThrown);98
99_this._parent.find(_this._settings.content).empty().append(msg);100}101
102_this._settings.onLoadFail.call($__default["default"](_this), jqXHR, textStatus, errorThrown);103});104$__default["default"](this._element).trigger($__default["default"].Event(EVENT_LOADED));105};106
107_proto._addOverlay = function _addOverlay() {108this._parent.append(this._overlay);109
110$__default["default"](this._element).trigger($__default["default"].Event(EVENT_OVERLAY_ADDED));111};112
113_proto._removeOverlay = function _removeOverlay() {114this._parent.find(this._overlay).remove();115
116$__default["default"](this._element).trigger($__default["default"].Event(EVENT_OVERLAY_REMOVED));117} // Private118;119
120_proto._init = function _init() {121var _this2 = this;122
123$__default["default"](this).find(this._settings.trigger).on('click', function () {124_this2.load();125});126
127if (this._settings.loadOnInit) {128this.load();129}130} // Static131;132
133CardRefresh._jQueryInterface = function _jQueryInterface(config) {134var data = $__default["default"](this).data(DATA_KEY$e);135
136var _options = $__default["default"].extend({}, Default$c, $__default["default"](this).data());137
138if (!data) {139data = new CardRefresh($__default["default"](this), _options);140$__default["default"](this).data(DATA_KEY$e, typeof config === 'string' ? data : config);141}142
143if (typeof config === 'string' && /load/.test(config)) {144data[config]();145} else {146data._init($__default["default"](this));147}148};149
150return CardRefresh;151}();152/**153* Data API
154* ====================================================
155*/
156
157
158$__default["default"](document).on('click', SELECTOR_DATA_REFRESH, function (event) {159if (event) {160event.preventDefault();161}162
163CardRefresh._jQueryInterface.call($__default["default"](this), 'load');164});165$__default["default"](function () {166$__default["default"](SELECTOR_DATA_REFRESH).each(function () {167CardRefresh._jQueryInterface.call($__default["default"](this));168});169});170/**171* jQuery API
172* ====================================================
173*/
174
175$__default["default"].fn[NAME$e] = CardRefresh._jQueryInterface;176$__default["default"].fn[NAME$e].Constructor = CardRefresh;177
178$__default["default"].fn[NAME$e].noConflict = function () {179$__default["default"].fn[NAME$e] = JQUERY_NO_CONFLICT$e;180return CardRefresh._jQueryInterface;181};182
183/**184* --------------------------------------------
185* AdminLTE CardWidget.js
186* License MIT
187* --------------------------------------------
188*/
189/**190* Constants
191* ====================================================
192*/
193
194var NAME$d = 'CardWidget';195var DATA_KEY$d = 'lte.cardwidget';196var EVENT_KEY$6 = "." + DATA_KEY$d;197var JQUERY_NO_CONFLICT$d = $__default["default"].fn[NAME$d];198var EVENT_EXPANDED$3 = "expanded" + EVENT_KEY$6;199var EVENT_COLLAPSED$4 = "collapsed" + EVENT_KEY$6;200var EVENT_MAXIMIZED = "maximized" + EVENT_KEY$6;201var EVENT_MINIMIZED = "minimized" + EVENT_KEY$6;202var EVENT_REMOVED$1 = "removed" + EVENT_KEY$6;203var CLASS_NAME_CARD = 'card';204var CLASS_NAME_COLLAPSED$1 = 'collapsed-card';205var CLASS_NAME_COLLAPSING = 'collapsing-card';206var CLASS_NAME_EXPANDING = 'expanding-card';207var CLASS_NAME_WAS_COLLAPSED = 'was-collapsed';208var CLASS_NAME_MAXIMIZED = 'maximized-card';209var SELECTOR_DATA_REMOVE = '[data-card-widget="remove"]';210var SELECTOR_DATA_COLLAPSE = '[data-card-widget="collapse"]';211var SELECTOR_DATA_MAXIMIZE = '[data-card-widget="maximize"]';212var SELECTOR_CARD = "." + CLASS_NAME_CARD;213var SELECTOR_CARD_HEADER = '.card-header';214var SELECTOR_CARD_BODY = '.card-body';215var SELECTOR_CARD_FOOTER = '.card-footer';216var Default$b = {217animationSpeed: 'normal',218collapseTrigger: SELECTOR_DATA_COLLAPSE,219removeTrigger: SELECTOR_DATA_REMOVE,220maximizeTrigger: SELECTOR_DATA_MAXIMIZE,221collapseIcon: 'fa-minus',222expandIcon: 'fa-plus',223maximizeIcon: 'fa-expand',224minimizeIcon: 'fa-compress'225};226
227var CardWidget = /*#__PURE__*/function () {228function CardWidget(element, settings) {229this._element = element;230this._parent = element.parents(SELECTOR_CARD).first();231
232if (element.hasClass(CLASS_NAME_CARD)) {233this._parent = element;234}235
236this._settings = $__default["default"].extend({}, Default$b, settings);237}238
239var _proto = CardWidget.prototype;240
241_proto.collapse = function collapse() {242var _this = this;243
244this._parent.addClass(CLASS_NAME_COLLAPSING).children(SELECTOR_CARD_BODY + ", " + SELECTOR_CARD_FOOTER).slideUp(this._settings.animationSpeed, function () {245_this._parent.addClass(CLASS_NAME_COLLAPSED$1).removeClass(CLASS_NAME_COLLAPSING);246});247
248this._parent.find("> " + SELECTOR_CARD_HEADER + " " + this._settings.collapseTrigger + " ." + this._settings.collapseIcon).addClass(this._settings.expandIcon).removeClass(this._settings.collapseIcon);249
250this._element.trigger($__default["default"].Event(EVENT_COLLAPSED$4), this._parent);251};252
253_proto.expand = function expand() {254var _this2 = this;255
256this._parent.addClass(CLASS_NAME_EXPANDING).children(SELECTOR_CARD_BODY + ", " + SELECTOR_CARD_FOOTER).slideDown(this._settings.animationSpeed, function () {257_this2._parent.removeClass(CLASS_NAME_COLLAPSED$1).removeClass(CLASS_NAME_EXPANDING);258});259
260this._parent.find("> " + SELECTOR_CARD_HEADER + " " + this._settings.collapseTrigger + " ." + this._settings.expandIcon).addClass(this._settings.collapseIcon).removeClass(this._settings.expandIcon);261
262this._element.trigger($__default["default"].Event(EVENT_EXPANDED$3), this._parent);263};264
265_proto.remove = function remove() {266this._parent.slideUp();267
268this._element.trigger($__default["default"].Event(EVENT_REMOVED$1), this._parent);269};270
271_proto.toggle = function toggle() {272if (this._parent.hasClass(CLASS_NAME_COLLAPSED$1)) {273this.expand();274return;275}276
277this.collapse();278};279
280_proto.maximize = function maximize() {281this._parent.find(this._settings.maximizeTrigger + " ." + this._settings.maximizeIcon).addClass(this._settings.minimizeIcon).removeClass(this._settings.maximizeIcon);282
283this._parent.css({284height: this._parent.height(),285width: this._parent.width(),286transition: 'all .15s'287}).delay(150).queue(function () {288var $element = $__default["default"](this);289$element.addClass(CLASS_NAME_MAXIMIZED);290$__default["default"]('html').addClass(CLASS_NAME_MAXIMIZED);291
292if ($element.hasClass(CLASS_NAME_COLLAPSED$1)) {293$element.addClass(CLASS_NAME_WAS_COLLAPSED);294}295
296$element.dequeue();297});298
299this._element.trigger($__default["default"].Event(EVENT_MAXIMIZED), this._parent);300};301
302_proto.minimize = function minimize() {303this._parent.find(this._settings.maximizeTrigger + " ." + this._settings.minimizeIcon).addClass(this._settings.maximizeIcon).removeClass(this._settings.minimizeIcon);304
305this._parent.css('cssText', "height: " + this._parent[0].style.height + " !important; width: " + this._parent[0].style.width + " !important; transition: all .15s;").delay(10).queue(function () {306var $element = $__default["default"](this);307$element.removeClass(CLASS_NAME_MAXIMIZED);308$__default["default"]('html').removeClass(CLASS_NAME_MAXIMIZED);309$element.css({310height: 'inherit',311width: 'inherit'312});313
314if ($element.hasClass(CLASS_NAME_WAS_COLLAPSED)) {315$element.removeClass(CLASS_NAME_WAS_COLLAPSED);316}317
318$element.dequeue();319});320
321this._element.trigger($__default["default"].Event(EVENT_MINIMIZED), this._parent);322};323
324_proto.toggleMaximize = function toggleMaximize() {325if (this._parent.hasClass(CLASS_NAME_MAXIMIZED)) {326this.minimize();327return;328}329
330this.maximize();331} // Private332;333
334_proto._init = function _init(card) {335var _this3 = this;336
337this._parent = card;338$__default["default"](this).find(this._settings.collapseTrigger).click(function () {339_this3.toggle();340});341$__default["default"](this).find(this._settings.maximizeTrigger).click(function () {342_this3.toggleMaximize();343});344$__default["default"](this).find(this._settings.removeTrigger).click(function () {345_this3.remove();346});347} // Static348;349
350CardWidget._jQueryInterface = function _jQueryInterface(config) {351var data = $__default["default"](this).data(DATA_KEY$d);352
353var _options = $__default["default"].extend({}, Default$b, $__default["default"](this).data());354
355if (!data) {356data = new CardWidget($__default["default"](this), _options);357$__default["default"](this).data(DATA_KEY$d, typeof config === 'string' ? data : config);358}359
360if (typeof config === 'string' && /collapse|expand|remove|toggle|maximize|minimize|toggleMaximize/.test(config)) {361data[config]();362} else if (typeof config === 'object') {363data._init($__default["default"](this));364}365};366
367return CardWidget;368}();369/**370* Data API
371* ====================================================
372*/
373
374
375$__default["default"](document).on('click', SELECTOR_DATA_COLLAPSE, function (event) {376if (event) {377event.preventDefault();378}379
380CardWidget._jQueryInterface.call($__default["default"](this), 'toggle');381});382$__default["default"](document).on('click', SELECTOR_DATA_REMOVE, function (event) {383if (event) {384event.preventDefault();385}386
387CardWidget._jQueryInterface.call($__default["default"](this), 'remove');388});389$__default["default"](document).on('click', SELECTOR_DATA_MAXIMIZE, function (event) {390if (event) {391event.preventDefault();392}393
394CardWidget._jQueryInterface.call($__default["default"](this), 'toggleMaximize');395});396/**397* jQuery API
398* ====================================================
399*/
400
401$__default["default"].fn[NAME$d] = CardWidget._jQueryInterface;402$__default["default"].fn[NAME$d].Constructor = CardWidget;403
404$__default["default"].fn[NAME$d].noConflict = function () {405$__default["default"].fn[NAME$d] = JQUERY_NO_CONFLICT$d;406return CardWidget._jQueryInterface;407};408
409/**410* --------------------------------------------
411* AdminLTE ControlSidebar.js
412* License MIT
413* --------------------------------------------
414*/
415/**416* Constants
417* ====================================================
418*/
419
420var NAME$c = 'ControlSidebar';421var DATA_KEY$c = 'lte.controlsidebar';422var EVENT_KEY$5 = "." + DATA_KEY$c;423var JQUERY_NO_CONFLICT$c = $__default["default"].fn[NAME$c];424var EVENT_COLLAPSED$3 = "collapsed" + EVENT_KEY$5;425var EVENT_COLLAPSED_DONE$1 = "collapsed-done" + EVENT_KEY$5;426var EVENT_EXPANDED$2 = "expanded" + EVENT_KEY$5;427var SELECTOR_CONTROL_SIDEBAR = '.control-sidebar';428var SELECTOR_CONTROL_SIDEBAR_CONTENT$1 = '.control-sidebar-content';429var SELECTOR_DATA_TOGGLE$4 = '[data-widget="control-sidebar"]';430var SELECTOR_HEADER$1 = '.main-header';431var SELECTOR_FOOTER$1 = '.main-footer';432var CLASS_NAME_CONTROL_SIDEBAR_ANIMATE = 'control-sidebar-animate';433var CLASS_NAME_CONTROL_SIDEBAR_OPEN$1 = 'control-sidebar-open';434var CLASS_NAME_CONTROL_SIDEBAR_SLIDE = 'control-sidebar-slide-open';435var CLASS_NAME_LAYOUT_FIXED$1 = 'layout-fixed';436var CLASS_NAME_NAVBAR_FIXED = 'layout-navbar-fixed';437var CLASS_NAME_NAVBAR_SM_FIXED = 'layout-sm-navbar-fixed';438var CLASS_NAME_NAVBAR_MD_FIXED = 'layout-md-navbar-fixed';439var CLASS_NAME_NAVBAR_LG_FIXED = 'layout-lg-navbar-fixed';440var CLASS_NAME_NAVBAR_XL_FIXED = 'layout-xl-navbar-fixed';441var CLASS_NAME_FOOTER_FIXED = 'layout-footer-fixed';442var CLASS_NAME_FOOTER_SM_FIXED = 'layout-sm-footer-fixed';443var CLASS_NAME_FOOTER_MD_FIXED = 'layout-md-footer-fixed';444var CLASS_NAME_FOOTER_LG_FIXED = 'layout-lg-footer-fixed';445var CLASS_NAME_FOOTER_XL_FIXED = 'layout-xl-footer-fixed';446var Default$a = {447controlsidebarSlide: true,448scrollbarTheme: 'os-theme-light',449scrollbarAutoHide: 'l',450target: SELECTOR_CONTROL_SIDEBAR,451animationSpeed: 300452};453/**454* Class Definition
455* ====================================================
456*/
457
458var ControlSidebar = /*#__PURE__*/function () {459function ControlSidebar(element, config) {460this._element = element;461this._config = config;462} // Public463
464
465var _proto = ControlSidebar.prototype;466
467_proto.collapse = function collapse() {468var _this = this;469
470var $body = $__default["default"]('body');471var $html = $__default["default"]('html'); // Show the control sidebar472
473if (this._config.controlsidebarSlide) {474$html.addClass(CLASS_NAME_CONTROL_SIDEBAR_ANIMATE);475$body.removeClass(CLASS_NAME_CONTROL_SIDEBAR_SLIDE).delay(300).queue(function () {476$__default["default"](SELECTOR_CONTROL_SIDEBAR).hide();477$html.removeClass(CLASS_NAME_CONTROL_SIDEBAR_ANIMATE);478$__default["default"](this).dequeue();479});480} else {481$body.removeClass(CLASS_NAME_CONTROL_SIDEBAR_OPEN$1);482}483
484$__default["default"](this._element).trigger($__default["default"].Event(EVENT_COLLAPSED$3));485setTimeout(function () {486$__default["default"](_this._element).trigger($__default["default"].Event(EVENT_COLLAPSED_DONE$1));487}, this._config.animationSpeed);488};489
490_proto.show = function show(toggle) {491if (toggle === void 0) {492toggle = false;493}494
495var $body = $__default["default"]('body');496var $html = $__default["default"]('html');497
498if (toggle) {499$__default["default"](SELECTOR_CONTROL_SIDEBAR).hide();500} // Collapse the control sidebar501
502
503if (this._config.controlsidebarSlide) {504$html.addClass(CLASS_NAME_CONTROL_SIDEBAR_ANIMATE);505$__default["default"](this._config.target).show().delay(10).queue(function () {506$body.addClass(CLASS_NAME_CONTROL_SIDEBAR_SLIDE).delay(300).queue(function () {507$html.removeClass(CLASS_NAME_CONTROL_SIDEBAR_ANIMATE);508$__default["default"](this).dequeue();509});510$__default["default"](this).dequeue();511});512} else {513$body.addClass(CLASS_NAME_CONTROL_SIDEBAR_OPEN$1);514}515
516this._fixHeight();517
518this._fixScrollHeight();519
520$__default["default"](this._element).trigger($__default["default"].Event(EVENT_EXPANDED$2));521};522
523_proto.toggle = function toggle() {524var $body = $__default["default"]('body');525var target = this._config.target;526var notVisible = !$__default["default"](target).is(':visible');527var shouldClose = $body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_OPEN$1) || $body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_SLIDE);528var shouldToggle = notVisible && ($body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_OPEN$1) || $body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_SLIDE));529
530if (notVisible || shouldToggle) {531// Open the control sidebar532this.show(notVisible);533} else if (shouldClose) {534// Close the control sidebar535this.collapse();536}537} // Private538;539
540_proto._init = function _init() {541var _this2 = this;542
543var $body = $__default["default"]('body');544var shouldNotHideAll = $body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_OPEN$1) || $body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_SLIDE);545
546if (shouldNotHideAll) {547$__default["default"](SELECTOR_CONTROL_SIDEBAR).not(this._config.target).hide();548$__default["default"](this._config.target).css('display', 'block');549} else {550$__default["default"](SELECTOR_CONTROL_SIDEBAR).hide();551}552
553this._fixHeight();554
555this._fixScrollHeight();556
557$__default["default"](window).resize(function () {558_this2._fixHeight();559
560_this2._fixScrollHeight();561});562$__default["default"](window).scroll(function () {563var $body = $__default["default"]('body');564var shouldFixHeight = $body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_OPEN$1) || $body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_SLIDE);565
566if (shouldFixHeight) {567_this2._fixScrollHeight();568}569});570};571
572_proto._isNavbarFixed = function _isNavbarFixed() {573var $body = $__default["default"]('body');574return $body.hasClass(CLASS_NAME_NAVBAR_FIXED) || $body.hasClass(CLASS_NAME_NAVBAR_SM_FIXED) || $body.hasClass(CLASS_NAME_NAVBAR_MD_FIXED) || $body.hasClass(CLASS_NAME_NAVBAR_LG_FIXED) || $body.hasClass(CLASS_NAME_NAVBAR_XL_FIXED);575};576
577_proto._isFooterFixed = function _isFooterFixed() {578var $body = $__default["default"]('body');579return $body.hasClass(CLASS_NAME_FOOTER_FIXED) || $body.hasClass(CLASS_NAME_FOOTER_SM_FIXED) || $body.hasClass(CLASS_NAME_FOOTER_MD_FIXED) || $body.hasClass(CLASS_NAME_FOOTER_LG_FIXED) || $body.hasClass(CLASS_NAME_FOOTER_XL_FIXED);580};581
582_proto._fixScrollHeight = function _fixScrollHeight() {583var $body = $__default["default"]('body');584var $controlSidebar = $__default["default"](this._config.target);585
586if (!$body.hasClass(CLASS_NAME_LAYOUT_FIXED$1)) {587return;588}589
590var heights = {591scroll: $__default["default"](document).height(),592window: $__default["default"](window).height(),593header: $__default["default"](SELECTOR_HEADER$1).outerHeight(),594footer: $__default["default"](SELECTOR_FOOTER$1).outerHeight()595};596var positions = {597bottom: Math.abs(heights.window + $__default["default"](window).scrollTop() - heights.scroll),598top: $__default["default"](window).scrollTop()599};600var navbarFixed = this._isNavbarFixed() && $__default["default"](SELECTOR_HEADER$1).css('position') === 'fixed';601var footerFixed = this._isFooterFixed() && $__default["default"](SELECTOR_FOOTER$1).css('position') === 'fixed';602var $controlsidebarContent = $__default["default"](this._config.target + ", " + this._config.target + " " + SELECTOR_CONTROL_SIDEBAR_CONTENT$1);603
604if (positions.top === 0 && positions.bottom === 0) {605$controlSidebar.css({606bottom: heights.footer,607top: heights.header608});609$controlsidebarContent.css('height', heights.window - (heights.header + heights.footer));610} else if (positions.bottom <= heights.footer) {611if (footerFixed === false) {612var top = heights.header - positions.top;613$controlSidebar.css('bottom', heights.footer - positions.bottom).css('top', top >= 0 ? top : 0);614$controlsidebarContent.css('height', heights.window - (heights.footer - positions.bottom));615} else {616$controlSidebar.css('bottom', heights.footer);617}618} else if (positions.top <= heights.header) {619if (navbarFixed === false) {620$controlSidebar.css('top', heights.header - positions.top);621$controlsidebarContent.css('height', heights.window - (heights.header - positions.top));622} else {623$controlSidebar.css('top', heights.header);624}625} else if (navbarFixed === false) {626$controlSidebar.css('top', 0);627$controlsidebarContent.css('height', heights.window);628} else {629$controlSidebar.css('top', heights.header);630}631
632if (footerFixed && navbarFixed) {633$controlsidebarContent.css('height', '100%');634$controlSidebar.css('height', '');635} else if (footerFixed || navbarFixed) {636$controlsidebarContent.css('height', '100%');637$controlsidebarContent.css('height', '');638}639};640
641_proto._fixHeight = function _fixHeight() {642var $body = $__default["default"]('body');643var $controlSidebar = $__default["default"](this._config.target + " " + SELECTOR_CONTROL_SIDEBAR_CONTENT$1);644
645if (!$body.hasClass(CLASS_NAME_LAYOUT_FIXED$1)) {646$controlSidebar.attr('style', '');647return;648}649
650var heights = {651window: $__default["default"](window).height(),652header: $__default["default"](SELECTOR_HEADER$1).outerHeight(),653footer: $__default["default"](SELECTOR_FOOTER$1).outerHeight()654};655var sidebarHeight = heights.window - heights.header;656
657if (this._isFooterFixed() && $__default["default"](SELECTOR_FOOTER$1).css('position') === 'fixed') {658sidebarHeight = heights.window - heights.header - heights.footer;659}660
661$controlSidebar.css('height', sidebarHeight);662
663if (typeof $__default["default"].fn.overlayScrollbars !== 'undefined') {664$controlSidebar.overlayScrollbars({665className: this._config.scrollbarTheme,666sizeAutoCapable: true,667scrollbars: {668autoHide: this._config.scrollbarAutoHide,669clickScrolling: true670}671});672}673} // Static674;675
676ControlSidebar._jQueryInterface = function _jQueryInterface(operation) {677return this.each(function () {678var data = $__default["default"](this).data(DATA_KEY$c);679
680var _options = $__default["default"].extend({}, Default$a, $__default["default"](this).data());681
682if (!data) {683data = new ControlSidebar(this, _options);684$__default["default"](this).data(DATA_KEY$c, data);685}686
687if (data[operation] === 'undefined') {688throw new Error(operation + " is not a function");689}690
691data[operation]();692});693};694
695return ControlSidebar;696}();697/**698*
699* Data Api implementation
700* ====================================================
701*/
702
703
704$__default["default"](document).on('click', SELECTOR_DATA_TOGGLE$4, function (event) {705event.preventDefault();706
707ControlSidebar._jQueryInterface.call($__default["default"](this), 'toggle');708});709$__default["default"](document).ready(function () {710ControlSidebar._jQueryInterface.call($__default["default"](SELECTOR_DATA_TOGGLE$4), '_init');711});712/**713* jQuery API
714* ====================================================
715*/
716
717$__default["default"].fn[NAME$c] = ControlSidebar._jQueryInterface;718$__default["default"].fn[NAME$c].Constructor = ControlSidebar;719
720$__default["default"].fn[NAME$c].noConflict = function () {721$__default["default"].fn[NAME$c] = JQUERY_NO_CONFLICT$c;722return ControlSidebar._jQueryInterface;723};724
725/**726* --------------------------------------------
727* AdminLTE DirectChat.js
728* License MIT
729* --------------------------------------------
730*/
731/**732* Constants
733* ====================================================
734*/
735
736var NAME$b = 'DirectChat';737var DATA_KEY$b = 'lte.directchat';738var EVENT_KEY$4 = "." + DATA_KEY$b;739var JQUERY_NO_CONFLICT$b = $__default["default"].fn[NAME$b];740var EVENT_TOGGLED = "toggled" + EVENT_KEY$4;741var SELECTOR_DATA_TOGGLE$3 = '[data-widget="chat-pane-toggle"]';742var SELECTOR_DIRECT_CHAT = '.direct-chat';743var CLASS_NAME_DIRECT_CHAT_OPEN = 'direct-chat-contacts-open';744/**745* Class Definition
746* ====================================================
747*/
748
749var DirectChat = /*#__PURE__*/function () {750function DirectChat(element) {751this._element = element;752}753
754var _proto = DirectChat.prototype;755
756_proto.toggle = function toggle() {757$__default["default"](this._element).parents(SELECTOR_DIRECT_CHAT).first().toggleClass(CLASS_NAME_DIRECT_CHAT_OPEN);758$__default["default"](this._element).trigger($__default["default"].Event(EVENT_TOGGLED));759} // Static760;761
762DirectChat._jQueryInterface = function _jQueryInterface(config) {763return this.each(function () {764var data = $__default["default"](this).data(DATA_KEY$b);765
766if (!data) {767data = new DirectChat($__default["default"](this));768$__default["default"](this).data(DATA_KEY$b, data);769}770
771data[config]();772});773};774
775return DirectChat;776}();777/**778*
779* Data Api implementation
780* ====================================================
781*/
782
783
784$__default["default"](document).on('click', SELECTOR_DATA_TOGGLE$3, function (event) {785if (event) {786event.preventDefault();787}788
789DirectChat._jQueryInterface.call($__default["default"](this), 'toggle');790});791/**792* jQuery API
793* ====================================================
794*/
795
796$__default["default"].fn[NAME$b] = DirectChat._jQueryInterface;797$__default["default"].fn[NAME$b].Constructor = DirectChat;798
799$__default["default"].fn[NAME$b].noConflict = function () {800$__default["default"].fn[NAME$b] = JQUERY_NO_CONFLICT$b;801return DirectChat._jQueryInterface;802};803
804/**805* --------------------------------------------
806* AdminLTE Dropdown.js
807* License MIT
808* --------------------------------------------
809*/
810/**811* Constants
812* ====================================================
813*/
814
815var NAME$a = 'Dropdown';816var DATA_KEY$a = 'lte.dropdown';817var JQUERY_NO_CONFLICT$a = $__default["default"].fn[NAME$a];818var SELECTOR_NAVBAR = '.navbar';819var SELECTOR_DROPDOWN_MENU = '.dropdown-menu';820var SELECTOR_DROPDOWN_MENU_ACTIVE = '.dropdown-menu.show';821var SELECTOR_DROPDOWN_TOGGLE = '[data-toggle="dropdown"]';822var CLASS_NAME_DROPDOWN_RIGHT = 'dropdown-menu-right';823var CLASS_NAME_DROPDOWN_SUBMENU = 'dropdown-submenu'; // TODO: this is unused; should be removed along with the extend?824
825var Default$9 = {};826/**827* Class Definition
828* ====================================================
829*/
830
831var Dropdown = /*#__PURE__*/function () {832function Dropdown(element, config) {833this._config = config;834this._element = element;835} // Public836
837
838var _proto = Dropdown.prototype;839
840_proto.toggleSubmenu = function toggleSubmenu() {841this._element.siblings().show().toggleClass('show');842
843if (!this._element.next().hasClass('show')) {844this._element.parents(SELECTOR_DROPDOWN_MENU).first().find('.show').removeClass('show').hide();845}846
847this._element.parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown', function () {848$__default["default"]('.dropdown-submenu .show').removeClass('show').hide();849});850};851
852_proto.fixPosition = function fixPosition() {853var $element = $__default["default"](SELECTOR_DROPDOWN_MENU_ACTIVE);854
855if ($element.length === 0) {856return;857}858
859if ($element.hasClass(CLASS_NAME_DROPDOWN_RIGHT)) {860$element.css({861left: 'inherit',862right: 0863});864} else {865$element.css({866left: 0,867right: 'inherit'868});869}870
871var offset = $element.offset();872var width = $element.width();873var visiblePart = $__default["default"](window).width() - offset.left;874
875if (offset.left < 0) {876$element.css({877left: 'inherit',878right: offset.left - 5879});880} else if (visiblePart < width) {881$element.css({882left: 'inherit',883right: 0884});885}886} // Static887;888
889Dropdown._jQueryInterface = function _jQueryInterface(config) {890return this.each(function () {891var data = $__default["default"](this).data(DATA_KEY$a);892
893var _config = $__default["default"].extend({}, Default$9, $__default["default"](this).data());894
895if (!data) {896data = new Dropdown($__default["default"](this), _config);897$__default["default"](this).data(DATA_KEY$a, data);898}899
900if (config === 'toggleSubmenu' || config === 'fixPosition') {901data[config]();902}903});904};905
906return Dropdown;907}();908/**909* Data API
910* ====================================================
911*/
912
913
914$__default["default"](SELECTOR_DROPDOWN_MENU + " " + SELECTOR_DROPDOWN_TOGGLE).on('click', function (event) {915event.preventDefault();916event.stopPropagation();917
918Dropdown._jQueryInterface.call($__default["default"](this), 'toggleSubmenu');919});920$__default["default"](SELECTOR_NAVBAR + " " + SELECTOR_DROPDOWN_TOGGLE).on('click', function (event) {921event.preventDefault();922
923if ($__default["default"](event.target).parent().hasClass(CLASS_NAME_DROPDOWN_SUBMENU)) {924return;925}926
927setTimeout(function () {928Dropdown._jQueryInterface.call($__default["default"](this), 'fixPosition');929}, 1);930});931/**932* jQuery API
933* ====================================================
934*/
935
936$__default["default"].fn[NAME$a] = Dropdown._jQueryInterface;937$__default["default"].fn[NAME$a].Constructor = Dropdown;938
939$__default["default"].fn[NAME$a].noConflict = function () {940$__default["default"].fn[NAME$a] = JQUERY_NO_CONFLICT$a;941return Dropdown._jQueryInterface;942};943
944/**945* --------------------------------------------
946* AdminLTE ExpandableTable.js
947* License MIT
948* --------------------------------------------
949*/
950/**951* Constants
952* ====================================================
953*/
954
955var NAME$9 = 'ExpandableTable';956var DATA_KEY$9 = 'lte.expandableTable';957var EVENT_KEY$3 = "." + DATA_KEY$9;958var JQUERY_NO_CONFLICT$9 = $__default["default"].fn[NAME$9];959var EVENT_EXPANDED$1 = "expanded" + EVENT_KEY$3;960var EVENT_COLLAPSED$2 = "collapsed" + EVENT_KEY$3;961var SELECTOR_TABLE = '.expandable-table';962var SELECTOR_EXPANDABLE_BODY = '.expandable-body';963var SELECTOR_DATA_TOGGLE$2 = '[data-widget="expandable-table"]';964var SELECTOR_ARIA_ATTR = 'aria-expanded';965/**966* Class Definition
967* ====================================================
968*/
969
970var ExpandableTable = /*#__PURE__*/function () {971function ExpandableTable(element, options) {972this._options = options;973this._element = element;974} // Public975
976
977var _proto = ExpandableTable.prototype;978
979_proto.init = function init() {980$__default["default"](SELECTOR_DATA_TOGGLE$2).each(function (_, $header) {981var $type = $__default["default"]($header).attr(SELECTOR_ARIA_ATTR);982var $body = $__default["default"]($header).next(SELECTOR_EXPANDABLE_BODY).children().first().children();983
984if ($type === 'true') {985$body.show();986} else if ($type === 'false') {987$body.hide();988$body.parent().parent().addClass('d-none');989}990});991};992
993_proto.toggleRow = function toggleRow() {994var $element = this._element;995
996if ($element[0].nodeName !== 'TR') {997$element = $element.parent();998
999if ($element[0].nodeName !== 'TR') {1000$element = $element.parent();1001}1002}1003
1004var time = 500;1005var $type = $element.attr(SELECTOR_ARIA_ATTR);1006var $body = $element.next(SELECTOR_EXPANDABLE_BODY).children().first().children();1007$body.stop();1008
1009if ($type === 'true') {1010$body.slideUp(time, function () {1011$element.next(SELECTOR_EXPANDABLE_BODY).addClass('d-none');1012});1013$element.attr(SELECTOR_ARIA_ATTR, 'false');1014$element.trigger($__default["default"].Event(EVENT_COLLAPSED$2));1015} else if ($type === 'false') {1016$element.next(SELECTOR_EXPANDABLE_BODY).removeClass('d-none');1017$body.slideDown(time);1018$element.attr(SELECTOR_ARIA_ATTR, 'true');1019$element.trigger($__default["default"].Event(EVENT_EXPANDED$1));1020}1021} // Static1022;1023
1024ExpandableTable._jQueryInterface = function _jQueryInterface(operation) {1025return this.each(function () {1026var data = $__default["default"](this).data(DATA_KEY$9);1027
1028if (!data) {1029data = new ExpandableTable($__default["default"](this));1030$__default["default"](this).data(DATA_KEY$9, data);1031}1032
1033if (typeof operation === 'string' && /init|toggleRow/.test(operation)) {1034data[operation]();1035}1036});1037};1038
1039return ExpandableTable;1040}();1041/**1042* Data API
1043* ====================================================
1044*/
1045
1046
1047$__default["default"](SELECTOR_TABLE).ready(function () {1048ExpandableTable._jQueryInterface.call($__default["default"](this), 'init');1049});1050$__default["default"](document).on('click', SELECTOR_DATA_TOGGLE$2, function () {1051ExpandableTable._jQueryInterface.call($__default["default"](this), 'toggleRow');1052});1053/**1054* jQuery API
1055* ====================================================
1056*/
1057
1058$__default["default"].fn[NAME$9] = ExpandableTable._jQueryInterface;1059$__default["default"].fn[NAME$9].Constructor = ExpandableTable;1060
1061$__default["default"].fn[NAME$9].noConflict = function () {1062$__default["default"].fn[NAME$9] = JQUERY_NO_CONFLICT$9;1063return ExpandableTable._jQueryInterface;1064};1065
1066/**1067* --------------------------------------------
1068* AdminLTE Fullscreen.js
1069* License MIT
1070* --------------------------------------------
1071*/
1072/**1073* Constants
1074* ====================================================
1075*/
1076
1077var NAME$8 = 'Fullscreen';1078var DATA_KEY$8 = 'lte.fullscreen';1079var JQUERY_NO_CONFLICT$8 = $__default["default"].fn[NAME$8];1080var SELECTOR_DATA_WIDGET$2 = '[data-widget="fullscreen"]';1081var SELECTOR_ICON = SELECTOR_DATA_WIDGET$2 + " i";1082var EVENT_FULLSCREEN_CHANGE = 'webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange';1083var Default$8 = {1084minimizeIcon: 'fa-compress-arrows-alt',1085maximizeIcon: 'fa-expand-arrows-alt'1086};1087/**1088* Class Definition
1089* ====================================================
1090*/
1091
1092var Fullscreen = /*#__PURE__*/function () {1093function Fullscreen(_element, _options) {1094this.element = _element;1095this.options = $__default["default"].extend({}, Default$8, _options);1096} // Public1097
1098
1099var _proto = Fullscreen.prototype;1100
1101_proto.toggle = function toggle() {1102if (document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement) {1103this.windowed();1104} else {1105this.fullscreen();1106}1107};1108
1109_proto.toggleIcon = function toggleIcon() {1110if (document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement) {1111$__default["default"](SELECTOR_ICON).removeClass(this.options.maximizeIcon).addClass(this.options.minimizeIcon);1112} else {1113$__default["default"](SELECTOR_ICON).removeClass(this.options.minimizeIcon).addClass(this.options.maximizeIcon);1114}1115};1116
1117_proto.fullscreen = function fullscreen() {1118if (document.documentElement.requestFullscreen) {1119document.documentElement.requestFullscreen();1120} else if (document.documentElement.webkitRequestFullscreen) {1121document.documentElement.webkitRequestFullscreen();1122} else if (document.documentElement.msRequestFullscreen) {1123document.documentElement.msRequestFullscreen();1124}1125};1126
1127_proto.windowed = function windowed() {1128if (document.exitFullscreen) {1129document.exitFullscreen();1130} else if (document.webkitExitFullscreen) {1131document.webkitExitFullscreen();1132} else if (document.msExitFullscreen) {1133document.msExitFullscreen();1134}1135} // Static1136;1137
1138Fullscreen._jQueryInterface = function _jQueryInterface(config) {1139var data = $__default["default"](this).data(DATA_KEY$8);1140
1141if (!data) {1142data = $__default["default"](this).data();1143}1144
1145var _options = $__default["default"].extend({}, Default$8, typeof config === 'object' ? config : data);1146
1147var plugin = new Fullscreen($__default["default"](this), _options);1148$__default["default"](this).data(DATA_KEY$8, typeof config === 'object' ? config : data);1149
1150if (typeof config === 'string' && /toggle|toggleIcon|fullscreen|windowed/.test(config)) {1151plugin[config]();1152} else {1153plugin.init();1154}1155};1156
1157return Fullscreen;1158}();1159/**1160* Data API
1161* ====================================================
1162*/
1163
1164
1165$__default["default"](document).on('click', SELECTOR_DATA_WIDGET$2, function () {1166Fullscreen._jQueryInterface.call($__default["default"](this), 'toggle');1167});1168$__default["default"](document).on(EVENT_FULLSCREEN_CHANGE, function () {1169Fullscreen._jQueryInterface.call($__default["default"](SELECTOR_DATA_WIDGET$2), 'toggleIcon');1170});1171/**1172* jQuery API
1173* ====================================================
1174*/
1175
1176$__default["default"].fn[NAME$8] = Fullscreen._jQueryInterface;1177$__default["default"].fn[NAME$8].Constructor = Fullscreen;1178
1179$__default["default"].fn[NAME$8].noConflict = function () {1180$__default["default"].fn[NAME$8] = JQUERY_NO_CONFLICT$8;1181return Fullscreen._jQueryInterface;1182};1183
1184/**1185* --------------------------------------------
1186* AdminLTE IFrame.js
1187* License MIT
1188* --------------------------------------------
1189*/
1190/**1191* Constants
1192* ====================================================
1193*/
1194
1195var NAME$7 = 'IFrame';1196var DATA_KEY$7 = 'lte.iframe';1197var JQUERY_NO_CONFLICT$7 = $__default["default"].fn[NAME$7];1198var SELECTOR_DATA_TOGGLE$1 = '[data-widget="iframe"]';1199var SELECTOR_DATA_TOGGLE_CLOSE = '[data-widget="iframe-close"]';1200var SELECTOR_DATA_TOGGLE_SCROLL_LEFT = '[data-widget="iframe-scrollleft"]';1201var SELECTOR_DATA_TOGGLE_SCROLL_RIGHT = '[data-widget="iframe-scrollright"]';1202var SELECTOR_DATA_TOGGLE_FULLSCREEN = '[data-widget="iframe-fullscreen"]';1203var SELECTOR_CONTENT_WRAPPER = '.content-wrapper';1204var SELECTOR_CONTENT_IFRAME = SELECTOR_CONTENT_WRAPPER + " iframe";1205var SELECTOR_TAB_NAV = SELECTOR_CONTENT_WRAPPER + ".iframe-mode .nav";1206var SELECTOR_TAB_NAVBAR_NAV = SELECTOR_CONTENT_WRAPPER + ".iframe-mode .navbar-nav";1207var SELECTOR_TAB_NAVBAR_NAV_ITEM = SELECTOR_TAB_NAVBAR_NAV + " .nav-item";1208var SELECTOR_TAB_NAVBAR_NAV_LINK = SELECTOR_TAB_NAVBAR_NAV + " .nav-link";1209var SELECTOR_TAB_CONTENT = SELECTOR_CONTENT_WRAPPER + ".iframe-mode .tab-content";1210var SELECTOR_TAB_EMPTY = SELECTOR_TAB_CONTENT + " .tab-empty";1211var SELECTOR_TAB_LOADING = SELECTOR_TAB_CONTENT + " .tab-loading";1212var SELECTOR_TAB_PANE = SELECTOR_TAB_CONTENT + " .tab-pane";1213var SELECTOR_SIDEBAR_MENU_ITEM = '.main-sidebar .nav-item > a.nav-link';1214var SELECTOR_SIDEBAR_SEARCH_ITEM = '.sidebar-search-results .list-group-item';1215var SELECTOR_HEADER_MENU_ITEM = '.main-header .nav-item a.nav-link';1216var SELECTOR_HEADER_DROPDOWN_ITEM = '.main-header a.dropdown-item';1217var CLASS_NAME_IFRAME_MODE$1 = 'iframe-mode';1218var CLASS_NAME_FULLSCREEN_MODE = 'iframe-mode-fullscreen';1219var Default$7 = {1220onTabClick: function onTabClick(item) {1221return item;1222},1223onTabChanged: function onTabChanged(item) {1224return item;1225},1226onTabCreated: function onTabCreated(item) {1227return item;1228},1229autoIframeMode: true,1230autoItemActive: true,1231autoShowNewTab: true,1232autoDarkMode: false,1233allowDuplicates: false,1234allowReload: true,1235loadingScreen: true,1236useNavbarItems: true,1237scrollOffset: 40,1238scrollBehaviorSwap: false,1239iconMaximize: 'fa-expand',1240iconMinimize: 'fa-compress'1241};1242/**1243* Class Definition
1244* ====================================================
1245*/
1246
1247var IFrame = /*#__PURE__*/function () {1248function IFrame(element, config) {1249this._config = config;1250this._element = element;1251
1252this._init();1253} // Public1254
1255
1256var _proto = IFrame.prototype;1257
1258_proto.onTabClick = function onTabClick(item) {1259this._config.onTabClick(item);1260};1261
1262_proto.onTabChanged = function onTabChanged(item) {1263this._config.onTabChanged(item);1264};1265
1266_proto.onTabCreated = function onTabCreated(item) {1267this._config.onTabCreated(item);1268};1269
1270_proto.createTab = function createTab(title, link, uniqueName, autoOpen) {1271var _this = this;1272
1273var tabId = "panel-" + uniqueName;1274var navId = "tab-" + uniqueName;1275
1276if (this._config.allowDuplicates) {1277tabId += "-" + Math.floor(Math.random() * 1000);1278navId += "-" + Math.floor(Math.random() * 1000);1279}1280
1281var newNavItem = "<li class=\"nav-item\" role=\"presentation\"><a href=\"#\" class=\"btn-iframe-close\" data-widget=\"iframe-close\" data-type=\"only-this\"><i class=\"fas fa-times\"></i></a><a class=\"nav-link\" data-toggle=\"row\" id=\"" + navId + "\" href=\"#" + tabId + "\" role=\"tab\" aria-controls=\"" + tabId + "\" aria-selected=\"false\">" + title + "</a></li>";1282$__default["default"](SELECTOR_TAB_NAVBAR_NAV).append(unescape(escape(newNavItem)));1283var newTabItem = "<div class=\"tab-pane fade\" id=\"" + tabId + "\" role=\"tabpanel\" aria-labelledby=\"" + navId + "\"><iframe src=\"" + link + "\"></iframe></div>";1284$__default["default"](SELECTOR_TAB_CONTENT).append(unescape(escape(newTabItem)));1285
1286if (autoOpen) {1287if (this._config.loadingScreen) {1288var $loadingScreen = $__default["default"](SELECTOR_TAB_LOADING);1289$loadingScreen.fadeIn();1290$__default["default"](tabId + " iframe").ready(function () {1291if (typeof _this._config.loadingScreen === 'number') {1292_this.switchTab("#" + navId);1293
1294setTimeout(function () {1295$loadingScreen.fadeOut();1296}, _this._config.loadingScreen);1297} else {1298_this.switchTab("#" + navId);1299
1300$loadingScreen.fadeOut();1301}1302});1303} else {1304this.switchTab("#" + navId);1305}1306}1307
1308this.onTabCreated($__default["default"]("#" + navId));1309};1310
1311_proto.openTabSidebar = function openTabSidebar(item, autoOpen) {1312if (autoOpen === void 0) {1313autoOpen = this._config.autoShowNewTab;1314}1315
1316var $item = $__default["default"](item).clone();1317
1318if ($item.attr('href') === undefined) {1319$item = $__default["default"](item).parent('a').clone();1320}1321
1322$item.find('.right, .search-path').remove();1323var title = $item.find('p').text();1324
1325if (title === '') {1326title = $item.text();1327}1328
1329var link = $item.attr('href');1330
1331if (link === '#' || link === '' || link === undefined) {1332return;1333}1334
1335var uniqueName = unescape(link).replace('./', '').replace(/["#&'./:=?[\]]/gi, '-').replace(/(--)/gi, '');1336var navId = "tab-" + uniqueName;1337
1338if (!this._config.allowDuplicates && $__default["default"]("#" + navId).length > 0) {1339return this.switchTab("#" + navId, this._config.allowReload);1340}1341
1342if (!this._config.allowDuplicates && $__default["default"]("#" + navId).length === 0 || this._config.allowDuplicates) {1343this.createTab(title, link, uniqueName, autoOpen);1344}1345};1346
1347_proto.switchTab = function switchTab(item, reload) {1348var _this2 = this;1349
1350if (reload === void 0) {1351reload = false;1352}1353
1354var $item = $__default["default"](item);1355var tabId = $item.attr('href');1356$__default["default"](SELECTOR_TAB_EMPTY).hide();1357
1358if (reload) {1359var $loadingScreen = $__default["default"](SELECTOR_TAB_LOADING);1360
1361if (this._config.loadingScreen) {1362$loadingScreen.show(0, function () {1363$__default["default"](tabId + " iframe").attr('src', $__default["default"](tabId + " iframe").attr('src')).ready(function () {1364if (_this2._config.loadingScreen) {1365if (typeof _this2._config.loadingScreen === 'number') {1366setTimeout(function () {1367$loadingScreen.fadeOut();1368}, _this2._config.loadingScreen);1369} else {1370$loadingScreen.fadeOut();1371}1372}1373});1374});1375} else {1376$__default["default"](tabId + " iframe").attr('src', $__default["default"](tabId + " iframe").attr('src'));1377}1378}1379
1380$__default["default"](SELECTOR_TAB_NAVBAR_NAV + " .active").tab('dispose').removeClass('active');1381
1382this._fixHeight();1383
1384$item.tab('show');1385$item.parents('li').addClass('active');1386this.onTabChanged($item);1387
1388if (this._config.autoItemActive) {1389this._setItemActive($__default["default"](tabId + " iframe").attr('src'));1390}1391};1392
1393_proto.removeActiveTab = function removeActiveTab(type, element) {1394if (type == 'all') {1395$__default["default"](SELECTOR_TAB_NAVBAR_NAV_ITEM).remove();1396$__default["default"](SELECTOR_TAB_PANE).remove();1397$__default["default"](SELECTOR_TAB_EMPTY).show();1398} else if (type == 'all-other') {1399$__default["default"](SELECTOR_TAB_NAVBAR_NAV_ITEM + ":not(.active)").remove();1400$__default["default"](SELECTOR_TAB_PANE + ":not(.active)").remove();1401} else if (type == 'only-this') {1402var $navClose = $__default["default"](element);1403var $navItem = $navClose.parent('.nav-item');1404var $navItemParent = $navItem.parent();1405var navItemIndex = $navItem.index();1406var tabId = $navClose.siblings('.nav-link').attr('aria-controls');1407$navItem.remove();1408$__default["default"]("#" + tabId).remove();1409
1410if ($__default["default"](SELECTOR_TAB_CONTENT).children().length == $__default["default"](SELECTOR_TAB_EMPTY + ", " + SELECTOR_TAB_LOADING).length) {1411$__default["default"](SELECTOR_TAB_EMPTY).show();1412} else {1413var prevNavItemIndex = navItemIndex - 1;1414this.switchTab($navItemParent.children().eq(prevNavItemIndex).find('a.nav-link'));1415}1416} else {1417var _$navItem = $__default["default"](SELECTOR_TAB_NAVBAR_NAV_ITEM + ".active");1418
1419var _$navItemParent = _$navItem.parent();1420
1421var _navItemIndex = _$navItem.index();1422
1423_$navItem.remove();1424
1425$__default["default"](SELECTOR_TAB_PANE + ".active").remove();1426
1427if ($__default["default"](SELECTOR_TAB_CONTENT).children().length == $__default["default"](SELECTOR_TAB_EMPTY + ", " + SELECTOR_TAB_LOADING).length) {1428$__default["default"](SELECTOR_TAB_EMPTY).show();1429} else {1430var _prevNavItemIndex = _navItemIndex - 1;1431
1432this.switchTab(_$navItemParent.children().eq(_prevNavItemIndex).find('a.nav-link'));1433}1434}1435};1436
1437_proto.toggleFullscreen = function toggleFullscreen() {1438if ($__default["default"]('body').hasClass(CLASS_NAME_FULLSCREEN_MODE)) {1439$__default["default"](SELECTOR_DATA_TOGGLE_FULLSCREEN + " i").removeClass(this._config.iconMinimize).addClass(this._config.iconMaximize);1440$__default["default"]('body').removeClass(CLASS_NAME_FULLSCREEN_MODE);1441$__default["default"](SELECTOR_TAB_EMPTY + ", " + SELECTOR_TAB_LOADING).height('100%');1442$__default["default"](SELECTOR_CONTENT_WRAPPER).height('100%');1443$__default["default"](SELECTOR_CONTENT_IFRAME).height('100%');1444} else {1445$__default["default"](SELECTOR_DATA_TOGGLE_FULLSCREEN + " i").removeClass(this._config.iconMaximize).addClass(this._config.iconMinimize);1446$__default["default"]('body').addClass(CLASS_NAME_FULLSCREEN_MODE);1447}1448
1449$__default["default"](window).trigger('resize');1450
1451this._fixHeight(true);1452} // Private1453;1454
1455_proto._init = function _init() {1456var usingDefTab = $__default["default"](SELECTOR_TAB_CONTENT).children().length > 2;1457
1458this._setupListeners();1459
1460this._fixHeight(true);1461
1462if (usingDefTab) {1463var $el = $__default["default"]("" + SELECTOR_TAB_PANE).first(); // eslint-disable-next-line no-console1464
1465console.log($el);1466var uniqueName = $el.attr('id').replace('panel-', '');1467var navId = "#tab-" + uniqueName;1468this.switchTab(navId, true);1469}1470};1471
1472_proto._initFrameElement = function _initFrameElement() {1473if (window.frameElement && this._config.autoIframeMode) {1474var $body = $__default["default"]('body');1475$body.addClass(CLASS_NAME_IFRAME_MODE$1);1476
1477if (this._config.autoDarkMode) {1478$body.addClass('dark-mode');1479}1480}1481};1482
1483_proto._navScroll = function _navScroll(offset) {1484var leftPos = $__default["default"](SELECTOR_TAB_NAVBAR_NAV).scrollLeft();1485$__default["default"](SELECTOR_TAB_NAVBAR_NAV).animate({1486scrollLeft: leftPos + offset1487}, 250, 'linear');1488};1489
1490_proto._setupListeners = function _setupListeners() {1491var _this3 = this;1492
1493$__default["default"](window).on('resize', function () {1494setTimeout(function () {1495_this3._fixHeight();1496}, 1);1497});1498
1499if ($__default["default"](SELECTOR_CONTENT_WRAPPER).hasClass(CLASS_NAME_IFRAME_MODE$1)) {1500$__default["default"](document).on('click', SELECTOR_SIDEBAR_MENU_ITEM + ", " + SELECTOR_SIDEBAR_SEARCH_ITEM, function (e) {1501e.preventDefault();1502
1503_this3.openTabSidebar(e.target);1504});1505
1506if (this._config.useNavbarItems) {1507$__default["default"](document).on('click', SELECTOR_HEADER_MENU_ITEM + ", " + SELECTOR_HEADER_DROPDOWN_ITEM, function (e) {1508e.preventDefault();1509
1510_this3.openTabSidebar(e.target);1511});1512}1513}1514
1515$__default["default"](document).on('click', SELECTOR_TAB_NAVBAR_NAV_LINK, function (e) {1516e.preventDefault();1517
1518_this3.onTabClick(e.target);1519
1520_this3.switchTab(e.target);1521});1522$__default["default"](document).on('click', SELECTOR_TAB_NAVBAR_NAV_LINK, function (e) {1523e.preventDefault();1524
1525_this3.onTabClick(e.target);1526
1527_this3.switchTab(e.target);1528});1529$__default["default"](document).on('click', SELECTOR_DATA_TOGGLE_CLOSE, function (e) {1530e.preventDefault();1531var target = e.target;1532
1533if (target.nodeName == 'I') {1534target = e.target.offsetParent;1535}1536
1537_this3.removeActiveTab(target.attributes['data-type'] ? target.attributes['data-type'].nodeValue : null, target);1538});1539$__default["default"](document).on('click', SELECTOR_DATA_TOGGLE_FULLSCREEN, function (e) {1540e.preventDefault();1541
1542_this3.toggleFullscreen();1543});1544var mousedown = false;1545var mousedownInterval = null;1546$__default["default"](document).on('mousedown', SELECTOR_DATA_TOGGLE_SCROLL_LEFT, function (e) {1547e.preventDefault();1548clearInterval(mousedownInterval);1549var scrollOffset = _this3._config.scrollOffset;1550
1551if (!_this3._config.scrollBehaviorSwap) {1552scrollOffset = -scrollOffset;1553}1554
1555mousedown = true;1556
1557_this3._navScroll(scrollOffset);1558
1559mousedownInterval = setInterval(function () {1560_this3._navScroll(scrollOffset);1561}, 250);1562});1563$__default["default"](document).on('mousedown', SELECTOR_DATA_TOGGLE_SCROLL_RIGHT, function (e) {1564e.preventDefault();1565clearInterval(mousedownInterval);1566var scrollOffset = _this3._config.scrollOffset;1567
1568if (_this3._config.scrollBehaviorSwap) {1569scrollOffset = -scrollOffset;1570}1571
1572mousedown = true;1573
1574_this3._navScroll(scrollOffset);1575
1576mousedownInterval = setInterval(function () {1577_this3._navScroll(scrollOffset);1578}, 250);1579});1580$__default["default"](document).on('mouseup', function () {1581if (mousedown) {1582mousedown = false;1583clearInterval(mousedownInterval);1584mousedownInterval = null;1585}1586});1587};1588
1589_proto._setItemActive = function _setItemActive(href) {1590$__default["default"](SELECTOR_SIDEBAR_MENU_ITEM + ", " + SELECTOR_HEADER_DROPDOWN_ITEM).removeClass('active');1591$__default["default"](SELECTOR_HEADER_MENU_ITEM).parent().removeClass('active');1592var $headerMenuItem = $__default["default"](SELECTOR_HEADER_MENU_ITEM + "[href$=\"" + href + "\"]");1593var $headerDropdownItem = $__default["default"](SELECTOR_HEADER_DROPDOWN_ITEM + "[href$=\"" + href + "\"]");1594var $sidebarMenuItem = $__default["default"](SELECTOR_SIDEBAR_MENU_ITEM + "[href$=\"" + href + "\"]");1595$headerMenuItem.each(function (i, e) {1596$__default["default"](e).parent().addClass('active');1597});1598$headerDropdownItem.each(function (i, e) {1599$__default["default"](e).addClass('active');1600});1601$sidebarMenuItem.each(function (i, e) {1602$__default["default"](e).addClass('active');1603$__default["default"](e).parents('.nav-treeview').prevAll('.nav-link').addClass('active');1604});1605};1606
1607_proto._fixHeight = function _fixHeight(tabEmpty) {1608if (tabEmpty === void 0) {1609tabEmpty = false;1610}1611
1612if ($__default["default"]('body').hasClass(CLASS_NAME_FULLSCREEN_MODE)) {1613var windowHeight = $__default["default"](window).height();1614var navbarHeight = $__default["default"](SELECTOR_TAB_NAV).outerHeight();1615$__default["default"](SELECTOR_TAB_EMPTY + ", " + SELECTOR_TAB_LOADING + ", " + SELECTOR_CONTENT_IFRAME).height(windowHeight - navbarHeight);1616$__default["default"](SELECTOR_CONTENT_WRAPPER).height(windowHeight);1617} else {1618var contentWrapperHeight = parseFloat($__default["default"](SELECTOR_CONTENT_WRAPPER).css('height'));1619
1620var _navbarHeight = $__default["default"](SELECTOR_TAB_NAV).outerHeight();1621
1622if (tabEmpty == true) {1623setTimeout(function () {1624$__default["default"](SELECTOR_TAB_EMPTY + ", " + SELECTOR_TAB_LOADING).height(contentWrapperHeight - _navbarHeight);1625}, 50);1626} else {1627$__default["default"](SELECTOR_CONTENT_IFRAME).height(contentWrapperHeight - _navbarHeight);1628}1629}1630} // Static1631;1632
1633IFrame._jQueryInterface = function _jQueryInterface(config) {1634if ($__default["default"](SELECTOR_DATA_TOGGLE$1).length > 0) {1635var data = $__default["default"](this).data(DATA_KEY$7);1636
1637if (!data) {1638data = $__default["default"](this).data();1639}1640
1641var _options = $__default["default"].extend({}, Default$7, typeof config === 'object' ? config : data);1642
1643localStorage.setItem('AdminLTE:IFrame:Options', JSON.stringify(_options));1644var plugin = new IFrame($__default["default"](this), _options);1645$__default["default"](this).data(DATA_KEY$7, typeof config === 'object' ? config : data);1646
1647if (typeof config === 'string' && /createTab|openTabSidebar|switchTab|removeActiveTab/.test(config)) {1648plugin[config]();1649}1650} else {1651new IFrame($__default["default"](this), JSON.parse(localStorage.getItem('AdminLTE:IFrame:Options')))._initFrameElement();1652}1653};1654
1655return IFrame;1656}();1657/**1658* Data API
1659* ====================================================
1660*/
1661
1662
1663$__default["default"](window).on('load', function () {1664IFrame._jQueryInterface.call($__default["default"](SELECTOR_DATA_TOGGLE$1));1665});1666/**1667* jQuery API
1668* ====================================================
1669*/
1670
1671$__default["default"].fn[NAME$7] = IFrame._jQueryInterface;1672$__default["default"].fn[NAME$7].Constructor = IFrame;1673
1674$__default["default"].fn[NAME$7].noConflict = function () {1675$__default["default"].fn[NAME$7] = JQUERY_NO_CONFLICT$7;1676return IFrame._jQueryInterface;1677};1678
1679/**1680* --------------------------------------------
1681* AdminLTE Layout.js
1682* License MIT
1683* --------------------------------------------
1684*/
1685/**1686* Constants
1687* ====================================================
1688*/
1689
1690var NAME$6 = 'Layout';1691var DATA_KEY$6 = 'lte.layout';1692var JQUERY_NO_CONFLICT$6 = $__default["default"].fn[NAME$6];1693var SELECTOR_HEADER = '.main-header';1694var SELECTOR_MAIN_SIDEBAR = '.main-sidebar';1695var SELECTOR_SIDEBAR$1 = '.main-sidebar .sidebar';1696var SELECTOR_CONTENT = '.content-wrapper';1697var SELECTOR_CONTROL_SIDEBAR_CONTENT = '.control-sidebar-content';1698var SELECTOR_CONTROL_SIDEBAR_BTN = '[data-widget="control-sidebar"]';1699var SELECTOR_FOOTER = '.main-footer';1700var SELECTOR_PUSHMENU_BTN = '[data-widget="pushmenu"]';1701var SELECTOR_LOGIN_BOX = '.login-box';1702var SELECTOR_REGISTER_BOX = '.register-box';1703var SELECTOR_PRELOADER = '.preloader';1704var CLASS_NAME_SIDEBAR_COLLAPSED$1 = 'sidebar-collapse';1705var CLASS_NAME_SIDEBAR_FOCUSED = 'sidebar-focused';1706var CLASS_NAME_LAYOUT_FIXED = 'layout-fixed';1707var CLASS_NAME_CONTROL_SIDEBAR_SLIDE_OPEN = 'control-sidebar-slide-open';1708var CLASS_NAME_CONTROL_SIDEBAR_OPEN = 'control-sidebar-open';1709var CLASS_NAME_IFRAME_MODE = 'iframe-mode';1710var Default$6 = {1711scrollbarTheme: 'os-theme-light',1712scrollbarAutoHide: 'l',1713panelAutoHeight: true,1714panelAutoHeightMode: 'min-height',1715preloadDuration: 200,1716loginRegisterAutoHeight: true1717};1718/**1719* Class Definition
1720* ====================================================
1721*/
1722
1723var Layout = /*#__PURE__*/function () {1724function Layout(element, config) {1725this._config = config;1726this._element = element;1727} // Public1728
1729
1730var _proto = Layout.prototype;1731
1732_proto.fixLayoutHeight = function fixLayoutHeight(extra) {1733if (extra === void 0) {1734extra = null;1735}1736
1737var $body = $__default["default"]('body');1738var controlSidebar = 0;1739
1740if ($body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_SLIDE_OPEN) || $body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_OPEN) || extra === 'control_sidebar') {1741controlSidebar = $__default["default"](SELECTOR_CONTROL_SIDEBAR_CONTENT).outerHeight();1742}1743
1744var heights = {1745window: $__default["default"](window).height(),1746header: $__default["default"](SELECTOR_HEADER).length > 0 ? $__default["default"](SELECTOR_HEADER).outerHeight() : 0,1747footer: $__default["default"](SELECTOR_FOOTER).length > 0 ? $__default["default"](SELECTOR_FOOTER).outerHeight() : 0,1748sidebar: $__default["default"](SELECTOR_SIDEBAR$1).length > 0 ? $__default["default"](SELECTOR_SIDEBAR$1).height() : 0,1749controlSidebar: controlSidebar1750};1751
1752var max = this._max(heights);1753
1754var offset = this._config.panelAutoHeight;1755
1756if (offset === true) {1757offset = 0;1758}1759
1760var $contentSelector = $__default["default"](SELECTOR_CONTENT);1761
1762if (offset !== false) {1763if (max === heights.controlSidebar) {1764$contentSelector.css(this._config.panelAutoHeightMode, max + offset);1765} else if (max === heights.window) {1766$contentSelector.css(this._config.panelAutoHeightMode, max + offset - heights.header - heights.footer);1767} else {1768$contentSelector.css(this._config.panelAutoHeightMode, max + offset - heights.header);1769}1770
1771if (this._isFooterFixed()) {1772$contentSelector.css(this._config.panelAutoHeightMode, parseFloat($contentSelector.css(this._config.panelAutoHeightMode)) + heights.footer);1773}1774}1775
1776if (!$body.hasClass(CLASS_NAME_LAYOUT_FIXED)) {1777return;1778}1779
1780if (typeof $__default["default"].fn.overlayScrollbars !== 'undefined') {1781$__default["default"](SELECTOR_SIDEBAR$1).overlayScrollbars({1782className: this._config.scrollbarTheme,1783sizeAutoCapable: true,1784scrollbars: {1785autoHide: this._config.scrollbarAutoHide,1786clickScrolling: true1787}1788});1789} else {1790$__default["default"](SELECTOR_SIDEBAR$1).css('overflow-y', 'auto');1791}1792};1793
1794_proto.fixLoginRegisterHeight = function fixLoginRegisterHeight() {1795var $body = $__default["default"]('body');1796var $selector = $__default["default"](SELECTOR_LOGIN_BOX + ", " + SELECTOR_REGISTER_BOX);1797
1798if ($body.hasClass(CLASS_NAME_IFRAME_MODE)) {1799$body.css('height', '100%');1800$__default["default"]('.wrapper').css('height', '100%');1801$__default["default"]('html').css('height', '100%');1802} else if ($selector.length === 0) {1803$body.css('height', 'auto');1804$__default["default"]('html').css('height', 'auto');1805} else {1806var boxHeight = $selector.height();1807
1808if ($body.css(this._config.panelAutoHeightMode) !== boxHeight) {1809$body.css(this._config.panelAutoHeightMode, boxHeight);1810}1811}1812} // Private1813;1814
1815_proto._init = function _init() {1816var _this = this;1817
1818// Activate layout height watcher1819this.fixLayoutHeight();1820
1821if (this._config.loginRegisterAutoHeight === true) {1822this.fixLoginRegisterHeight();1823} else if (this._config.loginRegisterAutoHeight === parseInt(this._config.loginRegisterAutoHeight, 10)) {1824setInterval(this.fixLoginRegisterHeight, this._config.loginRegisterAutoHeight);1825}1826
1827$__default["default"](SELECTOR_SIDEBAR$1).on('collapsed.lte.treeview expanded.lte.treeview', function () {1828_this.fixLayoutHeight();1829});1830$__default["default"](SELECTOR_MAIN_SIDEBAR).on('mouseenter mouseleave', function () {1831if ($__default["default"]('body').hasClass(CLASS_NAME_SIDEBAR_COLLAPSED$1)) {1832_this.fixLayoutHeight();1833}1834});1835$__default["default"](SELECTOR_PUSHMENU_BTN).on('collapsed.lte.pushmenu shown.lte.pushmenu', function () {1836setTimeout(function () {1837_this.fixLayoutHeight();1838}, 300);1839});1840$__default["default"](SELECTOR_CONTROL_SIDEBAR_BTN).on('collapsed.lte.controlsidebar', function () {1841_this.fixLayoutHeight();1842}).on('expanded.lte.controlsidebar', function () {1843_this.fixLayoutHeight('control_sidebar');1844});1845$__default["default"](window).resize(function () {1846_this.fixLayoutHeight();1847});1848setTimeout(function () {1849$__default["default"]('body.hold-transition').removeClass('hold-transition');1850}, 50);1851setTimeout(function () {1852var $preloader = $__default["default"](SELECTOR_PRELOADER);1853
1854if ($preloader) {1855$preloader.css('height', 0);1856setTimeout(function () {1857$preloader.children().hide();1858}, 200);1859}1860}, this._config.preloadDuration);1861};1862
1863_proto._max = function _max(numbers) {1864// Calculate the maximum number in a list1865var max = 0;1866Object.keys(numbers).forEach(function (key) {1867if (numbers[key] > max) {1868max = numbers[key];1869}1870});1871return max;1872};1873
1874_proto._isFooterFixed = function _isFooterFixed() {1875return $__default["default"](SELECTOR_FOOTER).css('position') === 'fixed';1876} // Static1877;1878
1879Layout._jQueryInterface = function _jQueryInterface(config) {1880if (config === void 0) {1881config = '';1882}1883
1884return this.each(function () {1885var data = $__default["default"](this).data(DATA_KEY$6);1886
1887var _options = $__default["default"].extend({}, Default$6, $__default["default"](this).data());1888
1889if (!data) {1890data = new Layout($__default["default"](this), _options);1891$__default["default"](this).data(DATA_KEY$6, data);1892}1893
1894if (config === 'init' || config === '') {1895data._init();1896} else if (config === 'fixLayoutHeight' || config === 'fixLoginRegisterHeight') {1897data[config]();1898}1899});1900};1901
1902return Layout;1903}();1904/**1905* Data API
1906* ====================================================
1907*/
1908
1909
1910$__default["default"](window).on('load', function () {1911Layout._jQueryInterface.call($__default["default"]('body'));1912});1913$__default["default"](SELECTOR_SIDEBAR$1 + " a").on('focusin', function () {1914$__default["default"](SELECTOR_MAIN_SIDEBAR).addClass(CLASS_NAME_SIDEBAR_FOCUSED);1915}).on('focusout', function () {1916$__default["default"](SELECTOR_MAIN_SIDEBAR).removeClass(CLASS_NAME_SIDEBAR_FOCUSED);1917});1918/**1919* jQuery API
1920* ====================================================
1921*/
1922
1923$__default["default"].fn[NAME$6] = Layout._jQueryInterface;1924$__default["default"].fn[NAME$6].Constructor = Layout;1925
1926$__default["default"].fn[NAME$6].noConflict = function () {1927$__default["default"].fn[NAME$6] = JQUERY_NO_CONFLICT$6;1928return Layout._jQueryInterface;1929};1930
1931/**1932* --------------------------------------------
1933* AdminLTE PushMenu.js
1934* License MIT
1935* --------------------------------------------
1936*/
1937/**1938* Constants
1939* ====================================================
1940*/
1941
1942var NAME$5 = 'PushMenu';1943var DATA_KEY$5 = 'lte.pushmenu';1944var EVENT_KEY$2 = "." + DATA_KEY$5;1945var JQUERY_NO_CONFLICT$5 = $__default["default"].fn[NAME$5];1946var EVENT_COLLAPSED$1 = "collapsed" + EVENT_KEY$2;1947var EVENT_COLLAPSED_DONE = "collapsed-done" + EVENT_KEY$2;1948var EVENT_SHOWN = "shown" + EVENT_KEY$2;1949var SELECTOR_TOGGLE_BUTTON$1 = '[data-widget="pushmenu"]';1950var SELECTOR_BODY = 'body';1951var SELECTOR_OVERLAY = '#sidebar-overlay';1952var SELECTOR_WRAPPER = '.wrapper';1953var CLASS_NAME_COLLAPSED = 'sidebar-collapse';1954var CLASS_NAME_OPEN$3 = 'sidebar-open';1955var CLASS_NAME_IS_OPENING$1 = 'sidebar-is-opening';1956var CLASS_NAME_CLOSED = 'sidebar-closed';1957var Default$5 = {1958autoCollapseSize: 992,1959enableRemember: false,1960noTransitionAfterReload: true,1961animationSpeed: 3001962};1963/**1964* Class Definition
1965* ====================================================
1966*/
1967
1968var PushMenu = /*#__PURE__*/function () {1969function PushMenu(element, options) {1970this._element = element;1971this._options = $__default["default"].extend({}, Default$5, options);1972
1973if ($__default["default"](SELECTOR_OVERLAY).length === 0) {1974this._addOverlay();1975}1976
1977this._init();1978} // Public1979
1980
1981var _proto = PushMenu.prototype;1982
1983_proto.expand = function expand() {1984var $bodySelector = $__default["default"](SELECTOR_BODY);1985
1986if (this._options.autoCollapseSize && $__default["default"](window).width() <= this._options.autoCollapseSize) {1987$bodySelector.addClass(CLASS_NAME_OPEN$3);1988}1989
1990$bodySelector.addClass(CLASS_NAME_IS_OPENING$1).removeClass(CLASS_NAME_COLLAPSED + " " + CLASS_NAME_CLOSED).delay(50).queue(function () {1991$bodySelector.removeClass(CLASS_NAME_IS_OPENING$1);1992$__default["default"](this).dequeue();1993});1994
1995if (this._options.enableRemember) {1996localStorage.setItem("remember" + EVENT_KEY$2, CLASS_NAME_OPEN$3);1997}1998
1999$__default["default"](this._element).trigger($__default["default"].Event(EVENT_SHOWN));2000};2001
2002_proto.collapse = function collapse() {2003var _this = this;2004
2005var $bodySelector = $__default["default"](SELECTOR_BODY);2006
2007if (this._options.autoCollapseSize && $__default["default"](window).width() <= this._options.autoCollapseSize) {2008$bodySelector.removeClass(CLASS_NAME_OPEN$3).addClass(CLASS_NAME_CLOSED);2009}2010
2011$bodySelector.addClass(CLASS_NAME_COLLAPSED);2012
2013if (this._options.enableRemember) {2014localStorage.setItem("remember" + EVENT_KEY$2, CLASS_NAME_COLLAPSED);2015}2016
2017$__default["default"](this._element).trigger($__default["default"].Event(EVENT_COLLAPSED$1));2018setTimeout(function () {2019$__default["default"](_this._element).trigger($__default["default"].Event(EVENT_COLLAPSED_DONE));2020}, this._options.animationSpeed);2021};2022
2023_proto.toggle = function toggle() {2024if ($__default["default"](SELECTOR_BODY).hasClass(CLASS_NAME_COLLAPSED)) {2025this.expand();2026} else {2027this.collapse();2028}2029};2030
2031_proto.autoCollapse = function autoCollapse(resize) {2032if (resize === void 0) {2033resize = false;2034}2035
2036if (!this._options.autoCollapseSize) {2037return;2038}2039
2040var $bodySelector = $__default["default"](SELECTOR_BODY);2041
2042if ($__default["default"](window).width() <= this._options.autoCollapseSize) {2043if (!$bodySelector.hasClass(CLASS_NAME_OPEN$3)) {2044this.collapse();2045}2046} else if (resize === true) {2047if ($bodySelector.hasClass(CLASS_NAME_OPEN$3)) {2048$bodySelector.removeClass(CLASS_NAME_OPEN$3);2049} else if ($bodySelector.hasClass(CLASS_NAME_CLOSED)) {2050this.expand();2051}2052}2053};2054
2055_proto.remember = function remember() {2056if (!this._options.enableRemember) {2057return;2058}2059
2060var $body = $__default["default"]('body');2061var toggleState = localStorage.getItem("remember" + EVENT_KEY$2);2062
2063if (toggleState === CLASS_NAME_COLLAPSED) {2064if (this._options.noTransitionAfterReload) {2065$body.addClass('hold-transition').addClass(CLASS_NAME_COLLAPSED).delay(50).queue(function () {2066$__default["default"](this).removeClass('hold-transition');2067$__default["default"](this).dequeue();2068});2069} else {2070$body.addClass(CLASS_NAME_COLLAPSED);2071}2072} else if (this._options.noTransitionAfterReload) {2073$body.addClass('hold-transition').removeClass(CLASS_NAME_COLLAPSED).delay(50).queue(function () {2074$__default["default"](this).removeClass('hold-transition');2075$__default["default"](this).dequeue();2076});2077} else {2078$body.removeClass(CLASS_NAME_COLLAPSED);2079}2080} // Private2081;2082
2083_proto._init = function _init() {2084var _this2 = this;2085
2086this.remember();2087this.autoCollapse();2088$__default["default"](window).resize(function () {2089_this2.autoCollapse(true);2090});2091};2092
2093_proto._addOverlay = function _addOverlay() {2094var _this3 = this;2095
2096var overlay = $__default["default"]('<div />', {2097id: 'sidebar-overlay'2098});2099overlay.on('click', function () {2100_this3.collapse();2101});2102$__default["default"](SELECTOR_WRAPPER).append(overlay);2103} // Static2104;2105
2106PushMenu._jQueryInterface = function _jQueryInterface(operation) {2107return this.each(function () {2108var data = $__default["default"](this).data(DATA_KEY$5);2109
2110var _options = $__default["default"].extend({}, Default$5, $__default["default"](this).data());2111
2112if (!data) {2113data = new PushMenu(this, _options);2114$__default["default"](this).data(DATA_KEY$5, data);2115}2116
2117if (typeof operation === 'string' && /collapse|expand|toggle/.test(operation)) {2118data[operation]();2119}2120});2121};2122
2123return PushMenu;2124}();2125/**2126* Data API
2127* ====================================================
2128*/
2129
2130
2131$__default["default"](document).on('click', SELECTOR_TOGGLE_BUTTON$1, function (event) {2132event.preventDefault();2133var button = event.currentTarget;2134
2135if ($__default["default"](button).data('widget') !== 'pushmenu') {2136button = $__default["default"](button).closest(SELECTOR_TOGGLE_BUTTON$1);2137}2138
2139PushMenu._jQueryInterface.call($__default["default"](button), 'toggle');2140});2141$__default["default"](window).on('load', function () {2142PushMenu._jQueryInterface.call($__default["default"](SELECTOR_TOGGLE_BUTTON$1));2143});2144/**2145* jQuery API
2146* ====================================================
2147*/
2148
2149$__default["default"].fn[NAME$5] = PushMenu._jQueryInterface;2150$__default["default"].fn[NAME$5].Constructor = PushMenu;2151
2152$__default["default"].fn[NAME$5].noConflict = function () {2153$__default["default"].fn[NAME$5] = JQUERY_NO_CONFLICT$5;2154return PushMenu._jQueryInterface;2155};2156
2157/**2158* --------------------------------------------
2159* AdminLTE SidebarSearch.js
2160* License MIT
2161* --------------------------------------------
2162*/
2163/**2164* Constants
2165* ====================================================
2166*/
2167
2168var NAME$4 = 'SidebarSearch';2169var DATA_KEY$4 = 'lte.sidebar-search';2170var JQUERY_NO_CONFLICT$4 = $__default["default"].fn[NAME$4];2171var CLASS_NAME_OPEN$2 = 'sidebar-search-open';2172var CLASS_NAME_ICON_SEARCH = 'fa-search';2173var CLASS_NAME_ICON_CLOSE = 'fa-times';2174var CLASS_NAME_HEADER = 'nav-header';2175var CLASS_NAME_SEARCH_RESULTS = 'sidebar-search-results';2176var CLASS_NAME_LIST_GROUP = 'list-group';2177var SELECTOR_DATA_WIDGET$1 = '[data-widget="sidebar-search"]';2178var SELECTOR_SIDEBAR = '.main-sidebar .nav-sidebar';2179var SELECTOR_NAV_LINK = '.nav-link';2180var SELECTOR_NAV_TREEVIEW = '.nav-treeview';2181var SELECTOR_SEARCH_INPUT$1 = SELECTOR_DATA_WIDGET$1 + " .form-control";2182var SELECTOR_SEARCH_BUTTON = SELECTOR_DATA_WIDGET$1 + " .btn";2183var SELECTOR_SEARCH_ICON = SELECTOR_SEARCH_BUTTON + " i";2184var SELECTOR_SEARCH_LIST_GROUP = "." + CLASS_NAME_LIST_GROUP;2185var SELECTOR_SEARCH_RESULTS = "." + CLASS_NAME_SEARCH_RESULTS;2186var SELECTOR_SEARCH_RESULTS_GROUP = SELECTOR_SEARCH_RESULTS + " ." + CLASS_NAME_LIST_GROUP;2187var Default$4 = {2188arrowSign: '->',2189minLength: 3,2190maxResults: 7,2191highlightName: true,2192highlightPath: false,2193highlightClass: 'text-light',2194notFoundText: 'No element found!'2195};2196var SearchItems = [];2197/**2198* Class Definition
2199* ====================================================
2200*/
2201
2202var SidebarSearch = /*#__PURE__*/function () {2203function SidebarSearch(_element, _options) {2204this.element = _element;2205this.options = $__default["default"].extend({}, Default$4, _options);2206this.items = [];2207} // Public2208
2209
2210var _proto = SidebarSearch.prototype;2211
2212_proto.init = function init() {2213var _this = this;2214
2215if ($__default["default"](SELECTOR_DATA_WIDGET$1).length === 0) {2216return;2217}2218
2219if ($__default["default"](SELECTOR_DATA_WIDGET$1).next(SELECTOR_SEARCH_RESULTS).length === 0) {2220$__default["default"](SELECTOR_DATA_WIDGET$1).after($__default["default"]('<div />', {2221class: CLASS_NAME_SEARCH_RESULTS2222}));2223}2224
2225if ($__default["default"](SELECTOR_SEARCH_RESULTS).children(SELECTOR_SEARCH_LIST_GROUP).length === 0) {2226$__default["default"](SELECTOR_SEARCH_RESULTS).append($__default["default"]('<div />', {2227class: CLASS_NAME_LIST_GROUP2228}));2229}2230
2231this._addNotFound();2232
2233$__default["default"](SELECTOR_SIDEBAR).children().each(function (i, child) {2234_this._parseItem(child);2235});2236};2237
2238_proto.search = function search() {2239var _this2 = this;2240
2241var searchValue = $__default["default"](SELECTOR_SEARCH_INPUT$1).val().toLowerCase();2242
2243if (searchValue.length < this.options.minLength) {2244$__default["default"](SELECTOR_SEARCH_RESULTS_GROUP).empty();2245
2246this._addNotFound();2247
2248this.close();2249return;2250}2251
2252var searchResults = SearchItems.filter(function (item) {2253return item.name.toLowerCase().includes(searchValue);2254});2255var endResults = $__default["default"](searchResults.slice(0, this.options.maxResults));2256$__default["default"](SELECTOR_SEARCH_RESULTS_GROUP).empty();2257
2258if (endResults.length === 0) {2259this._addNotFound();2260} else {2261endResults.each(function (i, result) {2262$__default["default"](SELECTOR_SEARCH_RESULTS_GROUP).append(_this2._renderItem(escape(result.name), encodeURI(result.link), result.path));2263});2264}2265
2266this.open();2267};2268
2269_proto.open = function open() {2270$__default["default"](SELECTOR_DATA_WIDGET$1).parent().addClass(CLASS_NAME_OPEN$2);2271$__default["default"](SELECTOR_SEARCH_ICON).removeClass(CLASS_NAME_ICON_SEARCH).addClass(CLASS_NAME_ICON_CLOSE);2272};2273
2274_proto.close = function close() {2275$__default["default"](SELECTOR_DATA_WIDGET$1).parent().removeClass(CLASS_NAME_OPEN$2);2276$__default["default"](SELECTOR_SEARCH_ICON).removeClass(CLASS_NAME_ICON_CLOSE).addClass(CLASS_NAME_ICON_SEARCH);2277};2278
2279_proto.toggle = function toggle() {2280if ($__default["default"](SELECTOR_DATA_WIDGET$1).parent().hasClass(CLASS_NAME_OPEN$2)) {2281this.close();2282} else {2283this.open();2284}2285} // Private2286;2287
2288_proto._parseItem = function _parseItem(item, path) {2289var _this3 = this;2290
2291if (path === void 0) {2292path = [];2293}2294
2295if ($__default["default"](item).hasClass(CLASS_NAME_HEADER)) {2296return;2297}2298
2299var itemObject = {};2300var navLink = $__default["default"](item).clone().find("> " + SELECTOR_NAV_LINK);2301var navTreeview = $__default["default"](item).clone().find("> " + SELECTOR_NAV_TREEVIEW);2302var link = navLink.attr('href');2303var name = navLink.find('p').children().remove().end().text();2304itemObject.name = this._trimText(name);2305itemObject.link = link;2306itemObject.path = path;2307
2308if (navTreeview.length === 0) {2309SearchItems.push(itemObject);2310} else {2311var newPath = itemObject.path.concat([itemObject.name]);2312navTreeview.children().each(function (i, child) {2313_this3._parseItem(child, newPath);2314});2315}2316};2317
2318_proto._trimText = function _trimText(text) {2319return $.trim(text.replace(/(\r\n|\n|\r)/gm, ' '));2320};2321
2322_proto._renderItem = function _renderItem(name, link, path) {2323var _this4 = this;2324
2325path = path.join(" " + this.options.arrowSign + " ");2326name = unescape(name);2327link = decodeURI(link);2328
2329if (this.options.highlightName || this.options.highlightPath) {2330var searchValue = $__default["default"](SELECTOR_SEARCH_INPUT$1).val().toLowerCase();2331var regExp = new RegExp(searchValue, 'gi');2332
2333if (this.options.highlightName) {2334name = name.replace(regExp, function (str) {2335return "<strong class=\"" + _this4.options.highlightClass + "\">" + str + "</strong>";2336});2337}2338
2339if (this.options.highlightPath) {2340path = path.replace(regExp, function (str) {2341return "<strong class=\"" + _this4.options.highlightClass + "\">" + str + "</strong>";2342});2343}2344}2345
2346var groupItemElement = $__default["default"]('<a/>', {2347href: decodeURIComponent(link),2348class: 'list-group-item'2349});2350var searchTitleElement = $__default["default"]('<div/>', {2351class: 'search-title'2352}).html(name);2353var searchPathElement = $__default["default"]('<div/>', {2354class: 'search-path'2355}).html(path);2356groupItemElement.append(searchTitleElement).append(searchPathElement);2357return groupItemElement;2358};2359
2360_proto._addNotFound = function _addNotFound() {2361$__default["default"](SELECTOR_SEARCH_RESULTS_GROUP).append(this._renderItem(this.options.notFoundText, '#', []));2362} // Static2363;2364
2365SidebarSearch._jQueryInterface = function _jQueryInterface(config) {2366var data = $__default["default"](this).data(DATA_KEY$4);2367
2368if (!data) {2369data = $__default["default"](this).data();2370}2371
2372var _options = $__default["default"].extend({}, Default$4, typeof config === 'object' ? config : data);2373
2374var plugin = new SidebarSearch($__default["default"](this), _options);2375$__default["default"](this).data(DATA_KEY$4, typeof config === 'object' ? config : data);2376
2377if (typeof config === 'string' && /init|toggle|close|open|search/.test(config)) {2378plugin[config]();2379} else {2380plugin.init();2381}2382};2383
2384return SidebarSearch;2385}();2386/**2387* Data API
2388* ====================================================
2389*/
2390
2391
2392$__default["default"](document).on('click', SELECTOR_SEARCH_BUTTON, function (event) {2393event.preventDefault();2394
2395SidebarSearch._jQueryInterface.call($__default["default"](SELECTOR_DATA_WIDGET$1), 'toggle');2396});2397$__default["default"](document).on('keyup', SELECTOR_SEARCH_INPUT$1, function (event) {2398if (event.keyCode == 38) {2399event.preventDefault();2400$__default["default"](SELECTOR_SEARCH_RESULTS_GROUP).children().last().focus();2401return;2402}2403
2404if (event.keyCode == 40) {2405event.preventDefault();2406$__default["default"](SELECTOR_SEARCH_RESULTS_GROUP).children().first().focus();2407return;2408}2409
2410setTimeout(function () {2411SidebarSearch._jQueryInterface.call($__default["default"](SELECTOR_DATA_WIDGET$1), 'search');2412}, 100);2413});2414$__default["default"](document).on('keydown', SELECTOR_SEARCH_RESULTS_GROUP, function (event) {2415var $focused = $__default["default"](':focus');2416
2417if (event.keyCode == 38) {2418event.preventDefault();2419
2420if ($focused.is(':first-child')) {2421$focused.siblings().last().focus();2422} else {2423$focused.prev().focus();2424}2425}2426
2427if (event.keyCode == 40) {2428event.preventDefault();2429
2430if ($focused.is(':last-child')) {2431$focused.siblings().first().focus();2432} else {2433$focused.next().focus();2434}2435}2436});2437$__default["default"](window).on('load', function () {2438SidebarSearch._jQueryInterface.call($__default["default"](SELECTOR_DATA_WIDGET$1), 'init');2439});2440/**2441* jQuery API
2442* ====================================================
2443*/
2444
2445$__default["default"].fn[NAME$4] = SidebarSearch._jQueryInterface;2446$__default["default"].fn[NAME$4].Constructor = SidebarSearch;2447
2448$__default["default"].fn[NAME$4].noConflict = function () {2449$__default["default"].fn[NAME$4] = JQUERY_NO_CONFLICT$4;2450return SidebarSearch._jQueryInterface;2451};2452
2453/**2454* --------------------------------------------
2455* AdminLTE NavbarSearch.js
2456* License MIT
2457* --------------------------------------------
2458*/
2459/**2460* Constants
2461* ====================================================
2462*/
2463
2464var NAME$3 = 'NavbarSearch';2465var DATA_KEY$3 = 'lte.navbar-search';2466var JQUERY_NO_CONFLICT$3 = $__default["default"].fn[NAME$3];2467var SELECTOR_TOGGLE_BUTTON = '[data-widget="navbar-search"]';2468var SELECTOR_SEARCH_BLOCK = '.navbar-search-block';2469var SELECTOR_SEARCH_INPUT = '.form-control';2470var CLASS_NAME_OPEN$1 = 'navbar-search-open';2471var Default$3 = {2472resetOnClose: true,2473target: SELECTOR_SEARCH_BLOCK2474};2475/**2476* Class Definition
2477* ====================================================
2478*/
2479
2480var NavbarSearch = /*#__PURE__*/function () {2481function NavbarSearch(_element, _options) {2482this._element = _element;2483this._config = $__default["default"].extend({}, Default$3, _options);2484} // Public2485
2486
2487var _proto = NavbarSearch.prototype;2488
2489_proto.open = function open() {2490$__default["default"](this._config.target).css('display', 'flex').hide().fadeIn().addClass(CLASS_NAME_OPEN$1);2491$__default["default"](this._config.target + " " + SELECTOR_SEARCH_INPUT).focus();2492};2493
2494_proto.close = function close() {2495$__default["default"](this._config.target).fadeOut().removeClass(CLASS_NAME_OPEN$1);2496
2497if (this._config.resetOnClose) {2498$__default["default"](this._config.target + " " + SELECTOR_SEARCH_INPUT).val('');2499}2500};2501
2502_proto.toggle = function toggle() {2503if ($__default["default"](this._config.target).hasClass(CLASS_NAME_OPEN$1)) {2504this.close();2505} else {2506this.open();2507}2508} // Static2509;2510
2511NavbarSearch._jQueryInterface = function _jQueryInterface(options) {2512return this.each(function () {2513var data = $__default["default"](this).data(DATA_KEY$3);2514
2515var _options = $__default["default"].extend({}, Default$3, $__default["default"](this).data());2516
2517if (!data) {2518data = new NavbarSearch(this, _options);2519$__default["default"](this).data(DATA_KEY$3, data);2520}2521
2522if (!/toggle|close|open/.test(options)) {2523throw new Error("Undefined method " + options);2524}2525
2526data[options]();2527});2528};2529
2530return NavbarSearch;2531}();2532/**2533* Data API
2534* ====================================================
2535*/
2536
2537
2538$__default["default"](document).on('click', SELECTOR_TOGGLE_BUTTON, function (event) {2539event.preventDefault();2540var button = $__default["default"](event.currentTarget);2541
2542if (button.data('widget') !== 'navbar-search') {2543button = button.closest(SELECTOR_TOGGLE_BUTTON);2544}2545
2546NavbarSearch._jQueryInterface.call(button, 'toggle');2547});2548/**2549* jQuery API
2550* ====================================================
2551*/
2552
2553$__default["default"].fn[NAME$3] = NavbarSearch._jQueryInterface;2554$__default["default"].fn[NAME$3].Constructor = NavbarSearch;2555
2556$__default["default"].fn[NAME$3].noConflict = function () {2557$__default["default"].fn[NAME$3] = JQUERY_NO_CONFLICT$3;2558return NavbarSearch._jQueryInterface;2559};2560
2561/**2562* --------------------------------------------
2563* AdminLTE Toasts.js
2564* License MIT
2565* --------------------------------------------
2566*/
2567/**2568* Constants
2569* ====================================================
2570*/
2571
2572var NAME$2 = 'Toasts';2573var DATA_KEY$2 = 'lte.toasts';2574var EVENT_KEY$1 = "." + DATA_KEY$2;2575var JQUERY_NO_CONFLICT$2 = $__default["default"].fn[NAME$2];2576var EVENT_INIT = "init" + EVENT_KEY$1;2577var EVENT_CREATED = "created" + EVENT_KEY$1;2578var EVENT_REMOVED = "removed" + EVENT_KEY$1;2579var SELECTOR_CONTAINER_TOP_RIGHT = '#toastsContainerTopRight';2580var SELECTOR_CONTAINER_TOP_LEFT = '#toastsContainerTopLeft';2581var SELECTOR_CONTAINER_BOTTOM_RIGHT = '#toastsContainerBottomRight';2582var SELECTOR_CONTAINER_BOTTOM_LEFT = '#toastsContainerBottomLeft';2583var CLASS_NAME_TOP_RIGHT = 'toasts-top-right';2584var CLASS_NAME_TOP_LEFT = 'toasts-top-left';2585var CLASS_NAME_BOTTOM_RIGHT = 'toasts-bottom-right';2586var CLASS_NAME_BOTTOM_LEFT = 'toasts-bottom-left';2587var POSITION_TOP_RIGHT = 'topRight';2588var POSITION_TOP_LEFT = 'topLeft';2589var POSITION_BOTTOM_RIGHT = 'bottomRight';2590var POSITION_BOTTOM_LEFT = 'bottomLeft';2591var Default$2 = {2592position: POSITION_TOP_RIGHT,2593fixed: true,2594autohide: false,2595autoremove: true,2596delay: 1000,2597fade: true,2598icon: null,2599image: null,2600imageAlt: null,2601imageHeight: '25px',2602title: null,2603subtitle: null,2604close: true,2605body: null,2606class: null2607};2608/**2609* Class Definition
2610* ====================================================
2611*/
2612
2613var Toasts = /*#__PURE__*/function () {2614function Toasts(element, config) {2615this._config = config;2616
2617this._prepareContainer();2618
2619$__default["default"]('body').trigger($__default["default"].Event(EVENT_INIT));2620} // Public2621
2622
2623var _proto = Toasts.prototype;2624
2625_proto.create = function create() {2626var toast = $__default["default"]('<div class="toast" role="alert" aria-live="assertive" aria-atomic="true"/>');2627toast.data('autohide', this._config.autohide);2628toast.data('animation', this._config.fade);2629
2630if (this._config.class) {2631toast.addClass(this._config.class);2632}2633
2634if (this._config.delay && this._config.delay != 500) {2635toast.data('delay', this._config.delay);2636}2637
2638var toastHeader = $__default["default"]('<div class="toast-header">');2639
2640if (this._config.image != null) {2641var toastImage = $__default["default"]('<img />').addClass('rounded mr-2').attr('src', this._config.image).attr('alt', this._config.imageAlt);2642
2643if (this._config.imageHeight != null) {2644toastImage.height(this._config.imageHeight).width('auto');2645}2646
2647toastHeader.append(toastImage);2648}2649
2650if (this._config.icon != null) {2651toastHeader.append($__default["default"]('<i />').addClass('mr-2').addClass(this._config.icon));2652}2653
2654if (this._config.title != null) {2655toastHeader.append($__default["default"]('<strong />').addClass('mr-auto').html(this._config.title));2656}2657
2658if (this._config.subtitle != null) {2659toastHeader.append($__default["default"]('<small />').html(this._config.subtitle));2660}2661
2662if (this._config.close == true) {2663var toastClose = $__default["default"]('<button data-dismiss="toast" />').attr('type', 'button').addClass('ml-2 mb-1 close').attr('aria-label', 'Close').append('<span aria-hidden="true">×</span>');2664
2665if (this._config.title == null) {2666toastClose.toggleClass('ml-2 ml-auto');2667}2668
2669toastHeader.append(toastClose);2670}2671
2672toast.append(toastHeader);2673
2674if (this._config.body != null) {2675toast.append($__default["default"]('<div class="toast-body" />').html(this._config.body));2676}2677
2678$__default["default"](this._getContainerId()).prepend(toast);2679var $body = $__default["default"]('body');2680$body.trigger($__default["default"].Event(EVENT_CREATED));2681toast.toast('show');2682
2683if (this._config.autoremove) {2684toast.on('hidden.bs.toast', function () {2685$__default["default"](this).delay(200).remove();2686$body.trigger($__default["default"].Event(EVENT_REMOVED));2687});2688}2689} // Static2690;2691
2692_proto._getContainerId = function _getContainerId() {2693if (this._config.position == POSITION_TOP_RIGHT) {2694return SELECTOR_CONTAINER_TOP_RIGHT;2695}2696
2697if (this._config.position == POSITION_TOP_LEFT) {2698return SELECTOR_CONTAINER_TOP_LEFT;2699}2700
2701if (this._config.position == POSITION_BOTTOM_RIGHT) {2702return SELECTOR_CONTAINER_BOTTOM_RIGHT;2703}2704
2705if (this._config.position == POSITION_BOTTOM_LEFT) {2706return SELECTOR_CONTAINER_BOTTOM_LEFT;2707}2708};2709
2710_proto._prepareContainer = function _prepareContainer() {2711if ($__default["default"](this._getContainerId()).length === 0) {2712var container = $__default["default"]('<div />').attr('id', this._getContainerId().replace('#', ''));2713
2714if (this._config.position == POSITION_TOP_RIGHT) {2715container.addClass(CLASS_NAME_TOP_RIGHT);2716} else if (this._config.position == POSITION_TOP_LEFT) {2717container.addClass(CLASS_NAME_TOP_LEFT);2718} else if (this._config.position == POSITION_BOTTOM_RIGHT) {2719container.addClass(CLASS_NAME_BOTTOM_RIGHT);2720} else if (this._config.position == POSITION_BOTTOM_LEFT) {2721container.addClass(CLASS_NAME_BOTTOM_LEFT);2722}2723
2724$__default["default"]('body').append(container);2725}2726
2727if (this._config.fixed) {2728$__default["default"](this._getContainerId()).addClass('fixed');2729} else {2730$__default["default"](this._getContainerId()).removeClass('fixed');2731}2732} // Static2733;2734
2735Toasts._jQueryInterface = function _jQueryInterface(option, config) {2736return this.each(function () {2737var _options = $__default["default"].extend({}, Default$2, config);2738
2739var toast = new Toasts($__default["default"](this), _options);2740
2741if (option === 'create') {2742toast[option]();2743}2744});2745};2746
2747return Toasts;2748}();2749/**2750* jQuery API
2751* ====================================================
2752*/
2753
2754
2755$__default["default"].fn[NAME$2] = Toasts._jQueryInterface;2756$__default["default"].fn[NAME$2].Constructor = Toasts;2757
2758$__default["default"].fn[NAME$2].noConflict = function () {2759$__default["default"].fn[NAME$2] = JQUERY_NO_CONFLICT$2;2760return Toasts._jQueryInterface;2761};2762
2763/**2764* --------------------------------------------
2765* AdminLTE TodoList.js
2766* License MIT
2767* --------------------------------------------
2768*/
2769/**2770* Constants
2771* ====================================================
2772*/
2773
2774var NAME$1 = 'TodoList';2775var DATA_KEY$1 = 'lte.todolist';2776var JQUERY_NO_CONFLICT$1 = $__default["default"].fn[NAME$1];2777var SELECTOR_DATA_TOGGLE = '[data-widget="todo-list"]';2778var CLASS_NAME_TODO_LIST_DONE = 'done';2779var Default$1 = {2780onCheck: function onCheck(item) {2781return item;2782},2783onUnCheck: function onUnCheck(item) {2784return item;2785}2786};2787/**2788* Class Definition
2789* ====================================================
2790*/
2791
2792var TodoList = /*#__PURE__*/function () {2793function TodoList(element, config) {2794this._config = config;2795this._element = element;2796
2797this._init();2798} // Public2799
2800
2801var _proto = TodoList.prototype;2802
2803_proto.toggle = function toggle(item) {2804item.parents('li').toggleClass(CLASS_NAME_TODO_LIST_DONE);2805
2806if (!$__default["default"](item).prop('checked')) {2807this.unCheck($__default["default"](item));2808return;2809}2810
2811this.check(item);2812};2813
2814_proto.check = function check(item) {2815this._config.onCheck.call(item);2816};2817
2818_proto.unCheck = function unCheck(item) {2819this._config.onUnCheck.call(item);2820} // Private2821;2822
2823_proto._init = function _init() {2824var _this = this;2825
2826var $toggleSelector = this._element;2827$toggleSelector.find('input:checkbox:checked').parents('li').toggleClass(CLASS_NAME_TODO_LIST_DONE);2828$toggleSelector.on('change', 'input:checkbox', function (event) {2829_this.toggle($__default["default"](event.target));2830});2831} // Static2832;2833
2834TodoList._jQueryInterface = function _jQueryInterface(config) {2835return this.each(function () {2836var data = $__default["default"](this).data(DATA_KEY$1);2837
2838if (!data) {2839data = $__default["default"](this).data();2840}2841
2842var _options = $__default["default"].extend({}, Default$1, typeof config === 'object' ? config : data);2843
2844var plugin = new TodoList($__default["default"](this), _options);2845$__default["default"](this).data(DATA_KEY$1, typeof config === 'object' ? config : data);2846
2847if (config === 'init') {2848plugin[config]();2849}2850});2851};2852
2853return TodoList;2854}();2855/**2856* Data API
2857* ====================================================
2858*/
2859
2860
2861$__default["default"](window).on('load', function () {2862TodoList._jQueryInterface.call($__default["default"](SELECTOR_DATA_TOGGLE));2863});2864/**2865* jQuery API
2866* ====================================================
2867*/
2868
2869$__default["default"].fn[NAME$1] = TodoList._jQueryInterface;2870$__default["default"].fn[NAME$1].Constructor = TodoList;2871
2872$__default["default"].fn[NAME$1].noConflict = function () {2873$__default["default"].fn[NAME$1] = JQUERY_NO_CONFLICT$1;2874return TodoList._jQueryInterface;2875};2876
2877/**2878* --------------------------------------------
2879* AdminLTE Treeview.js
2880* License MIT
2881* --------------------------------------------
2882*/
2883/**2884* Constants
2885* ====================================================
2886*/
2887
2888var NAME = 'Treeview';2889var DATA_KEY = 'lte.treeview';2890var EVENT_KEY = "." + DATA_KEY;2891var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];2892var EVENT_EXPANDED = "expanded" + EVENT_KEY;2893var EVENT_COLLAPSED = "collapsed" + EVENT_KEY;2894var EVENT_LOAD_DATA_API = "load" + EVENT_KEY;2895var SELECTOR_LI = '.nav-item';2896var SELECTOR_LINK = '.nav-link';2897var SELECTOR_TREEVIEW_MENU = '.nav-treeview';2898var SELECTOR_OPEN = '.menu-open';2899var SELECTOR_DATA_WIDGET = '[data-widget="treeview"]';2900var CLASS_NAME_OPEN = 'menu-open';2901var CLASS_NAME_IS_OPENING = 'menu-is-opening';2902var CLASS_NAME_SIDEBAR_COLLAPSED = 'sidebar-collapse';2903var Default = {2904trigger: SELECTOR_DATA_WIDGET + " " + SELECTOR_LINK,2905animationSpeed: 300,2906accordion: true,2907expandSidebar: false,2908sidebarButtonSelector: '[data-widget="pushmenu"]'2909};2910/**2911* Class Definition
2912* ====================================================
2913*/
2914
2915var Treeview = /*#__PURE__*/function () {2916function Treeview(element, config) {2917this._config = config;2918this._element = element;2919} // Public2920
2921
2922var _proto = Treeview.prototype;2923
2924_proto.init = function init() {2925$__default["default"]("" + SELECTOR_LI + SELECTOR_OPEN + " " + SELECTOR_TREEVIEW_MENU + SELECTOR_OPEN).css('display', 'block');2926
2927this._setupListeners();2928};2929
2930_proto.expand = function expand(treeviewMenu, parentLi) {2931var _this = this;2932
2933var expandedEvent = $__default["default"].Event(EVENT_EXPANDED);2934
2935if (this._config.accordion) {2936var openMenuLi = parentLi.siblings(SELECTOR_OPEN).first();2937var openTreeview = openMenuLi.find(SELECTOR_TREEVIEW_MENU).first();2938this.collapse(openTreeview, openMenuLi);2939}2940
2941parentLi.addClass(CLASS_NAME_IS_OPENING);2942treeviewMenu.stop().slideDown(this._config.animationSpeed, function () {2943parentLi.addClass(CLASS_NAME_OPEN);2944$__default["default"](_this._element).trigger(expandedEvent);2945});2946
2947if (this._config.expandSidebar) {2948this._expandSidebar();2949}2950};2951
2952_proto.collapse = function collapse(treeviewMenu, parentLi) {2953var _this2 = this;2954
2955var collapsedEvent = $__default["default"].Event(EVENT_COLLAPSED);2956parentLi.removeClass(CLASS_NAME_IS_OPENING + " " + CLASS_NAME_OPEN);2957treeviewMenu.stop().slideUp(this._config.animationSpeed, function () {2958$__default["default"](_this2._element).trigger(collapsedEvent);2959treeviewMenu.find(SELECTOR_OPEN + " > " + SELECTOR_TREEVIEW_MENU).slideUp();2960treeviewMenu.find(SELECTOR_OPEN).removeClass(CLASS_NAME_IS_OPENING + " " + CLASS_NAME_OPEN);2961});2962};2963
2964_proto.toggle = function toggle(event) {2965var $relativeTarget = $__default["default"](event.currentTarget);2966var $parent = $relativeTarget.parent();2967var treeviewMenu = $parent.find("> " + SELECTOR_TREEVIEW_MENU);2968
2969if (!treeviewMenu.is(SELECTOR_TREEVIEW_MENU)) {2970if (!$parent.is(SELECTOR_LI)) {2971treeviewMenu = $parent.parent().find("> " + SELECTOR_TREEVIEW_MENU);2972}2973
2974if (!treeviewMenu.is(SELECTOR_TREEVIEW_MENU)) {2975return;2976}2977}2978
2979event.preventDefault();2980var parentLi = $relativeTarget.parents(SELECTOR_LI).first();2981var isOpen = parentLi.hasClass(CLASS_NAME_OPEN);2982
2983if (isOpen) {2984this.collapse($__default["default"](treeviewMenu), parentLi);2985} else {2986this.expand($__default["default"](treeviewMenu), parentLi);2987}2988} // Private2989;2990
2991_proto._setupListeners = function _setupListeners() {2992var _this3 = this;2993
2994var elementId = this._element.attr('id') !== undefined ? "#" + this._element.attr('id') : '';2995$__default["default"](document).on('click', "" + elementId + this._config.trigger, function (event) {2996_this3.toggle(event);2997});2998};2999
3000_proto._expandSidebar = function _expandSidebar() {3001if ($__default["default"]('body').hasClass(CLASS_NAME_SIDEBAR_COLLAPSED)) {3002$__default["default"](this._config.sidebarButtonSelector).PushMenu('expand');3003}3004} // Static3005;3006
3007Treeview._jQueryInterface = function _jQueryInterface(config) {3008return this.each(function () {3009var data = $__default["default"](this).data(DATA_KEY);3010
3011var _options = $__default["default"].extend({}, Default, $__default["default"](this).data());3012
3013if (!data) {3014data = new Treeview($__default["default"](this), _options);3015$__default["default"](this).data(DATA_KEY, data);3016}3017
3018if (config === 'init') {3019data[config]();3020}3021});3022};3023
3024return Treeview;3025}();3026/**3027* Data API
3028* ====================================================
3029*/
3030
3031
3032$__default["default"](window).on(EVENT_LOAD_DATA_API, function () {3033$__default["default"](SELECTOR_DATA_WIDGET).each(function () {3034Treeview._jQueryInterface.call($__default["default"](this), 'init');3035});3036});3037/**3038* jQuery API
3039* ====================================================
3040*/
3041
3042$__default["default"].fn[NAME] = Treeview._jQueryInterface;3043$__default["default"].fn[NAME].Constructor = Treeview;3044
3045$__default["default"].fn[NAME].noConflict = function () {3046$__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;3047return Treeview._jQueryInterface;3048};3049
3050exports.CardRefresh = CardRefresh;3051exports.CardWidget = CardWidget;3052exports.ControlSidebar = ControlSidebar;3053exports.DirectChat = DirectChat;3054exports.Dropdown = Dropdown;3055exports.ExpandableTable = ExpandableTable;3056exports.Fullscreen = Fullscreen;3057exports.IFrame = IFrame;3058exports.Layout = Layout;3059exports.NavbarSearch = NavbarSearch;3060exports.PushMenu = PushMenu;3061exports.SidebarSearch = SidebarSearch;3062exports.Toasts = Toasts;3063exports.TodoList = TodoList;3064exports.Treeview = Treeview;3065
3066Object.defineProperty(exports, '__esModule', { value: true });3067
3068}));3069//# sourceMappingURL=adminlte.js.map
3070