6
(function (global, factory) {
7
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery')) :
8
typeof 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';
12
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
var $__default = _interopDefaultLegacy($);
27
var NAME$e = 'CardRefresh';
28
var DATA_KEY$e = 'lte.cardrefresh';
29
var EVENT_KEY$7 = "." + DATA_KEY$e;
30
var JQUERY_NO_CONFLICT$e = $__default["default"].fn[NAME$e];
31
var EVENT_LOADED = "loaded" + EVENT_KEY$7;
32
var EVENT_OVERLAY_ADDED = "overlay.added" + EVENT_KEY$7;
33
var EVENT_OVERLAY_REMOVED = "overlay.removed" + EVENT_KEY$7;
34
var CLASS_NAME_CARD$1 = 'card';
35
var SELECTOR_CARD$1 = "." + CLASS_NAME_CARD$1;
36
var SELECTOR_DATA_REFRESH = '[data-card-widget="card-refresh"]';
41
trigger: SELECTOR_DATA_REFRESH,
42
content: '.card-body',
45
loadErrorTemplate: true,
47
overlayTemplate: '<div class="overlay"><i class="fas fa-2x fa-sync-alt fa-spin"></i></div>',
48
errorTemplate: '<span class="text-danger"></span>',
49
onLoadStart: function onLoadStart() {},
50
onLoadDone: function onLoadDone(response) {
53
onLoadFail: function onLoadFail(_jqXHR, _textStatus, _errorThrown) {}
56
var CardRefresh = function () {
57
function CardRefresh(element, settings) {
58
this._element = element;
59
this._parent = element.parents(SELECTOR_CARD$1).first();
60
this._settings = $__default["default"].extend({}, Default$c, settings);
61
this._overlay = $__default["default"](this._settings.overlayTemplate);
63
if (element.hasClass(CLASS_NAME_CARD$1)) {
64
this._parent = element;
67
if (this._settings.source === '') {
68
throw new Error('Source url was not defined. Please specify a url in your CardRefresh source option.');
72
var _proto = CardRefresh.prototype;
74
_proto.load = function load() {
79
this._settings.onLoadStart.call($__default["default"](this));
81
$__default["default"].get(this._settings.source, this._settings.params, function (response) {
82
if (_this._settings.loadInContent) {
83
if (_this._settings.sourceSelector !== '') {
84
response = $__default["default"](response).find(_this._settings.sourceSelector).html();
87
_this._parent.find(_this._settings.content).html(response);
90
_this._settings.onLoadDone.call($__default["default"](_this), response);
92
_this._removeOverlay();
93
}, this._settings.responseType !== '' && this._settings.responseType).fail(function (jqXHR, textStatus, errorThrown) {
94
_this._removeOverlay();
96
if (_this._settings.loadErrorTemplate) {
97
var msg = $__default["default"](_this._settings.errorTemplate).text(errorThrown);
99
_this._parent.find(_this._settings.content).empty().append(msg);
102
_this._settings.onLoadFail.call($__default["default"](_this), jqXHR, textStatus, errorThrown);
104
$__default["default"](this._element).trigger($__default["default"].Event(EVENT_LOADED));
107
_proto._addOverlay = function _addOverlay() {
108
this._parent.append(this._overlay);
110
$__default["default"](this._element).trigger($__default["default"].Event(EVENT_OVERLAY_ADDED));
113
_proto._removeOverlay = function _removeOverlay() {
114
this._parent.find(this._overlay).remove();
116
$__default["default"](this._element).trigger($__default["default"].Event(EVENT_OVERLAY_REMOVED));
120
_proto._init = function _init() {
123
$__default["default"](this).find(this._settings.trigger).on('click', function () {
127
if (this._settings.loadOnInit) {
133
CardRefresh._jQueryInterface = function _jQueryInterface(config) {
134
var data = $__default["default"](this).data(DATA_KEY$e);
136
var _options = $__default["default"].extend({}, Default$c, $__default["default"](this).data());
139
data = new CardRefresh($__default["default"](this), _options);
140
$__default["default"](this).data(DATA_KEY$e, typeof config === 'string' ? data : config);
143
if (typeof config === 'string' && /load/.test(config)) {
146
data._init($__default["default"](this));
158
$__default["default"](document).on('click', SELECTOR_DATA_REFRESH, function (event) {
160
event.preventDefault();
163
CardRefresh._jQueryInterface.call($__default["default"](this), 'load');
165
$__default["default"](function () {
166
$__default["default"](SELECTOR_DATA_REFRESH).each(function () {
167
CardRefresh._jQueryInterface.call($__default["default"](this));
175
$__default["default"].fn[NAME$e] = CardRefresh._jQueryInterface;
176
$__default["default"].fn[NAME$e].Constructor = CardRefresh;
178
$__default["default"].fn[NAME$e].noConflict = function () {
179
$__default["default"].fn[NAME$e] = JQUERY_NO_CONFLICT$e;
180
return CardRefresh._jQueryInterface;
194
var NAME$d = 'CardWidget';
195
var DATA_KEY$d = 'lte.cardwidget';
196
var EVENT_KEY$6 = "." + DATA_KEY$d;
197
var JQUERY_NO_CONFLICT$d = $__default["default"].fn[NAME$d];
198
var EVENT_EXPANDED$3 = "expanded" + EVENT_KEY$6;
199
var EVENT_COLLAPSED$4 = "collapsed" + EVENT_KEY$6;
200
var EVENT_MAXIMIZED = "maximized" + EVENT_KEY$6;
201
var EVENT_MINIMIZED = "minimized" + EVENT_KEY$6;
202
var EVENT_REMOVED$1 = "removed" + EVENT_KEY$6;
203
var CLASS_NAME_CARD = 'card';
204
var CLASS_NAME_COLLAPSED$1 = 'collapsed-card';
205
var CLASS_NAME_COLLAPSING = 'collapsing-card';
206
var CLASS_NAME_EXPANDING = 'expanding-card';
207
var CLASS_NAME_WAS_COLLAPSED = 'was-collapsed';
208
var CLASS_NAME_MAXIMIZED = 'maximized-card';
209
var SELECTOR_DATA_REMOVE = '[data-card-widget="remove"]';
210
var SELECTOR_DATA_COLLAPSE = '[data-card-widget="collapse"]';
211
var SELECTOR_DATA_MAXIMIZE = '[data-card-widget="maximize"]';
212
var SELECTOR_CARD = "." + CLASS_NAME_CARD;
213
var SELECTOR_CARD_HEADER = '.card-header';
214
var SELECTOR_CARD_BODY = '.card-body';
215
var SELECTOR_CARD_FOOTER = '.card-footer';
217
animationSpeed: 'normal',
218
collapseTrigger: SELECTOR_DATA_COLLAPSE,
219
removeTrigger: SELECTOR_DATA_REMOVE,
220
maximizeTrigger: SELECTOR_DATA_MAXIMIZE,
221
collapseIcon: 'fa-minus',
222
expandIcon: 'fa-plus',
223
maximizeIcon: 'fa-expand',
224
minimizeIcon: 'fa-compress'
227
var CardWidget = function () {
228
function CardWidget(element, settings) {
229
this._element = element;
230
this._parent = element.parents(SELECTOR_CARD).first();
232
if (element.hasClass(CLASS_NAME_CARD)) {
233
this._parent = element;
236
this._settings = $__default["default"].extend({}, Default$b, settings);
239
var _proto = CardWidget.prototype;
241
_proto.collapse = function collapse() {
244
this._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);
248
this._parent.find("> " + SELECTOR_CARD_HEADER + " " + this._settings.collapseTrigger + " ." + this._settings.collapseIcon).addClass(this._settings.expandIcon).removeClass(this._settings.collapseIcon);
250
this._element.trigger($__default["default"].Event(EVENT_COLLAPSED$4), this._parent);
253
_proto.expand = function expand() {
256
this._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);
260
this._parent.find("> " + SELECTOR_CARD_HEADER + " " + this._settings.collapseTrigger + " ." + this._settings.expandIcon).addClass(this._settings.collapseIcon).removeClass(this._settings.expandIcon);
262
this._element.trigger($__default["default"].Event(EVENT_EXPANDED$3), this._parent);
265
_proto.remove = function remove() {
266
this._parent.slideUp();
268
this._element.trigger($__default["default"].Event(EVENT_REMOVED$1), this._parent);
271
_proto.toggle = function toggle() {
272
if (this._parent.hasClass(CLASS_NAME_COLLAPSED$1)) {
280
_proto.maximize = function maximize() {
281
this._parent.find(this._settings.maximizeTrigger + " ." + this._settings.maximizeIcon).addClass(this._settings.minimizeIcon).removeClass(this._settings.maximizeIcon);
284
height: this._parent.height(),
285
width: this._parent.width(),
286
transition: 'all .15s'
287
}).delay(150).queue(function () {
288
var $element = $__default["default"](this);
289
$element.addClass(CLASS_NAME_MAXIMIZED);
290
$__default["default"]('html').addClass(CLASS_NAME_MAXIMIZED);
292
if ($element.hasClass(CLASS_NAME_COLLAPSED$1)) {
293
$element.addClass(CLASS_NAME_WAS_COLLAPSED);
299
this._element.trigger($__default["default"].Event(EVENT_MAXIMIZED), this._parent);
302
_proto.minimize = function minimize() {
303
this._parent.find(this._settings.maximizeTrigger + " ." + this._settings.minimizeIcon).addClass(this._settings.maximizeIcon).removeClass(this._settings.minimizeIcon);
305
this._parent.css('cssText', "height: " + this._parent[0].style.height + " !important; width: " + this._parent[0].style.width + " !important; transition: all .15s;").delay(10).queue(function () {
306
var $element = $__default["default"](this);
307
$element.removeClass(CLASS_NAME_MAXIMIZED);
308
$__default["default"]('html').removeClass(CLASS_NAME_MAXIMIZED);
314
if ($element.hasClass(CLASS_NAME_WAS_COLLAPSED)) {
315
$element.removeClass(CLASS_NAME_WAS_COLLAPSED);
321
this._element.trigger($__default["default"].Event(EVENT_MINIMIZED), this._parent);
324
_proto.toggleMaximize = function toggleMaximize() {
325
if (this._parent.hasClass(CLASS_NAME_MAXIMIZED)) {
334
_proto._init = function _init(card) {
338
$__default["default"](this).find(this._settings.collapseTrigger).click(function () {
341
$__default["default"](this).find(this._settings.maximizeTrigger).click(function () {
342
_this3.toggleMaximize();
344
$__default["default"](this).find(this._settings.removeTrigger).click(function () {
350
CardWidget._jQueryInterface = function _jQueryInterface(config) {
351
var data = $__default["default"](this).data(DATA_KEY$d);
353
var _options = $__default["default"].extend({}, Default$b, $__default["default"](this).data());
356
data = new CardWidget($__default["default"](this), _options);
357
$__default["default"](this).data(DATA_KEY$d, typeof config === 'string' ? data : config);
360
if (typeof config === 'string' && /collapse|expand|remove|toggle|maximize|minimize|toggleMaximize/.test(config)) {
362
} else if (typeof config === 'object') {
363
data._init($__default["default"](this));
375
$__default["default"](document).on('click', SELECTOR_DATA_COLLAPSE, function (event) {
377
event.preventDefault();
380
CardWidget._jQueryInterface.call($__default["default"](this), 'toggle');
382
$__default["default"](document).on('click', SELECTOR_DATA_REMOVE, function (event) {
384
event.preventDefault();
387
CardWidget._jQueryInterface.call($__default["default"](this), 'remove');
389
$__default["default"](document).on('click', SELECTOR_DATA_MAXIMIZE, function (event) {
391
event.preventDefault();
394
CardWidget._jQueryInterface.call($__default["default"](this), 'toggleMaximize');
401
$__default["default"].fn[NAME$d] = CardWidget._jQueryInterface;
402
$__default["default"].fn[NAME$d].Constructor = CardWidget;
404
$__default["default"].fn[NAME$d].noConflict = function () {
405
$__default["default"].fn[NAME$d] = JQUERY_NO_CONFLICT$d;
406
return CardWidget._jQueryInterface;
420
var NAME$c = 'ControlSidebar';
421
var DATA_KEY$c = 'lte.controlsidebar';
422
var EVENT_KEY$5 = "." + DATA_KEY$c;
423
var JQUERY_NO_CONFLICT$c = $__default["default"].fn[NAME$c];
424
var EVENT_COLLAPSED$3 = "collapsed" + EVENT_KEY$5;
425
var EVENT_COLLAPSED_DONE$1 = "collapsed-done" + EVENT_KEY$5;
426
var EVENT_EXPANDED$2 = "expanded" + EVENT_KEY$5;
427
var SELECTOR_CONTROL_SIDEBAR = '.control-sidebar';
428
var SELECTOR_CONTROL_SIDEBAR_CONTENT$1 = '.control-sidebar-content';
429
var SELECTOR_DATA_TOGGLE$4 = '[data-widget="control-sidebar"]';
430
var SELECTOR_HEADER$1 = '.main-header';
431
var SELECTOR_FOOTER$1 = '.main-footer';
432
var CLASS_NAME_CONTROL_SIDEBAR_ANIMATE = 'control-sidebar-animate';
433
var CLASS_NAME_CONTROL_SIDEBAR_OPEN$1 = 'control-sidebar-open';
434
var CLASS_NAME_CONTROL_SIDEBAR_SLIDE = 'control-sidebar-slide-open';
435
var CLASS_NAME_LAYOUT_FIXED$1 = 'layout-fixed';
436
var CLASS_NAME_NAVBAR_FIXED = 'layout-navbar-fixed';
437
var CLASS_NAME_NAVBAR_SM_FIXED = 'layout-sm-navbar-fixed';
438
var CLASS_NAME_NAVBAR_MD_FIXED = 'layout-md-navbar-fixed';
439
var CLASS_NAME_NAVBAR_LG_FIXED = 'layout-lg-navbar-fixed';
440
var CLASS_NAME_NAVBAR_XL_FIXED = 'layout-xl-navbar-fixed';
441
var CLASS_NAME_FOOTER_FIXED = 'layout-footer-fixed';
442
var CLASS_NAME_FOOTER_SM_FIXED = 'layout-sm-footer-fixed';
443
var CLASS_NAME_FOOTER_MD_FIXED = 'layout-md-footer-fixed';
444
var CLASS_NAME_FOOTER_LG_FIXED = 'layout-lg-footer-fixed';
445
var CLASS_NAME_FOOTER_XL_FIXED = 'layout-xl-footer-fixed';
447
controlsidebarSlide: true,
448
scrollbarTheme: 'os-theme-light',
449
scrollbarAutoHide: 'l',
450
target: SELECTOR_CONTROL_SIDEBAR,
458
var ControlSidebar = function () {
459
function ControlSidebar(element, config) {
460
this._element = element;
461
this._config = config;
465
var _proto = ControlSidebar.prototype;
467
_proto.collapse = function collapse() {
470
var $body = $__default["default"]('body');
471
var $html = $__default["default"]('html');
473
if (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();
481
$body.removeClass(CLASS_NAME_CONTROL_SIDEBAR_OPEN$1);
484
$__default["default"](this._element).trigger($__default["default"].Event(EVENT_COLLAPSED$3));
485
setTimeout(function () {
486
$__default["default"](_this._element).trigger($__default["default"].Event(EVENT_COLLAPSED_DONE$1));
487
}, this._config.animationSpeed);
490
_proto.show = function show(toggle) {
491
if (toggle === void 0) {
495
var $body = $__default["default"]('body');
496
var $html = $__default["default"]('html');
499
$__default["default"](SELECTOR_CONTROL_SIDEBAR).hide();
503
if (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();
510
$__default["default"](this).dequeue();
513
$body.addClass(CLASS_NAME_CONTROL_SIDEBAR_OPEN$1);
518
this._fixScrollHeight();
520
$__default["default"](this._element).trigger($__default["default"].Event(EVENT_EXPANDED$2));
523
_proto.toggle = function toggle() {
524
var $body = $__default["default"]('body');
525
var target = this._config.target;
526
var notVisible = !$__default["default"](target).is(':visible');
527
var shouldClose = $body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_OPEN$1) || $body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_SLIDE);
528
var shouldToggle = notVisible && ($body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_OPEN$1) || $body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_SLIDE));
530
if (notVisible || shouldToggle) {
532
this.show(notVisible);
533
} else if (shouldClose) {
540
_proto._init = function _init() {
543
var $body = $__default["default"]('body');
544
var shouldNotHideAll = $body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_OPEN$1) || $body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_SLIDE);
546
if (shouldNotHideAll) {
547
$__default["default"](SELECTOR_CONTROL_SIDEBAR).not(this._config.target).hide();
548
$__default["default"](this._config.target).css('display', 'block');
550
$__default["default"](SELECTOR_CONTROL_SIDEBAR).hide();
555
this._fixScrollHeight();
557
$__default["default"](window).resize(function () {
560
_this2._fixScrollHeight();
562
$__default["default"](window).scroll(function () {
563
var $body = $__default["default"]('body');
564
var shouldFixHeight = $body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_OPEN$1) || $body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_SLIDE);
566
if (shouldFixHeight) {
567
_this2._fixScrollHeight();
572
_proto._isNavbarFixed = function _isNavbarFixed() {
573
var $body = $__default["default"]('body');
574
return $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);
577
_proto._isFooterFixed = function _isFooterFixed() {
578
var $body = $__default["default"]('body');
579
return $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);
582
_proto._fixScrollHeight = function _fixScrollHeight() {
583
var $body = $__default["default"]('body');
584
var $controlSidebar = $__default["default"](this._config.target);
586
if (!$body.hasClass(CLASS_NAME_LAYOUT_FIXED$1)) {
591
scroll: $__default["default"](document).height(),
592
window: $__default["default"](window).height(),
593
header: $__default["default"](SELECTOR_HEADER$1).outerHeight(),
594
footer: $__default["default"](SELECTOR_FOOTER$1).outerHeight()
597
bottom: Math.abs(heights.window + $__default["default"](window).scrollTop() - heights.scroll),
598
top: $__default["default"](window).scrollTop()
600
var navbarFixed = this._isNavbarFixed() && $__default["default"](SELECTOR_HEADER$1).css('position') === 'fixed';
601
var footerFixed = this._isFooterFixed() && $__default["default"](SELECTOR_FOOTER$1).css('position') === 'fixed';
602
var $controlsidebarContent = $__default["default"](this._config.target + ", " + this._config.target + " " + SELECTOR_CONTROL_SIDEBAR_CONTENT$1);
604
if (positions.top === 0 && positions.bottom === 0) {
605
$controlSidebar.css({
606
bottom: heights.footer,
609
$controlsidebarContent.css('height', heights.window - (heights.header + heights.footer));
610
} else if (positions.bottom <= heights.footer) {
611
if (footerFixed === false) {
612
var 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));
616
$controlSidebar.css('bottom', heights.footer);
618
} else if (positions.top <= heights.header) {
619
if (navbarFixed === false) {
620
$controlSidebar.css('top', heights.header - positions.top);
621
$controlsidebarContent.css('height', heights.window - (heights.header - positions.top));
623
$controlSidebar.css('top', heights.header);
625
} else if (navbarFixed === false) {
626
$controlSidebar.css('top', 0);
627
$controlsidebarContent.css('height', heights.window);
629
$controlSidebar.css('top', heights.header);
632
if (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', '');
641
_proto._fixHeight = function _fixHeight() {
642
var $body = $__default["default"]('body');
643
var $controlSidebar = $__default["default"](this._config.target + " " + SELECTOR_CONTROL_SIDEBAR_CONTENT$1);
645
if (!$body.hasClass(CLASS_NAME_LAYOUT_FIXED$1)) {
646
$controlSidebar.attr('style', '');
651
window: $__default["default"](window).height(),
652
header: $__default["default"](SELECTOR_HEADER$1).outerHeight(),
653
footer: $__default["default"](SELECTOR_FOOTER$1).outerHeight()
655
var sidebarHeight = heights.window - heights.header;
657
if (this._isFooterFixed() && $__default["default"](SELECTOR_FOOTER$1).css('position') === 'fixed') {
658
sidebarHeight = heights.window - heights.header - heights.footer;
661
$controlSidebar.css('height', sidebarHeight);
663
if (typeof $__default["default"].fn.overlayScrollbars !== 'undefined') {
664
$controlSidebar.overlayScrollbars({
665
className: this._config.scrollbarTheme,
666
sizeAutoCapable: true,
668
autoHide: this._config.scrollbarAutoHide,
676
ControlSidebar._jQueryInterface = function _jQueryInterface(operation) {
677
return this.each(function () {
678
var data = $__default["default"](this).data(DATA_KEY$c);
680
var _options = $__default["default"].extend({}, Default$a, $__default["default"](this).data());
683
data = new ControlSidebar(this, _options);
684
$__default["default"](this).data(DATA_KEY$c, data);
687
if (data[operation] === 'undefined') {
688
throw new Error(operation + " is not a function");
695
return ControlSidebar;
704
$__default["default"](document).on('click', SELECTOR_DATA_TOGGLE$4, function (event) {
705
event.preventDefault();
707
ControlSidebar._jQueryInterface.call($__default["default"](this), 'toggle');
709
$__default["default"](document).ready(function () {
710
ControlSidebar._jQueryInterface.call($__default["default"](SELECTOR_DATA_TOGGLE$4), '_init');
717
$__default["default"].fn[NAME$c] = ControlSidebar._jQueryInterface;
718
$__default["default"].fn[NAME$c].Constructor = ControlSidebar;
720
$__default["default"].fn[NAME$c].noConflict = function () {
721
$__default["default"].fn[NAME$c] = JQUERY_NO_CONFLICT$c;
722
return ControlSidebar._jQueryInterface;
736
var NAME$b = 'DirectChat';
737
var DATA_KEY$b = 'lte.directchat';
738
var EVENT_KEY$4 = "." + DATA_KEY$b;
739
var JQUERY_NO_CONFLICT$b = $__default["default"].fn[NAME$b];
740
var EVENT_TOGGLED = "toggled" + EVENT_KEY$4;
741
var SELECTOR_DATA_TOGGLE$3 = '[data-widget="chat-pane-toggle"]';
742
var SELECTOR_DIRECT_CHAT = '.direct-chat';
743
var CLASS_NAME_DIRECT_CHAT_OPEN = 'direct-chat-contacts-open';
749
var DirectChat = function () {
750
function DirectChat(element) {
751
this._element = element;
754
var _proto = DirectChat.prototype;
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));
762
DirectChat._jQueryInterface = function _jQueryInterface(config) {
763
return this.each(function () {
764
var data = $__default["default"](this).data(DATA_KEY$b);
767
data = new DirectChat($__default["default"](this));
768
$__default["default"](this).data(DATA_KEY$b, data);
784
$__default["default"](document).on('click', SELECTOR_DATA_TOGGLE$3, function (event) {
786
event.preventDefault();
789
DirectChat._jQueryInterface.call($__default["default"](this), 'toggle');
796
$__default["default"].fn[NAME$b] = DirectChat._jQueryInterface;
797
$__default["default"].fn[NAME$b].Constructor = DirectChat;
799
$__default["default"].fn[NAME$b].noConflict = function () {
800
$__default["default"].fn[NAME$b] = JQUERY_NO_CONFLICT$b;
801
return DirectChat._jQueryInterface;
815
var NAME$a = 'Dropdown';
816
var DATA_KEY$a = 'lte.dropdown';
817
var JQUERY_NO_CONFLICT$a = $__default["default"].fn[NAME$a];
818
var SELECTOR_NAVBAR = '.navbar';
819
var SELECTOR_DROPDOWN_MENU = '.dropdown-menu';
820
var SELECTOR_DROPDOWN_MENU_ACTIVE = '.dropdown-menu.show';
821
var SELECTOR_DROPDOWN_TOGGLE = '[data-toggle="dropdown"]';
822
var CLASS_NAME_DROPDOWN_RIGHT = 'dropdown-menu-right';
823
var CLASS_NAME_DROPDOWN_SUBMENU = 'dropdown-submenu';
831
var Dropdown = function () {
832
function Dropdown(element, config) {
833
this._config = config;
834
this._element = element;
838
var _proto = Dropdown.prototype;
840
_proto.toggleSubmenu = function toggleSubmenu() {
841
this._element.siblings().show().toggleClass('show');
843
if (!this._element.next().hasClass('show')) {
844
this._element.parents(SELECTOR_DROPDOWN_MENU).first().find('.show').removeClass('show').hide();
847
this._element.parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown', function () {
848
$__default["default"]('.dropdown-submenu .show').removeClass('show').hide();
852
_proto.fixPosition = function fixPosition() {
853
var $element = $__default["default"](SELECTOR_DROPDOWN_MENU_ACTIVE);
855
if ($element.length === 0) {
859
if ($element.hasClass(CLASS_NAME_DROPDOWN_RIGHT)) {
871
var offset = $element.offset();
872
var width = $element.width();
873
var visiblePart = $__default["default"](window).width() - offset.left;
875
if (offset.left < 0) {
878
right: offset.left - 5
880
} else if (visiblePart < width) {
889
Dropdown._jQueryInterface = function _jQueryInterface(config) {
890
return this.each(function () {
891
var data = $__default["default"](this).data(DATA_KEY$a);
893
var _config = $__default["default"].extend({}, Default$9, $__default["default"](this).data());
896
data = new Dropdown($__default["default"](this), _config);
897
$__default["default"](this).data(DATA_KEY$a, data);
900
if (config === 'toggleSubmenu' || config === 'fixPosition') {
914
$__default["default"](SELECTOR_DROPDOWN_MENU + " " + SELECTOR_DROPDOWN_TOGGLE).on('click', function (event) {
915
event.preventDefault();
916
event.stopPropagation();
918
Dropdown._jQueryInterface.call($__default["default"](this), 'toggleSubmenu');
920
$__default["default"](SELECTOR_NAVBAR + " " + SELECTOR_DROPDOWN_TOGGLE).on('click', function (event) {
921
event.preventDefault();
923
if ($__default["default"](event.target).parent().hasClass(CLASS_NAME_DROPDOWN_SUBMENU)) {
927
setTimeout(function () {
928
Dropdown._jQueryInterface.call($__default["default"](this), 'fixPosition');
936
$__default["default"].fn[NAME$a] = Dropdown._jQueryInterface;
937
$__default["default"].fn[NAME$a].Constructor = Dropdown;
939
$__default["default"].fn[NAME$a].noConflict = function () {
940
$__default["default"].fn[NAME$a] = JQUERY_NO_CONFLICT$a;
941
return Dropdown._jQueryInterface;
955
var NAME$9 = 'ExpandableTable';
956
var DATA_KEY$9 = 'lte.expandableTable';
957
var EVENT_KEY$3 = "." + DATA_KEY$9;
958
var JQUERY_NO_CONFLICT$9 = $__default["default"].fn[NAME$9];
959
var EVENT_EXPANDED$1 = "expanded" + EVENT_KEY$3;
960
var EVENT_COLLAPSED$2 = "collapsed" + EVENT_KEY$3;
961
var SELECTOR_TABLE = '.expandable-table';
962
var SELECTOR_EXPANDABLE_BODY = '.expandable-body';
963
var SELECTOR_DATA_TOGGLE$2 = '[data-widget="expandable-table"]';
964
var SELECTOR_ARIA_ATTR = 'aria-expanded';
970
var ExpandableTable = function () {
971
function ExpandableTable(element, options) {
972
this._options = options;
973
this._element = element;
977
var _proto = ExpandableTable.prototype;
979
_proto.init = function init() {
980
$__default["default"](SELECTOR_DATA_TOGGLE$2).each(function (_, $header) {
981
var $type = $__default["default"]($header).attr(SELECTOR_ARIA_ATTR);
982
var $body = $__default["default"]($header).next(SELECTOR_EXPANDABLE_BODY).children().first().children();
984
if ($type === 'true') {
986
} else if ($type === 'false') {
988
$body.parent().parent().addClass('d-none');
993
_proto.toggleRow = function toggleRow() {
994
var $element = this._element;
996
if ($element[0].nodeName !== 'TR') {
997
$element = $element.parent();
999
if ($element[0].nodeName !== 'TR') {
1000
$element = $element.parent();
1005
var $type = $element.attr(SELECTOR_ARIA_ATTR);
1006
var $body = $element.next(SELECTOR_EXPANDABLE_BODY).children().first().children();
1009
if ($type === 'true') {
1010
$body.slideUp(time, function () {
1011
$element.next(SELECTOR_EXPANDABLE_BODY).addClass('d-none');
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));
1024
ExpandableTable._jQueryInterface = function _jQueryInterface(operation) {
1025
return this.each(function () {
1026
var data = $__default["default"](this).data(DATA_KEY$9);
1029
data = new ExpandableTable($__default["default"](this));
1030
$__default["default"](this).data(DATA_KEY$9, data);
1033
if (typeof operation === 'string' && /init|toggleRow/.test(operation)) {
1039
return ExpandableTable;
1047
$__default["default"](SELECTOR_TABLE).ready(function () {
1048
ExpandableTable._jQueryInterface.call($__default["default"](this), 'init');
1050
$__default["default"](document).on('click', SELECTOR_DATA_TOGGLE$2, function () {
1051
ExpandableTable._jQueryInterface.call($__default["default"](this), 'toggleRow');
1058
$__default["default"].fn[NAME$9] = ExpandableTable._jQueryInterface;
1059
$__default["default"].fn[NAME$9].Constructor = ExpandableTable;
1061
$__default["default"].fn[NAME$9].noConflict = function () {
1062
$__default["default"].fn[NAME$9] = JQUERY_NO_CONFLICT$9;
1063
return ExpandableTable._jQueryInterface;
1077
var NAME$8 = 'Fullscreen';
1078
var DATA_KEY$8 = 'lte.fullscreen';
1079
var JQUERY_NO_CONFLICT$8 = $__default["default"].fn[NAME$8];
1080
var SELECTOR_DATA_WIDGET$2 = '[data-widget="fullscreen"]';
1081
var SELECTOR_ICON = SELECTOR_DATA_WIDGET$2 + " i";
1082
var EVENT_FULLSCREEN_CHANGE = 'webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange';
1084
minimizeIcon: 'fa-compress-arrows-alt',
1085
maximizeIcon: 'fa-expand-arrows-alt'
1092
var Fullscreen = function () {
1093
function Fullscreen(_element, _options) {
1094
this.element = _element;
1095
this.options = $__default["default"].extend({}, Default$8, _options);
1099
var _proto = Fullscreen.prototype;
1101
_proto.toggle = function toggle() {
1102
if (document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement) {
1109
_proto.toggleIcon = function toggleIcon() {
1110
if (document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement) {
1111
$__default["default"](SELECTOR_ICON).removeClass(this.options.maximizeIcon).addClass(this.options.minimizeIcon);
1113
$__default["default"](SELECTOR_ICON).removeClass(this.options.minimizeIcon).addClass(this.options.maximizeIcon);
1117
_proto.fullscreen = function fullscreen() {
1118
if (document.documentElement.requestFullscreen) {
1119
document.documentElement.requestFullscreen();
1120
} else if (document.documentElement.webkitRequestFullscreen) {
1121
document.documentElement.webkitRequestFullscreen();
1122
} else if (document.documentElement.msRequestFullscreen) {
1123
document.documentElement.msRequestFullscreen();
1127
_proto.windowed = function windowed() {
1128
if (document.exitFullscreen) {
1129
document.exitFullscreen();
1130
} else if (document.webkitExitFullscreen) {
1131
document.webkitExitFullscreen();
1132
} else if (document.msExitFullscreen) {
1133
document.msExitFullscreen();
1138
Fullscreen._jQueryInterface = function _jQueryInterface(config) {
1139
var data = $__default["default"](this).data(DATA_KEY$8);
1142
data = $__default["default"](this).data();
1145
var _options = $__default["default"].extend({}, Default$8, typeof config === 'object' ? config : data);
1147
var plugin = new Fullscreen($__default["default"](this), _options);
1148
$__default["default"](this).data(DATA_KEY$8, typeof config === 'object' ? config : data);
1150
if (typeof config === 'string' && /toggle|toggleIcon|fullscreen|windowed/.test(config)) {
1165
$__default["default"](document).on('click', SELECTOR_DATA_WIDGET$2, function () {
1166
Fullscreen._jQueryInterface.call($__default["default"](this), 'toggle');
1168
$__default["default"](document).on(EVENT_FULLSCREEN_CHANGE, function () {
1169
Fullscreen._jQueryInterface.call($__default["default"](SELECTOR_DATA_WIDGET$2), 'toggleIcon');
1176
$__default["default"].fn[NAME$8] = Fullscreen._jQueryInterface;
1177
$__default["default"].fn[NAME$8].Constructor = Fullscreen;
1179
$__default["default"].fn[NAME$8].noConflict = function () {
1180
$__default["default"].fn[NAME$8] = JQUERY_NO_CONFLICT$8;
1181
return Fullscreen._jQueryInterface;
1195
var NAME$7 = 'IFrame';
1196
var DATA_KEY$7 = 'lte.iframe';
1197
var JQUERY_NO_CONFLICT$7 = $__default["default"].fn[NAME$7];
1198
var SELECTOR_DATA_TOGGLE$1 = '[data-widget="iframe"]';
1199
var SELECTOR_DATA_TOGGLE_CLOSE = '[data-widget="iframe-close"]';
1200
var SELECTOR_DATA_TOGGLE_SCROLL_LEFT = '[data-widget="iframe-scrollleft"]';
1201
var SELECTOR_DATA_TOGGLE_SCROLL_RIGHT = '[data-widget="iframe-scrollright"]';
1202
var SELECTOR_DATA_TOGGLE_FULLSCREEN = '[data-widget="iframe-fullscreen"]';
1203
var SELECTOR_CONTENT_WRAPPER = '.content-wrapper';
1204
var SELECTOR_CONTENT_IFRAME = SELECTOR_CONTENT_WRAPPER + " iframe";
1205
var SELECTOR_TAB_NAV = SELECTOR_CONTENT_WRAPPER + ".iframe-mode .nav";
1206
var SELECTOR_TAB_NAVBAR_NAV = SELECTOR_CONTENT_WRAPPER + ".iframe-mode .navbar-nav";
1207
var SELECTOR_TAB_NAVBAR_NAV_ITEM = SELECTOR_TAB_NAVBAR_NAV + " .nav-item";
1208
var SELECTOR_TAB_NAVBAR_NAV_LINK = SELECTOR_TAB_NAVBAR_NAV + " .nav-link";
1209
var SELECTOR_TAB_CONTENT = SELECTOR_CONTENT_WRAPPER + ".iframe-mode .tab-content";
1210
var SELECTOR_TAB_EMPTY = SELECTOR_TAB_CONTENT + " .tab-empty";
1211
var SELECTOR_TAB_LOADING = SELECTOR_TAB_CONTENT + " .tab-loading";
1212
var SELECTOR_TAB_PANE = SELECTOR_TAB_CONTENT + " .tab-pane";
1213
var SELECTOR_SIDEBAR_MENU_ITEM = '.main-sidebar .nav-item > a.nav-link';
1214
var SELECTOR_SIDEBAR_SEARCH_ITEM = '.sidebar-search-results .list-group-item';
1215
var SELECTOR_HEADER_MENU_ITEM = '.main-header .nav-item a.nav-link';
1216
var SELECTOR_HEADER_DROPDOWN_ITEM = '.main-header a.dropdown-item';
1217
var CLASS_NAME_IFRAME_MODE$1 = 'iframe-mode';
1218
var CLASS_NAME_FULLSCREEN_MODE = 'iframe-mode-fullscreen';
1220
onTabClick: function onTabClick(item) {
1223
onTabChanged: function onTabChanged(item) {
1226
onTabCreated: function onTabCreated(item) {
1229
autoIframeMode: true,
1230
autoItemActive: true,
1231
autoShowNewTab: true,
1232
autoDarkMode: false,
1233
allowDuplicates: false,
1235
loadingScreen: true,
1236
useNavbarItems: true,
1238
scrollBehaviorSwap: false,
1239
iconMaximize: 'fa-expand',
1240
iconMinimize: 'fa-compress'
1247
var IFrame = function () {
1248
function IFrame(element, config) {
1249
this._config = config;
1250
this._element = element;
1256
var _proto = IFrame.prototype;
1258
_proto.onTabClick = function onTabClick(item) {
1259
this._config.onTabClick(item);
1262
_proto.onTabChanged = function onTabChanged(item) {
1263
this._config.onTabChanged(item);
1266
_proto.onTabCreated = function onTabCreated(item) {
1267
this._config.onTabCreated(item);
1270
_proto.createTab = function createTab(title, link, uniqueName, autoOpen) {
1273
var tabId = "panel-" + uniqueName;
1274
var navId = "tab-" + uniqueName;
1276
if (this._config.allowDuplicates) {
1277
tabId += "-" + Math.floor(Math.random() * 1000);
1278
navId += "-" + Math.floor(Math.random() * 1000);
1281
var 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)));
1283
var 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)));
1287
if (this._config.loadingScreen) {
1288
var $loadingScreen = $__default["default"](SELECTOR_TAB_LOADING);
1289
$loadingScreen.fadeIn();
1290
$__default["default"](tabId + " iframe").ready(function () {
1291
if (typeof _this._config.loadingScreen === 'number') {
1292
_this.switchTab("#" + navId);
1294
setTimeout(function () {
1295
$loadingScreen.fadeOut();
1296
}, _this._config.loadingScreen);
1298
_this.switchTab("#" + navId);
1300
$loadingScreen.fadeOut();
1304
this.switchTab("#" + navId);
1308
this.onTabCreated($__default["default"]("#" + navId));
1311
_proto.openTabSidebar = function openTabSidebar(item, autoOpen) {
1312
if (autoOpen === void 0) {
1313
autoOpen = this._config.autoShowNewTab;
1316
var $item = $__default["default"](item).clone();
1318
if ($item.attr('href') === undefined) {
1319
$item = $__default["default"](item).parent('a').clone();
1322
$item.find('.right, .search-path').remove();
1323
var title = $item.find('p').text();
1326
title = $item.text();
1329
var link = $item.attr('href');
1331
if (link === '#' || link === '' || link === undefined) {
1335
var uniqueName = unescape(link).replace('./', '').replace(/["#&'./:=?[\]]/gi, '-').replace(/(--)/gi, '');
1336
var navId = "tab-" + uniqueName;
1338
if (!this._config.allowDuplicates && $__default["default"]("#" + navId).length > 0) {
1339
return this.switchTab("#" + navId, this._config.allowReload);
1342
if (!this._config.allowDuplicates && $__default["default"]("#" + navId).length === 0 || this._config.allowDuplicates) {
1343
this.createTab(title, link, uniqueName, autoOpen);
1347
_proto.switchTab = function switchTab(item, reload) {
1350
if (reload === void 0) {
1354
var $item = $__default["default"](item);
1355
var tabId = $item.attr('href');
1356
$__default["default"](SELECTOR_TAB_EMPTY).hide();
1359
var $loadingScreen = $__default["default"](SELECTOR_TAB_LOADING);
1361
if (this._config.loadingScreen) {
1362
$loadingScreen.show(0, function () {
1363
$__default["default"](tabId + " iframe").attr('src', $__default["default"](tabId + " iframe").attr('src')).ready(function () {
1364
if (_this2._config.loadingScreen) {
1365
if (typeof _this2._config.loadingScreen === 'number') {
1366
setTimeout(function () {
1367
$loadingScreen.fadeOut();
1368
}, _this2._config.loadingScreen);
1370
$loadingScreen.fadeOut();
1376
$__default["default"](tabId + " iframe").attr('src', $__default["default"](tabId + " iframe").attr('src'));
1380
$__default["default"](SELECTOR_TAB_NAVBAR_NAV + " .active").tab('dispose').removeClass('active');
1385
$item.parents('li').addClass('active');
1386
this.onTabChanged($item);
1388
if (this._config.autoItemActive) {
1389
this._setItemActive($__default["default"](tabId + " iframe").attr('src'));
1393
_proto.removeActiveTab = function removeActiveTab(type, element) {
1394
if (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') {
1402
var $navClose = $__default["default"](element);
1403
var $navItem = $navClose.parent('.nav-item');
1404
var $navItemParent = $navItem.parent();
1405
var navItemIndex = $navItem.index();
1406
var tabId = $navClose.siblings('.nav-link').attr('aria-controls');
1408
$__default["default"]("#" + tabId).remove();
1410
if ($__default["default"](SELECTOR_TAB_CONTENT).children().length == $__default["default"](SELECTOR_TAB_EMPTY + ", " + SELECTOR_TAB_LOADING).length) {
1411
$__default["default"](SELECTOR_TAB_EMPTY).show();
1413
var prevNavItemIndex = navItemIndex - 1;
1414
this.switchTab($navItemParent.children().eq(prevNavItemIndex).find('a.nav-link'));
1417
var _$navItem = $__default["default"](SELECTOR_TAB_NAVBAR_NAV_ITEM + ".active");
1419
var _$navItemParent = _$navItem.parent();
1421
var _navItemIndex = _$navItem.index();
1425
$__default["default"](SELECTOR_TAB_PANE + ".active").remove();
1427
if ($__default["default"](SELECTOR_TAB_CONTENT).children().length == $__default["default"](SELECTOR_TAB_EMPTY + ", " + SELECTOR_TAB_LOADING).length) {
1428
$__default["default"](SELECTOR_TAB_EMPTY).show();
1430
var _prevNavItemIndex = _navItemIndex - 1;
1432
this.switchTab(_$navItemParent.children().eq(_prevNavItemIndex).find('a.nav-link'));
1437
_proto.toggleFullscreen = function toggleFullscreen() {
1438
if ($__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%');
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);
1449
$__default["default"](window).trigger('resize');
1451
this._fixHeight(true);
1455
_proto._init = function _init() {
1456
var usingDefTab = $__default["default"](SELECTOR_TAB_CONTENT).children().length > 2;
1458
this._setupListeners();
1460
this._fixHeight(true);
1463
var $el = $__default["default"]("" + SELECTOR_TAB_PANE).first();
1466
var uniqueName = $el.attr('id').replace('panel-', '');
1467
var navId = "#tab-" + uniqueName;
1468
this.switchTab(navId, true);
1472
_proto._initFrameElement = function _initFrameElement() {
1473
if (window.frameElement && this._config.autoIframeMode) {
1474
var $body = $__default["default"]('body');
1475
$body.addClass(CLASS_NAME_IFRAME_MODE$1);
1477
if (this._config.autoDarkMode) {
1478
$body.addClass('dark-mode');
1483
_proto._navScroll = function _navScroll(offset) {
1484
var leftPos = $__default["default"](SELECTOR_TAB_NAVBAR_NAV).scrollLeft();
1485
$__default["default"](SELECTOR_TAB_NAVBAR_NAV).animate({
1486
scrollLeft: leftPos + offset
1490
_proto._setupListeners = function _setupListeners() {
1493
$__default["default"](window).on('resize', function () {
1494
setTimeout(function () {
1495
_this3._fixHeight();
1499
if ($__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) {
1503
_this3.openTabSidebar(e.target);
1506
if (this._config.useNavbarItems) {
1507
$__default["default"](document).on('click', SELECTOR_HEADER_MENU_ITEM + ", " + SELECTOR_HEADER_DROPDOWN_ITEM, function (e) {
1510
_this3.openTabSidebar(e.target);
1515
$__default["default"](document).on('click', SELECTOR_TAB_NAVBAR_NAV_LINK, function (e) {
1518
_this3.onTabClick(e.target);
1520
_this3.switchTab(e.target);
1522
$__default["default"](document).on('click', SELECTOR_TAB_NAVBAR_NAV_LINK, function (e) {
1525
_this3.onTabClick(e.target);
1527
_this3.switchTab(e.target);
1529
$__default["default"](document).on('click', SELECTOR_DATA_TOGGLE_CLOSE, function (e) {
1531
var target = e.target;
1533
if (target.nodeName == 'I') {
1534
target = e.target.offsetParent;
1537
_this3.removeActiveTab(target.attributes['data-type'] ? target.attributes['data-type'].nodeValue : null, target);
1539
$__default["default"](document).on('click', SELECTOR_DATA_TOGGLE_FULLSCREEN, function (e) {
1542
_this3.toggleFullscreen();
1544
var mousedown = false;
1545
var mousedownInterval = null;
1546
$__default["default"](document).on('mousedown', SELECTOR_DATA_TOGGLE_SCROLL_LEFT, function (e) {
1548
clearInterval(mousedownInterval);
1549
var scrollOffset = _this3._config.scrollOffset;
1551
if (!_this3._config.scrollBehaviorSwap) {
1552
scrollOffset = -scrollOffset;
1557
_this3._navScroll(scrollOffset);
1559
mousedownInterval = setInterval(function () {
1560
_this3._navScroll(scrollOffset);
1563
$__default["default"](document).on('mousedown', SELECTOR_DATA_TOGGLE_SCROLL_RIGHT, function (e) {
1565
clearInterval(mousedownInterval);
1566
var scrollOffset = _this3._config.scrollOffset;
1568
if (_this3._config.scrollBehaviorSwap) {
1569
scrollOffset = -scrollOffset;
1574
_this3._navScroll(scrollOffset);
1576
mousedownInterval = setInterval(function () {
1577
_this3._navScroll(scrollOffset);
1580
$__default["default"](document).on('mouseup', function () {
1583
clearInterval(mousedownInterval);
1584
mousedownInterval = null;
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');
1592
var $headerMenuItem = $__default["default"](SELECTOR_HEADER_MENU_ITEM + "[href$=\"" + href + "\"]");
1593
var $headerDropdownItem = $__default["default"](SELECTOR_HEADER_DROPDOWN_ITEM + "[href$=\"" + href + "\"]");
1594
var $sidebarMenuItem = $__default["default"](SELECTOR_SIDEBAR_MENU_ITEM + "[href$=\"" + href + "\"]");
1595
$headerMenuItem.each(function (i, e) {
1596
$__default["default"](e).parent().addClass('active');
1598
$headerDropdownItem.each(function (i, e) {
1599
$__default["default"](e).addClass('active');
1601
$sidebarMenuItem.each(function (i, e) {
1602
$__default["default"](e).addClass('active');
1603
$__default["default"](e).parents('.nav-treeview').prevAll('.nav-link').addClass('active');
1607
_proto._fixHeight = function _fixHeight(tabEmpty) {
1608
if (tabEmpty === void 0) {
1612
if ($__default["default"]('body').hasClass(CLASS_NAME_FULLSCREEN_MODE)) {
1613
var windowHeight = $__default["default"](window).height();
1614
var 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);
1618
var contentWrapperHeight = parseFloat($__default["default"](SELECTOR_CONTENT_WRAPPER).css('height'));
1620
var _navbarHeight = $__default["default"](SELECTOR_TAB_NAV).outerHeight();
1622
if (tabEmpty == true) {
1623
setTimeout(function () {
1624
$__default["default"](SELECTOR_TAB_EMPTY + ", " + SELECTOR_TAB_LOADING).height(contentWrapperHeight - _navbarHeight);
1627
$__default["default"](SELECTOR_CONTENT_IFRAME).height(contentWrapperHeight - _navbarHeight);
1633
IFrame._jQueryInterface = function _jQueryInterface(config) {
1634
if ($__default["default"](SELECTOR_DATA_TOGGLE$1).length > 0) {
1635
var data = $__default["default"](this).data(DATA_KEY$7);
1638
data = $__default["default"](this).data();
1641
var _options = $__default["default"].extend({}, Default$7, typeof config === 'object' ? config : data);
1643
localStorage.setItem('AdminLTE:IFrame:Options', JSON.stringify(_options));
1644
var plugin = new IFrame($__default["default"](this), _options);
1645
$__default["default"](this).data(DATA_KEY$7, typeof config === 'object' ? config : data);
1647
if (typeof config === 'string' && /createTab|openTabSidebar|switchTab|removeActiveTab/.test(config)) {
1651
new IFrame($__default["default"](this), JSON.parse(localStorage.getItem('AdminLTE:IFrame:Options')))._initFrameElement();
1663
$__default["default"](window).on('load', function () {
1664
IFrame._jQueryInterface.call($__default["default"](SELECTOR_DATA_TOGGLE$1));
1671
$__default["default"].fn[NAME$7] = IFrame._jQueryInterface;
1672
$__default["default"].fn[NAME$7].Constructor = IFrame;
1674
$__default["default"].fn[NAME$7].noConflict = function () {
1675
$__default["default"].fn[NAME$7] = JQUERY_NO_CONFLICT$7;
1676
return IFrame._jQueryInterface;
1690
var NAME$6 = 'Layout';
1691
var DATA_KEY$6 = 'lte.layout';
1692
var JQUERY_NO_CONFLICT$6 = $__default["default"].fn[NAME$6];
1693
var SELECTOR_HEADER = '.main-header';
1694
var SELECTOR_MAIN_SIDEBAR = '.main-sidebar';
1695
var SELECTOR_SIDEBAR$1 = '.main-sidebar .sidebar';
1696
var SELECTOR_CONTENT = '.content-wrapper';
1697
var SELECTOR_CONTROL_SIDEBAR_CONTENT = '.control-sidebar-content';
1698
var SELECTOR_CONTROL_SIDEBAR_BTN = '[data-widget="control-sidebar"]';
1699
var SELECTOR_FOOTER = '.main-footer';
1700
var SELECTOR_PUSHMENU_BTN = '[data-widget="pushmenu"]';
1701
var SELECTOR_LOGIN_BOX = '.login-box';
1702
var SELECTOR_REGISTER_BOX = '.register-box';
1703
var SELECTOR_PRELOADER = '.preloader';
1704
var CLASS_NAME_SIDEBAR_COLLAPSED$1 = 'sidebar-collapse';
1705
var CLASS_NAME_SIDEBAR_FOCUSED = 'sidebar-focused';
1706
var CLASS_NAME_LAYOUT_FIXED = 'layout-fixed';
1707
var CLASS_NAME_CONTROL_SIDEBAR_SLIDE_OPEN = 'control-sidebar-slide-open';
1708
var CLASS_NAME_CONTROL_SIDEBAR_OPEN = 'control-sidebar-open';
1709
var CLASS_NAME_IFRAME_MODE = 'iframe-mode';
1711
scrollbarTheme: 'os-theme-light',
1712
scrollbarAutoHide: 'l',
1713
panelAutoHeight: true,
1714
panelAutoHeightMode: 'min-height',
1715
preloadDuration: 200,
1716
loginRegisterAutoHeight: true
1723
var Layout = function () {
1724
function Layout(element, config) {
1725
this._config = config;
1726
this._element = element;
1730
var _proto = Layout.prototype;
1732
_proto.fixLayoutHeight = function fixLayoutHeight(extra) {
1733
if (extra === void 0) {
1737
var $body = $__default["default"]('body');
1738
var controlSidebar = 0;
1740
if ($body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_SLIDE_OPEN) || $body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_OPEN) || extra === 'control_sidebar') {
1741
controlSidebar = $__default["default"](SELECTOR_CONTROL_SIDEBAR_CONTENT).outerHeight();
1745
window: $__default["default"](window).height(),
1746
header: $__default["default"](SELECTOR_HEADER).length > 0 ? $__default["default"](SELECTOR_HEADER).outerHeight() : 0,
1747
footer: $__default["default"](SELECTOR_FOOTER).length > 0 ? $__default["default"](SELECTOR_FOOTER).outerHeight() : 0,
1748
sidebar: $__default["default"](SELECTOR_SIDEBAR$1).length > 0 ? $__default["default"](SELECTOR_SIDEBAR$1).height() : 0,
1749
controlSidebar: controlSidebar
1752
var max = this._max(heights);
1754
var offset = this._config.panelAutoHeight;
1756
if (offset === true) {
1760
var $contentSelector = $__default["default"](SELECTOR_CONTENT);
1762
if (offset !== false) {
1763
if (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);
1768
$contentSelector.css(this._config.panelAutoHeightMode, max + offset - heights.header);
1771
if (this._isFooterFixed()) {
1772
$contentSelector.css(this._config.panelAutoHeightMode, parseFloat($contentSelector.css(this._config.panelAutoHeightMode)) + heights.footer);
1776
if (!$body.hasClass(CLASS_NAME_LAYOUT_FIXED)) {
1780
if (typeof $__default["default"].fn.overlayScrollbars !== 'undefined') {
1781
$__default["default"](SELECTOR_SIDEBAR$1).overlayScrollbars({
1782
className: this._config.scrollbarTheme,
1783
sizeAutoCapable: true,
1785
autoHide: this._config.scrollbarAutoHide,
1786
clickScrolling: true
1790
$__default["default"](SELECTOR_SIDEBAR$1).css('overflow-y', 'auto');
1794
_proto.fixLoginRegisterHeight = function fixLoginRegisterHeight() {
1795
var $body = $__default["default"]('body');
1796
var $selector = $__default["default"](SELECTOR_LOGIN_BOX + ", " + SELECTOR_REGISTER_BOX);
1798
if ($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');
1806
var boxHeight = $selector.height();
1808
if ($body.css(this._config.panelAutoHeightMode) !== boxHeight) {
1809
$body.css(this._config.panelAutoHeightMode, boxHeight);
1815
_proto._init = function _init() {
1819
this.fixLayoutHeight();
1821
if (this._config.loginRegisterAutoHeight === true) {
1822
this.fixLoginRegisterHeight();
1823
} else if (this._config.loginRegisterAutoHeight === parseInt(this._config.loginRegisterAutoHeight, 10)) {
1824
setInterval(this.fixLoginRegisterHeight, this._config.loginRegisterAutoHeight);
1827
$__default["default"](SELECTOR_SIDEBAR$1).on('collapsed.lte.treeview expanded.lte.treeview', function () {
1828
_this.fixLayoutHeight();
1830
$__default["default"](SELECTOR_MAIN_SIDEBAR).on('mouseenter mouseleave', function () {
1831
if ($__default["default"]('body').hasClass(CLASS_NAME_SIDEBAR_COLLAPSED$1)) {
1832
_this.fixLayoutHeight();
1835
$__default["default"](SELECTOR_PUSHMENU_BTN).on('collapsed.lte.pushmenu shown.lte.pushmenu', function () {
1836
setTimeout(function () {
1837
_this.fixLayoutHeight();
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');
1845
$__default["default"](window).resize(function () {
1846
_this.fixLayoutHeight();
1848
setTimeout(function () {
1849
$__default["default"]('body.hold-transition').removeClass('hold-transition');
1851
setTimeout(function () {
1852
var $preloader = $__default["default"](SELECTOR_PRELOADER);
1855
$preloader.css('height', 0);
1856
setTimeout(function () {
1857
$preloader.children().hide();
1860
}, this._config.preloadDuration);
1863
_proto._max = function _max(numbers) {
1866
Object.keys(numbers).forEach(function (key) {
1867
if (numbers[key] > max) {
1874
_proto._isFooterFixed = function _isFooterFixed() {
1875
return $__default["default"](SELECTOR_FOOTER).css('position') === 'fixed';
1879
Layout._jQueryInterface = function _jQueryInterface(config) {
1880
if (config === void 0) {
1884
return this.each(function () {
1885
var data = $__default["default"](this).data(DATA_KEY$6);
1887
var _options = $__default["default"].extend({}, Default$6, $__default["default"](this).data());
1890
data = new Layout($__default["default"](this), _options);
1891
$__default["default"](this).data(DATA_KEY$6, data);
1894
if (config === 'init' || config === '') {
1896
} else if (config === 'fixLayoutHeight' || config === 'fixLoginRegisterHeight') {
1910
$__default["default"](window).on('load', function () {
1911
Layout._jQueryInterface.call($__default["default"]('body'));
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);
1923
$__default["default"].fn[NAME$6] = Layout._jQueryInterface;
1924
$__default["default"].fn[NAME$6].Constructor = Layout;
1926
$__default["default"].fn[NAME$6].noConflict = function () {
1927
$__default["default"].fn[NAME$6] = JQUERY_NO_CONFLICT$6;
1928
return Layout._jQueryInterface;
1942
var NAME$5 = 'PushMenu';
1943
var DATA_KEY$5 = 'lte.pushmenu';
1944
var EVENT_KEY$2 = "." + DATA_KEY$5;
1945
var JQUERY_NO_CONFLICT$5 = $__default["default"].fn[NAME$5];
1946
var EVENT_COLLAPSED$1 = "collapsed" + EVENT_KEY$2;
1947
var EVENT_COLLAPSED_DONE = "collapsed-done" + EVENT_KEY$2;
1948
var EVENT_SHOWN = "shown" + EVENT_KEY$2;
1949
var SELECTOR_TOGGLE_BUTTON$1 = '[data-widget="pushmenu"]';
1950
var SELECTOR_BODY = 'body';
1951
var SELECTOR_OVERLAY = '#sidebar-overlay';
1952
var SELECTOR_WRAPPER = '.wrapper';
1953
var CLASS_NAME_COLLAPSED = 'sidebar-collapse';
1954
var CLASS_NAME_OPEN$3 = 'sidebar-open';
1955
var CLASS_NAME_IS_OPENING$1 = 'sidebar-is-opening';
1956
var CLASS_NAME_CLOSED = 'sidebar-closed';
1958
autoCollapseSize: 992,
1959
enableRemember: false,
1960
noTransitionAfterReload: true,
1968
var PushMenu = function () {
1969
function PushMenu(element, options) {
1970
this._element = element;
1971
this._options = $__default["default"].extend({}, Default$5, options);
1973
if ($__default["default"](SELECTOR_OVERLAY).length === 0) {
1981
var _proto = PushMenu.prototype;
1983
_proto.expand = function expand() {
1984
var $bodySelector = $__default["default"](SELECTOR_BODY);
1986
if (this._options.autoCollapseSize && $__default["default"](window).width() <= this._options.autoCollapseSize) {
1987
$bodySelector.addClass(CLASS_NAME_OPEN$3);
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();
1995
if (this._options.enableRemember) {
1996
localStorage.setItem("remember" + EVENT_KEY$2, CLASS_NAME_OPEN$3);
1999
$__default["default"](this._element).trigger($__default["default"].Event(EVENT_SHOWN));
2002
_proto.collapse = function collapse() {
2005
var $bodySelector = $__default["default"](SELECTOR_BODY);
2007
if (this._options.autoCollapseSize && $__default["default"](window).width() <= this._options.autoCollapseSize) {
2008
$bodySelector.removeClass(CLASS_NAME_OPEN$3).addClass(CLASS_NAME_CLOSED);
2011
$bodySelector.addClass(CLASS_NAME_COLLAPSED);
2013
if (this._options.enableRemember) {
2014
localStorage.setItem("remember" + EVENT_KEY$2, CLASS_NAME_COLLAPSED);
2017
$__default["default"](this._element).trigger($__default["default"].Event(EVENT_COLLAPSED$1));
2018
setTimeout(function () {
2019
$__default["default"](_this._element).trigger($__default["default"].Event(EVENT_COLLAPSED_DONE));
2020
}, this._options.animationSpeed);
2023
_proto.toggle = function toggle() {
2024
if ($__default["default"](SELECTOR_BODY).hasClass(CLASS_NAME_COLLAPSED)) {
2031
_proto.autoCollapse = function autoCollapse(resize) {
2032
if (resize === void 0) {
2036
if (!this._options.autoCollapseSize) {
2040
var $bodySelector = $__default["default"](SELECTOR_BODY);
2042
if ($__default["default"](window).width() <= this._options.autoCollapseSize) {
2043
if (!$bodySelector.hasClass(CLASS_NAME_OPEN$3)) {
2046
} else if (resize === true) {
2047
if ($bodySelector.hasClass(CLASS_NAME_OPEN$3)) {
2048
$bodySelector.removeClass(CLASS_NAME_OPEN$3);
2049
} else if ($bodySelector.hasClass(CLASS_NAME_CLOSED)) {
2055
_proto.remember = function remember() {
2056
if (!this._options.enableRemember) {
2060
var $body = $__default["default"]('body');
2061
var toggleState = localStorage.getItem("remember" + EVENT_KEY$2);
2063
if (toggleState === CLASS_NAME_COLLAPSED) {
2064
if (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();
2070
$body.addClass(CLASS_NAME_COLLAPSED);
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();
2078
$body.removeClass(CLASS_NAME_COLLAPSED);
2083
_proto._init = function _init() {
2087
this.autoCollapse();
2088
$__default["default"](window).resize(function () {
2089
_this2.autoCollapse(true);
2093
_proto._addOverlay = function _addOverlay() {
2096
var overlay = $__default["default"]('<div />', {
2097
id: 'sidebar-overlay'
2099
overlay.on('click', function () {
2102
$__default["default"](SELECTOR_WRAPPER).append(overlay);
2106
PushMenu._jQueryInterface = function _jQueryInterface(operation) {
2107
return this.each(function () {
2108
var data = $__default["default"](this).data(DATA_KEY$5);
2110
var _options = $__default["default"].extend({}, Default$5, $__default["default"](this).data());
2113
data = new PushMenu(this, _options);
2114
$__default["default"](this).data(DATA_KEY$5, data);
2117
if (typeof operation === 'string' && /collapse|expand|toggle/.test(operation)) {
2131
$__default["default"](document).on('click', SELECTOR_TOGGLE_BUTTON$1, function (event) {
2132
event.preventDefault();
2133
var button = event.currentTarget;
2135
if ($__default["default"](button).data('widget') !== 'pushmenu') {
2136
button = $__default["default"](button).closest(SELECTOR_TOGGLE_BUTTON$1);
2139
PushMenu._jQueryInterface.call($__default["default"](button), 'toggle');
2141
$__default["default"](window).on('load', function () {
2142
PushMenu._jQueryInterface.call($__default["default"](SELECTOR_TOGGLE_BUTTON$1));
2149
$__default["default"].fn[NAME$5] = PushMenu._jQueryInterface;
2150
$__default["default"].fn[NAME$5].Constructor = PushMenu;
2152
$__default["default"].fn[NAME$5].noConflict = function () {
2153
$__default["default"].fn[NAME$5] = JQUERY_NO_CONFLICT$5;
2154
return PushMenu._jQueryInterface;
2168
var NAME$4 = 'SidebarSearch';
2169
var DATA_KEY$4 = 'lte.sidebar-search';
2170
var JQUERY_NO_CONFLICT$4 = $__default["default"].fn[NAME$4];
2171
var CLASS_NAME_OPEN$2 = 'sidebar-search-open';
2172
var CLASS_NAME_ICON_SEARCH = 'fa-search';
2173
var CLASS_NAME_ICON_CLOSE = 'fa-times';
2174
var CLASS_NAME_HEADER = 'nav-header';
2175
var CLASS_NAME_SEARCH_RESULTS = 'sidebar-search-results';
2176
var CLASS_NAME_LIST_GROUP = 'list-group';
2177
var SELECTOR_DATA_WIDGET$1 = '[data-widget="sidebar-search"]';
2178
var SELECTOR_SIDEBAR = '.main-sidebar .nav-sidebar';
2179
var SELECTOR_NAV_LINK = '.nav-link';
2180
var SELECTOR_NAV_TREEVIEW = '.nav-treeview';
2181
var SELECTOR_SEARCH_INPUT$1 = SELECTOR_DATA_WIDGET$1 + " .form-control";
2182
var SELECTOR_SEARCH_BUTTON = SELECTOR_DATA_WIDGET$1 + " .btn";
2183
var SELECTOR_SEARCH_ICON = SELECTOR_SEARCH_BUTTON + " i";
2184
var SELECTOR_SEARCH_LIST_GROUP = "." + CLASS_NAME_LIST_GROUP;
2185
var SELECTOR_SEARCH_RESULTS = "." + CLASS_NAME_SEARCH_RESULTS;
2186
var SELECTOR_SEARCH_RESULTS_GROUP = SELECTOR_SEARCH_RESULTS + " ." + CLASS_NAME_LIST_GROUP;
2191
highlightName: true,
2192
highlightPath: false,
2193
highlightClass: 'text-light',
2194
notFoundText: 'No element found!'
2196
var SearchItems = [];
2202
var SidebarSearch = function () {
2203
function SidebarSearch(_element, _options) {
2204
this.element = _element;
2205
this.options = $__default["default"].extend({}, Default$4, _options);
2210
var _proto = SidebarSearch.prototype;
2212
_proto.init = function init() {
2215
if ($__default["default"](SELECTOR_DATA_WIDGET$1).length === 0) {
2219
if ($__default["default"](SELECTOR_DATA_WIDGET$1).next(SELECTOR_SEARCH_RESULTS).length === 0) {
2220
$__default["default"](SELECTOR_DATA_WIDGET$1).after($__default["default"]('<div />', {
2221
class: CLASS_NAME_SEARCH_RESULTS
2225
if ($__default["default"](SELECTOR_SEARCH_RESULTS).children(SELECTOR_SEARCH_LIST_GROUP).length === 0) {
2226
$__default["default"](SELECTOR_SEARCH_RESULTS).append($__default["default"]('<div />', {
2227
class: CLASS_NAME_LIST_GROUP
2231
this._addNotFound();
2233
$__default["default"](SELECTOR_SIDEBAR).children().each(function (i, child) {
2234
_this._parseItem(child);
2238
_proto.search = function search() {
2241
var searchValue = $__default["default"](SELECTOR_SEARCH_INPUT$1).val().toLowerCase();
2243
if (searchValue.length < this.options.minLength) {
2244
$__default["default"](SELECTOR_SEARCH_RESULTS_GROUP).empty();
2246
this._addNotFound();
2252
var searchResults = SearchItems.filter(function (item) {
2253
return item.name.toLowerCase().includes(searchValue);
2255
var endResults = $__default["default"](searchResults.slice(0, this.options.maxResults));
2256
$__default["default"](SELECTOR_SEARCH_RESULTS_GROUP).empty();
2258
if (endResults.length === 0) {
2259
this._addNotFound();
2261
endResults.each(function (i, result) {
2262
$__default["default"](SELECTOR_SEARCH_RESULTS_GROUP).append(_this2._renderItem(escape(result.name), encodeURI(result.link), result.path));
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);
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);
2279
_proto.toggle = function toggle() {
2280
if ($__default["default"](SELECTOR_DATA_WIDGET$1).parent().hasClass(CLASS_NAME_OPEN$2)) {
2288
_proto._parseItem = function _parseItem(item, path) {
2291
if (path === void 0) {
2295
if ($__default["default"](item).hasClass(CLASS_NAME_HEADER)) {
2299
var itemObject = {};
2300
var navLink = $__default["default"](item).clone().find("> " + SELECTOR_NAV_LINK);
2301
var navTreeview = $__default["default"](item).clone().find("> " + SELECTOR_NAV_TREEVIEW);
2302
var link = navLink.attr('href');
2303
var name = navLink.find('p').children().remove().end().text();
2304
itemObject.name = this._trimText(name);
2305
itemObject.link = link;
2306
itemObject.path = path;
2308
if (navTreeview.length === 0) {
2309
SearchItems.push(itemObject);
2311
var newPath = itemObject.path.concat([itemObject.name]);
2312
navTreeview.children().each(function (i, child) {
2313
_this3._parseItem(child, newPath);
2318
_proto._trimText = function _trimText(text) {
2319
return $.trim(text.replace(/(\r\n|\n|\r)/gm, ' '));
2322
_proto._renderItem = function _renderItem(name, link, path) {
2325
path = path.join(" " + this.options.arrowSign + " ");
2326
name = unescape(name);
2327
link = decodeURI(link);
2329
if (this.options.highlightName || this.options.highlightPath) {
2330
var searchValue = $__default["default"](SELECTOR_SEARCH_INPUT$1).val().toLowerCase();
2331
var regExp = new RegExp(searchValue, 'gi');
2333
if (this.options.highlightName) {
2334
name = name.replace(regExp, function (str) {
2335
return "<strong class=\"" + _this4.options.highlightClass + "\">" + str + "</strong>";
2339
if (this.options.highlightPath) {
2340
path = path.replace(regExp, function (str) {
2341
return "<strong class=\"" + _this4.options.highlightClass + "\">" + str + "</strong>";
2346
var groupItemElement = $__default["default"]('<a/>', {
2347
href: decodeURIComponent(link),
2348
class: 'list-group-item'
2350
var searchTitleElement = $__default["default"]('<div/>', {
2351
class: 'search-title'
2353
var searchPathElement = $__default["default"]('<div/>', {
2354
class: 'search-path'
2356
groupItemElement.append(searchTitleElement).append(searchPathElement);
2357
return groupItemElement;
2360
_proto._addNotFound = function _addNotFound() {
2361
$__default["default"](SELECTOR_SEARCH_RESULTS_GROUP).append(this._renderItem(this.options.notFoundText, '#', []));
2365
SidebarSearch._jQueryInterface = function _jQueryInterface(config) {
2366
var data = $__default["default"](this).data(DATA_KEY$4);
2369
data = $__default["default"](this).data();
2372
var _options = $__default["default"].extend({}, Default$4, typeof config === 'object' ? config : data);
2374
var plugin = new SidebarSearch($__default["default"](this), _options);
2375
$__default["default"](this).data(DATA_KEY$4, typeof config === 'object' ? config : data);
2377
if (typeof config === 'string' && /init|toggle|close|open|search/.test(config)) {
2384
return SidebarSearch;
2392
$__default["default"](document).on('click', SELECTOR_SEARCH_BUTTON, function (event) {
2393
event.preventDefault();
2395
SidebarSearch._jQueryInterface.call($__default["default"](SELECTOR_DATA_WIDGET$1), 'toggle');
2397
$__default["default"](document).on('keyup', SELECTOR_SEARCH_INPUT$1, function (event) {
2398
if (event.keyCode == 38) {
2399
event.preventDefault();
2400
$__default["default"](SELECTOR_SEARCH_RESULTS_GROUP).children().last().focus();
2404
if (event.keyCode == 40) {
2405
event.preventDefault();
2406
$__default["default"](SELECTOR_SEARCH_RESULTS_GROUP).children().first().focus();
2410
setTimeout(function () {
2411
SidebarSearch._jQueryInterface.call($__default["default"](SELECTOR_DATA_WIDGET$1), 'search');
2414
$__default["default"](document).on('keydown', SELECTOR_SEARCH_RESULTS_GROUP, function (event) {
2415
var $focused = $__default["default"](':focus');
2417
if (event.keyCode == 38) {
2418
event.preventDefault();
2420
if ($focused.is(':first-child')) {
2421
$focused.siblings().last().focus();
2423
$focused.prev().focus();
2427
if (event.keyCode == 40) {
2428
event.preventDefault();
2430
if ($focused.is(':last-child')) {
2431
$focused.siblings().first().focus();
2433
$focused.next().focus();
2437
$__default["default"](window).on('load', function () {
2438
SidebarSearch._jQueryInterface.call($__default["default"](SELECTOR_DATA_WIDGET$1), 'init');
2445
$__default["default"].fn[NAME$4] = SidebarSearch._jQueryInterface;
2446
$__default["default"].fn[NAME$4].Constructor = SidebarSearch;
2448
$__default["default"].fn[NAME$4].noConflict = function () {
2449
$__default["default"].fn[NAME$4] = JQUERY_NO_CONFLICT$4;
2450
return SidebarSearch._jQueryInterface;
2464
var NAME$3 = 'NavbarSearch';
2465
var DATA_KEY$3 = 'lte.navbar-search';
2466
var JQUERY_NO_CONFLICT$3 = $__default["default"].fn[NAME$3];
2467
var SELECTOR_TOGGLE_BUTTON = '[data-widget="navbar-search"]';
2468
var SELECTOR_SEARCH_BLOCK = '.navbar-search-block';
2469
var SELECTOR_SEARCH_INPUT = '.form-control';
2470
var CLASS_NAME_OPEN$1 = 'navbar-search-open';
2473
target: SELECTOR_SEARCH_BLOCK
2480
var NavbarSearch = function () {
2481
function NavbarSearch(_element, _options) {
2482
this._element = _element;
2483
this._config = $__default["default"].extend({}, Default$3, _options);
2487
var _proto = NavbarSearch.prototype;
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();
2494
_proto.close = function close() {
2495
$__default["default"](this._config.target).fadeOut().removeClass(CLASS_NAME_OPEN$1);
2497
if (this._config.resetOnClose) {
2498
$__default["default"](this._config.target + " " + SELECTOR_SEARCH_INPUT).val('');
2502
_proto.toggle = function toggle() {
2503
if ($__default["default"](this._config.target).hasClass(CLASS_NAME_OPEN$1)) {
2511
NavbarSearch._jQueryInterface = function _jQueryInterface(options) {
2512
return this.each(function () {
2513
var data = $__default["default"](this).data(DATA_KEY$3);
2515
var _options = $__default["default"].extend({}, Default$3, $__default["default"](this).data());
2518
data = new NavbarSearch(this, _options);
2519
$__default["default"](this).data(DATA_KEY$3, data);
2522
if (!/toggle|close|open/.test(options)) {
2523
throw new Error("Undefined method " + options);
2530
return NavbarSearch;
2538
$__default["default"](document).on('click', SELECTOR_TOGGLE_BUTTON, function (event) {
2539
event.preventDefault();
2540
var button = $__default["default"](event.currentTarget);
2542
if (button.data('widget') !== 'navbar-search') {
2543
button = button.closest(SELECTOR_TOGGLE_BUTTON);
2546
NavbarSearch._jQueryInterface.call(button, 'toggle');
2553
$__default["default"].fn[NAME$3] = NavbarSearch._jQueryInterface;
2554
$__default["default"].fn[NAME$3].Constructor = NavbarSearch;
2556
$__default["default"].fn[NAME$3].noConflict = function () {
2557
$__default["default"].fn[NAME$3] = JQUERY_NO_CONFLICT$3;
2558
return NavbarSearch._jQueryInterface;
2572
var NAME$2 = 'Toasts';
2573
var DATA_KEY$2 = 'lte.toasts';
2574
var EVENT_KEY$1 = "." + DATA_KEY$2;
2575
var JQUERY_NO_CONFLICT$2 = $__default["default"].fn[NAME$2];
2576
var EVENT_INIT = "init" + EVENT_KEY$1;
2577
var EVENT_CREATED = "created" + EVENT_KEY$1;
2578
var EVENT_REMOVED = "removed" + EVENT_KEY$1;
2579
var SELECTOR_CONTAINER_TOP_RIGHT = '#toastsContainerTopRight';
2580
var SELECTOR_CONTAINER_TOP_LEFT = '#toastsContainerTopLeft';
2581
var SELECTOR_CONTAINER_BOTTOM_RIGHT = '#toastsContainerBottomRight';
2582
var SELECTOR_CONTAINER_BOTTOM_LEFT = '#toastsContainerBottomLeft';
2583
var CLASS_NAME_TOP_RIGHT = 'toasts-top-right';
2584
var CLASS_NAME_TOP_LEFT = 'toasts-top-left';
2585
var CLASS_NAME_BOTTOM_RIGHT = 'toasts-bottom-right';
2586
var CLASS_NAME_BOTTOM_LEFT = 'toasts-bottom-left';
2587
var POSITION_TOP_RIGHT = 'topRight';
2588
var POSITION_TOP_LEFT = 'topLeft';
2589
var POSITION_BOTTOM_RIGHT = 'bottomRight';
2590
var POSITION_BOTTOM_LEFT = 'bottomLeft';
2592
position: POSITION_TOP_RIGHT,
2601
imageHeight: '25px',
2613
var Toasts = function () {
2614
function Toasts(element, config) {
2615
this._config = config;
2617
this._prepareContainer();
2619
$__default["default"]('body').trigger($__default["default"].Event(EVENT_INIT));
2623
var _proto = Toasts.prototype;
2625
_proto.create = function create() {
2626
var toast = $__default["default"]('<div class="toast" role="alert" aria-live="assertive" aria-atomic="true"/>');
2627
toast.data('autohide', this._config.autohide);
2628
toast.data('animation', this._config.fade);
2630
if (this._config.class) {
2631
toast.addClass(this._config.class);
2634
if (this._config.delay && this._config.delay != 500) {
2635
toast.data('delay', this._config.delay);
2638
var toastHeader = $__default["default"]('<div class="toast-header">');
2640
if (this._config.image != null) {
2641
var toastImage = $__default["default"]('<img />').addClass('rounded mr-2').attr('src', this._config.image).attr('alt', this._config.imageAlt);
2643
if (this._config.imageHeight != null) {
2644
toastImage.height(this._config.imageHeight).width('auto');
2647
toastHeader.append(toastImage);
2650
if (this._config.icon != null) {
2651
toastHeader.append($__default["default"]('<i />').addClass('mr-2').addClass(this._config.icon));
2654
if (this._config.title != null) {
2655
toastHeader.append($__default["default"]('<strong />').addClass('mr-auto').html(this._config.title));
2658
if (this._config.subtitle != null) {
2659
toastHeader.append($__default["default"]('<small />').html(this._config.subtitle));
2662
if (this._config.close == true) {
2663
var 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>');
2665
if (this._config.title == null) {
2666
toastClose.toggleClass('ml-2 ml-auto');
2669
toastHeader.append(toastClose);
2672
toast.append(toastHeader);
2674
if (this._config.body != null) {
2675
toast.append($__default["default"]('<div class="toast-body" />').html(this._config.body));
2678
$__default["default"](this._getContainerId()).prepend(toast);
2679
var $body = $__default["default"]('body');
2680
$body.trigger($__default["default"].Event(EVENT_CREATED));
2681
toast.toast('show');
2683
if (this._config.autoremove) {
2684
toast.on('hidden.bs.toast', function () {
2685
$__default["default"](this).delay(200).remove();
2686
$body.trigger($__default["default"].Event(EVENT_REMOVED));
2692
_proto._getContainerId = function _getContainerId() {
2693
if (this._config.position == POSITION_TOP_RIGHT) {
2694
return SELECTOR_CONTAINER_TOP_RIGHT;
2697
if (this._config.position == POSITION_TOP_LEFT) {
2698
return SELECTOR_CONTAINER_TOP_LEFT;
2701
if (this._config.position == POSITION_BOTTOM_RIGHT) {
2702
return SELECTOR_CONTAINER_BOTTOM_RIGHT;
2705
if (this._config.position == POSITION_BOTTOM_LEFT) {
2706
return SELECTOR_CONTAINER_BOTTOM_LEFT;
2710
_proto._prepareContainer = function _prepareContainer() {
2711
if ($__default["default"](this._getContainerId()).length === 0) {
2712
var container = $__default["default"]('<div />').attr('id', this._getContainerId().replace('#', ''));
2714
if (this._config.position == POSITION_TOP_RIGHT) {
2715
container.addClass(CLASS_NAME_TOP_RIGHT);
2716
} else if (this._config.position == POSITION_TOP_LEFT) {
2717
container.addClass(CLASS_NAME_TOP_LEFT);
2718
} else if (this._config.position == POSITION_BOTTOM_RIGHT) {
2719
container.addClass(CLASS_NAME_BOTTOM_RIGHT);
2720
} else if (this._config.position == POSITION_BOTTOM_LEFT) {
2721
container.addClass(CLASS_NAME_BOTTOM_LEFT);
2724
$__default["default"]('body').append(container);
2727
if (this._config.fixed) {
2728
$__default["default"](this._getContainerId()).addClass('fixed');
2730
$__default["default"](this._getContainerId()).removeClass('fixed');
2735
Toasts._jQueryInterface = function _jQueryInterface(option, config) {
2736
return this.each(function () {
2737
var _options = $__default["default"].extend({}, Default$2, config);
2739
var toast = new Toasts($__default["default"](this), _options);
2741
if (option === 'create') {
2755
$__default["default"].fn[NAME$2] = Toasts._jQueryInterface;
2756
$__default["default"].fn[NAME$2].Constructor = Toasts;
2758
$__default["default"].fn[NAME$2].noConflict = function () {
2759
$__default["default"].fn[NAME$2] = JQUERY_NO_CONFLICT$2;
2760
return Toasts._jQueryInterface;
2774
var NAME$1 = 'TodoList';
2775
var DATA_KEY$1 = 'lte.todolist';
2776
var JQUERY_NO_CONFLICT$1 = $__default["default"].fn[NAME$1];
2777
var SELECTOR_DATA_TOGGLE = '[data-widget="todo-list"]';
2778
var CLASS_NAME_TODO_LIST_DONE = 'done';
2780
onCheck: function onCheck(item) {
2783
onUnCheck: function onUnCheck(item) {
2792
var TodoList = function () {
2793
function TodoList(element, config) {
2794
this._config = config;
2795
this._element = element;
2801
var _proto = TodoList.prototype;
2803
_proto.toggle = function toggle(item) {
2804
item.parents('li').toggleClass(CLASS_NAME_TODO_LIST_DONE);
2806
if (!$__default["default"](item).prop('checked')) {
2807
this.unCheck($__default["default"](item));
2814
_proto.check = function check(item) {
2815
this._config.onCheck.call(item);
2818
_proto.unCheck = function unCheck(item) {
2819
this._config.onUnCheck.call(item);
2823
_proto._init = function _init() {
2826
var $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));
2834
TodoList._jQueryInterface = function _jQueryInterface(config) {
2835
return this.each(function () {
2836
var data = $__default["default"](this).data(DATA_KEY$1);
2839
data = $__default["default"](this).data();
2842
var _options = $__default["default"].extend({}, Default$1, typeof config === 'object' ? config : data);
2844
var plugin = new TodoList($__default["default"](this), _options);
2845
$__default["default"](this).data(DATA_KEY$1, typeof config === 'object' ? config : data);
2847
if (config === 'init') {
2861
$__default["default"](window).on('load', function () {
2862
TodoList._jQueryInterface.call($__default["default"](SELECTOR_DATA_TOGGLE));
2869
$__default["default"].fn[NAME$1] = TodoList._jQueryInterface;
2870
$__default["default"].fn[NAME$1].Constructor = TodoList;
2872
$__default["default"].fn[NAME$1].noConflict = function () {
2873
$__default["default"].fn[NAME$1] = JQUERY_NO_CONFLICT$1;
2874
return TodoList._jQueryInterface;
2888
var NAME = 'Treeview';
2889
var DATA_KEY = 'lte.treeview';
2890
var EVENT_KEY = "." + DATA_KEY;
2891
var JQUERY_NO_CONFLICT = $__default["default"].fn[NAME];
2892
var EVENT_EXPANDED = "expanded" + EVENT_KEY;
2893
var EVENT_COLLAPSED = "collapsed" + EVENT_KEY;
2894
var EVENT_LOAD_DATA_API = "load" + EVENT_KEY;
2895
var SELECTOR_LI = '.nav-item';
2896
var SELECTOR_LINK = '.nav-link';
2897
var SELECTOR_TREEVIEW_MENU = '.nav-treeview';
2898
var SELECTOR_OPEN = '.menu-open';
2899
var SELECTOR_DATA_WIDGET = '[data-widget="treeview"]';
2900
var CLASS_NAME_OPEN = 'menu-open';
2901
var CLASS_NAME_IS_OPENING = 'menu-is-opening';
2902
var CLASS_NAME_SIDEBAR_COLLAPSED = 'sidebar-collapse';
2904
trigger: SELECTOR_DATA_WIDGET + " " + SELECTOR_LINK,
2905
animationSpeed: 300,
2907
expandSidebar: false,
2908
sidebarButtonSelector: '[data-widget="pushmenu"]'
2915
var Treeview = function () {
2916
function Treeview(element, config) {
2917
this._config = config;
2918
this._element = element;
2922
var _proto = Treeview.prototype;
2924
_proto.init = function init() {
2925
$__default["default"]("" + SELECTOR_LI + SELECTOR_OPEN + " " + SELECTOR_TREEVIEW_MENU + SELECTOR_OPEN).css('display', 'block');
2927
this._setupListeners();
2930
_proto.expand = function expand(treeviewMenu, parentLi) {
2933
var expandedEvent = $__default["default"].Event(EVENT_EXPANDED);
2935
if (this._config.accordion) {
2936
var openMenuLi = parentLi.siblings(SELECTOR_OPEN).first();
2937
var openTreeview = openMenuLi.find(SELECTOR_TREEVIEW_MENU).first();
2938
this.collapse(openTreeview, openMenuLi);
2941
parentLi.addClass(CLASS_NAME_IS_OPENING);
2942
treeviewMenu.stop().slideDown(this._config.animationSpeed, function () {
2943
parentLi.addClass(CLASS_NAME_OPEN);
2944
$__default["default"](_this._element).trigger(expandedEvent);
2947
if (this._config.expandSidebar) {
2948
this._expandSidebar();
2952
_proto.collapse = function collapse(treeviewMenu, parentLi) {
2955
var collapsedEvent = $__default["default"].Event(EVENT_COLLAPSED);
2956
parentLi.removeClass(CLASS_NAME_IS_OPENING + " " + CLASS_NAME_OPEN);
2957
treeviewMenu.stop().slideUp(this._config.animationSpeed, function () {
2958
$__default["default"](_this2._element).trigger(collapsedEvent);
2959
treeviewMenu.find(SELECTOR_OPEN + " > " + SELECTOR_TREEVIEW_MENU).slideUp();
2960
treeviewMenu.find(SELECTOR_OPEN).removeClass(CLASS_NAME_IS_OPENING + " " + CLASS_NAME_OPEN);
2964
_proto.toggle = function toggle(event) {
2965
var $relativeTarget = $__default["default"](event.currentTarget);
2966
var $parent = $relativeTarget.parent();
2967
var treeviewMenu = $parent.find("> " + SELECTOR_TREEVIEW_MENU);
2969
if (!treeviewMenu.is(SELECTOR_TREEVIEW_MENU)) {
2970
if (!$parent.is(SELECTOR_LI)) {
2971
treeviewMenu = $parent.parent().find("> " + SELECTOR_TREEVIEW_MENU);
2974
if (!treeviewMenu.is(SELECTOR_TREEVIEW_MENU)) {
2979
event.preventDefault();
2980
var parentLi = $relativeTarget.parents(SELECTOR_LI).first();
2981
var isOpen = parentLi.hasClass(CLASS_NAME_OPEN);
2984
this.collapse($__default["default"](treeviewMenu), parentLi);
2986
this.expand($__default["default"](treeviewMenu), parentLi);
2991
_proto._setupListeners = function _setupListeners() {
2994
var 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);
3000
_proto._expandSidebar = function _expandSidebar() {
3001
if ($__default["default"]('body').hasClass(CLASS_NAME_SIDEBAR_COLLAPSED)) {
3002
$__default["default"](this._config.sidebarButtonSelector).PushMenu('expand');
3007
Treeview._jQueryInterface = function _jQueryInterface(config) {
3008
return this.each(function () {
3009
var data = $__default["default"](this).data(DATA_KEY);
3011
var _options = $__default["default"].extend({}, Default, $__default["default"](this).data());
3014
data = new Treeview($__default["default"](this), _options);
3015
$__default["default"](this).data(DATA_KEY, data);
3018
if (config === 'init') {
3032
$__default["default"](window).on(EVENT_LOAD_DATA_API, function () {
3033
$__default["default"](SELECTOR_DATA_WIDGET).each(function () {
3034
Treeview._jQueryInterface.call($__default["default"](this), 'init');
3042
$__default["default"].fn[NAME] = Treeview._jQueryInterface;
3043
$__default["default"].fn[NAME].Constructor = Treeview;
3045
$__default["default"].fn[NAME].noConflict = function () {
3046
$__default["default"].fn[NAME] = JQUERY_NO_CONFLICT;
3047
return Treeview._jQueryInterface;
3050
exports.CardRefresh = CardRefresh;
3051
exports.CardWidget = CardWidget;
3052
exports.ControlSidebar = ControlSidebar;
3053
exports.DirectChat = DirectChat;
3054
exports.Dropdown = Dropdown;
3055
exports.ExpandableTable = ExpandableTable;
3056
exports.Fullscreen = Fullscreen;
3057
exports.IFrame = IFrame;
3058
exports.Layout = Layout;
3059
exports.NavbarSearch = NavbarSearch;
3060
exports.PushMenu = PushMenu;
3061
exports.SidebarSearch = SidebarSearch;
3062
exports.Toasts = Toasts;
3063
exports.TodoList = TodoList;
3064
exports.Treeview = Treeview;
3066
Object.defineProperty(exports, '__esModule', { value: true });