LaravelTest

Форк
0
/
adminlte.js 
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) {
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';
11

12
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13

14
  var $__default = /*#__PURE__*/_interopDefaultLegacy($);
15

16
  /**
17
   * --------------------------------------------
18
   * AdminLTE CardRefresh.js
19
   * License MIT
20
   * --------------------------------------------
21
   */
22
  /**
23
   * Constants
24
   * ====================================================
25
   */
26

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"]';
37
  var Default$c = {
38
    source: '',
39
    sourceSelector: '',
40
    params: {},
41
    trigger: SELECTOR_DATA_REFRESH,
42
    content: '.card-body',
43
    loadInContent: true,
44
    loadOnInit: true,
45
    loadErrorTemplate: true,
46
    responseType: '',
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) {
51
      return response;
52
    },
53
    onLoadFail: function onLoadFail(_jqXHR, _textStatus, _errorThrown) {}
54
  };
55

56
  var CardRefresh = /*#__PURE__*/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);
62

63
      if (element.hasClass(CLASS_NAME_CARD$1)) {
64
        this._parent = element;
65
      }
66

67
      if (this._settings.source === '') {
68
        throw new Error('Source url was not defined. Please specify a url in your CardRefresh source option.');
69
      }
70
    }
71

72
    var _proto = CardRefresh.prototype;
73

74
    _proto.load = function load() {
75
      var _this = this;
76

77
      this._addOverlay();
78

79
      this._settings.onLoadStart.call($__default["default"](this));
80

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();
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

96
        if (_this._settings.loadErrorTemplate) {
97
          var 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() {
108
      this._parent.append(this._overlay);
109

110
      $__default["default"](this._element).trigger($__default["default"].Event(EVENT_OVERLAY_ADDED));
111
    };
112

113
    _proto._removeOverlay = function _removeOverlay() {
114
      this._parent.find(this._overlay).remove();
115

116
      $__default["default"](this._element).trigger($__default["default"].Event(EVENT_OVERLAY_REMOVED));
117
    } // Private
118
    ;
119

120
    _proto._init = function _init() {
121
      var _this2 = this;
122

123
      $__default["default"](this).find(this._settings.trigger).on('click', function () {
124
        _this2.load();
125
      });
126

127
      if (this._settings.loadOnInit) {
128
        this.load();
129
      }
130
    } // Static
131
    ;
132

133
    CardRefresh._jQueryInterface = function _jQueryInterface(config) {
134
      var data = $__default["default"](this).data(DATA_KEY$e);
135

136
      var _options = $__default["default"].extend({}, Default$c, $__default["default"](this).data());
137

138
      if (!data) {
139
        data = new CardRefresh($__default["default"](this), _options);
140
        $__default["default"](this).data(DATA_KEY$e, typeof config === 'string' ? data : config);
141
      }
142

143
      if (typeof config === 'string' && /load/.test(config)) {
144
        data[config]();
145
      } else {
146
        data._init($__default["default"](this));
147
      }
148
    };
149

150
    return CardRefresh;
151
  }();
152
  /**
153
   * Data API
154
   * ====================================================
155
   */
156

157

158
  $__default["default"](document).on('click', SELECTOR_DATA_REFRESH, function (event) {
159
    if (event) {
160
      event.preventDefault();
161
    }
162

163
    CardRefresh._jQueryInterface.call($__default["default"](this), 'load');
164
  });
165
  $__default["default"](function () {
166
    $__default["default"](SELECTOR_DATA_REFRESH).each(function () {
167
      CardRefresh._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;
180
    return CardRefresh._jQueryInterface;
181
  };
182

183
  /**
184
   * --------------------------------------------
185
   * AdminLTE CardWidget.js
186
   * License MIT
187
   * --------------------------------------------
188
   */
189
  /**
190
   * Constants
191
   * ====================================================
192
   */
193

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';
216
  var Default$b = {
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'
225
  };
226

227
  var CardWidget = /*#__PURE__*/function () {
228
    function CardWidget(element, settings) {
229
      this._element = element;
230
      this._parent = element.parents(SELECTOR_CARD).first();
231

232
      if (element.hasClass(CLASS_NAME_CARD)) {
233
        this._parent = element;
234
      }
235

236
      this._settings = $__default["default"].extend({}, Default$b, settings);
237
    }
238

239
    var _proto = CardWidget.prototype;
240

241
    _proto.collapse = function collapse() {
242
      var _this = this;
243

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);
246
      });
247

248
      this._parent.find("> " + SELECTOR_CARD_HEADER + " " + this._settings.collapseTrigger + " ." + this._settings.collapseIcon).addClass(this._settings.expandIcon).removeClass(this._settings.collapseIcon);
249

250
      this._element.trigger($__default["default"].Event(EVENT_COLLAPSED$4), this._parent);
251
    };
252

253
    _proto.expand = function expand() {
254
      var _this2 = this;
255

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);
258
      });
259

260
      this._parent.find("> " + SELECTOR_CARD_HEADER + " " + this._settings.collapseTrigger + " ." + this._settings.expandIcon).addClass(this._settings.collapseIcon).removeClass(this._settings.expandIcon);
261

262
      this._element.trigger($__default["default"].Event(EVENT_EXPANDED$3), this._parent);
263
    };
264

265
    _proto.remove = function remove() {
266
      this._parent.slideUp();
267

268
      this._element.trigger($__default["default"].Event(EVENT_REMOVED$1), this._parent);
269
    };
270

271
    _proto.toggle = function toggle() {
272
      if (this._parent.hasClass(CLASS_NAME_COLLAPSED$1)) {
273
        this.expand();
274
        return;
275
      }
276

277
      this.collapse();
278
    };
279

280
    _proto.maximize = function maximize() {
281
      this._parent.find(this._settings.maximizeTrigger + " ." + this._settings.maximizeIcon).addClass(this._settings.minimizeIcon).removeClass(this._settings.maximizeIcon);
282

283
      this._parent.css({
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);
291

292
        if ($element.hasClass(CLASS_NAME_COLLAPSED$1)) {
293
          $element.addClass(CLASS_NAME_WAS_COLLAPSED);
294
        }
295

296
        $element.dequeue();
297
      });
298

299
      this._element.trigger($__default["default"].Event(EVENT_MAXIMIZED), this._parent);
300
    };
301

302
    _proto.minimize = function minimize() {
303
      this._parent.find(this._settings.maximizeTrigger + " ." + this._settings.minimizeIcon).addClass(this._settings.maximizeIcon).removeClass(this._settings.minimizeIcon);
304

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);
309
        $element.css({
310
          height: 'inherit',
311
          width: 'inherit'
312
        });
313

314
        if ($element.hasClass(CLASS_NAME_WAS_COLLAPSED)) {
315
          $element.removeClass(CLASS_NAME_WAS_COLLAPSED);
316
        }
317

318
        $element.dequeue();
319
      });
320

321
      this._element.trigger($__default["default"].Event(EVENT_MINIMIZED), this._parent);
322
    };
323

324
    _proto.toggleMaximize = function toggleMaximize() {
325
      if (this._parent.hasClass(CLASS_NAME_MAXIMIZED)) {
326
        this.minimize();
327
        return;
328
      }
329

330
      this.maximize();
331
    } // Private
332
    ;
333

334
    _proto._init = function _init(card) {
335
      var _this3 = this;
336

337
      this._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
    } // Static
348
    ;
349

350
    CardWidget._jQueryInterface = function _jQueryInterface(config) {
351
      var data = $__default["default"](this).data(DATA_KEY$d);
352

353
      var _options = $__default["default"].extend({}, Default$b, $__default["default"](this).data());
354

355
      if (!data) {
356
        data = new CardWidget($__default["default"](this), _options);
357
        $__default["default"](this).data(DATA_KEY$d, typeof config === 'string' ? data : config);
358
      }
359

360
      if (typeof config === 'string' && /collapse|expand|remove|toggle|maximize|minimize|toggleMaximize/.test(config)) {
361
        data[config]();
362
      } else if (typeof config === 'object') {
363
        data._init($__default["default"](this));
364
      }
365
    };
366

367
    return CardWidget;
368
  }();
369
  /**
370
   * Data API
371
   * ====================================================
372
   */
373

374

375
  $__default["default"](document).on('click', SELECTOR_DATA_COLLAPSE, function (event) {
376
    if (event) {
377
      event.preventDefault();
378
    }
379

380
    CardWidget._jQueryInterface.call($__default["default"](this), 'toggle');
381
  });
382
  $__default["default"](document).on('click', SELECTOR_DATA_REMOVE, function (event) {
383
    if (event) {
384
      event.preventDefault();
385
    }
386

387
    CardWidget._jQueryInterface.call($__default["default"](this), 'remove');
388
  });
389
  $__default["default"](document).on('click', SELECTOR_DATA_MAXIMIZE, function (event) {
390
    if (event) {
391
      event.preventDefault();
392
    }
393

394
    CardWidget._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;
406
    return CardWidget._jQueryInterface;
407
  };
408

409
  /**
410
   * --------------------------------------------
411
   * AdminLTE ControlSidebar.js
412
   * License MIT
413
   * --------------------------------------------
414
   */
415
  /**
416
   * Constants
417
   * ====================================================
418
   */
419

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';
446
  var Default$a = {
447
    controlsidebarSlide: true,
448
    scrollbarTheme: 'os-theme-light',
449
    scrollbarAutoHide: 'l',
450
    target: SELECTOR_CONTROL_SIDEBAR,
451
    animationSpeed: 300
452
  };
453
  /**
454
   * Class Definition
455
   * ====================================================
456
   */
457

458
  var ControlSidebar = /*#__PURE__*/function () {
459
    function ControlSidebar(element, config) {
460
      this._element = element;
461
      this._config = config;
462
    } // Public
463

464

465
    var _proto = ControlSidebar.prototype;
466

467
    _proto.collapse = function collapse() {
468
      var _this = this;
469

470
      var $body = $__default["default"]('body');
471
      var $html = $__default["default"]('html'); // Show the control sidebar
472

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();
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));
485
      setTimeout(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) {
491
      if (toggle === void 0) {
492
        toggle = false;
493
      }
494

495
      var $body = $__default["default"]('body');
496
      var $html = $__default["default"]('html');
497

498
      if (toggle) {
499
        $__default["default"](SELECTOR_CONTROL_SIDEBAR).hide();
500
      } // Collapse the control sidebar
501

502

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();
509
          });
510
          $__default["default"](this).dequeue();
511
        });
512
      } else {
513
        $body.addClass(CLASS_NAME_CONTROL_SIDEBAR_OPEN$1);
514
      }
515

516
      this._fixHeight();
517

518
      this._fixScrollHeight();
519

520
      $__default["default"](this._element).trigger($__default["default"].Event(EVENT_EXPANDED$2));
521
    };
522

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));
529

530
      if (notVisible || shouldToggle) {
531
        // Open the control sidebar
532
        this.show(notVisible);
533
      } else if (shouldClose) {
534
        // Close the control sidebar
535
        this.collapse();
536
      }
537
    } // Private
538
    ;
539

540
    _proto._init = function _init() {
541
      var _this2 = this;
542

543
      var $body = $__default["default"]('body');
544
      var shouldNotHideAll = $body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_OPEN$1) || $body.hasClass(CLASS_NAME_CONTROL_SIDEBAR_SLIDE);
545

546
      if (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

553
      this._fixHeight();
554

555
      this._fixScrollHeight();
556

557
      $__default["default"](window).resize(function () {
558
        _this2._fixHeight();
559

560
        _this2._fixScrollHeight();
561
      });
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);
565

566
        if (shouldFixHeight) {
567
          _this2._fixScrollHeight();
568
        }
569
      });
570
    };
571

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);
575
    };
576

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);
580
    };
581

582
    _proto._fixScrollHeight = function _fixScrollHeight() {
583
      var $body = $__default["default"]('body');
584
      var $controlSidebar = $__default["default"](this._config.target);
585

586
      if (!$body.hasClass(CLASS_NAME_LAYOUT_FIXED$1)) {
587
        return;
588
      }
589

590
      var heights = {
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()
595
      };
596
      var positions = {
597
        bottom: Math.abs(heights.window + $__default["default"](window).scrollTop() - heights.scroll),
598
        top: $__default["default"](window).scrollTop()
599
      };
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);
603

604
      if (positions.top === 0 && positions.bottom === 0) {
605
        $controlSidebar.css({
606
          bottom: heights.footer,
607
          top: heights.header
608
        });
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));
615
        } else {
616
          $controlSidebar.css('bottom', heights.footer);
617
        }
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));
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

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', '');
638
      }
639
    };
640

641
    _proto._fixHeight = function _fixHeight() {
642
      var $body = $__default["default"]('body');
643
      var $controlSidebar = $__default["default"](this._config.target + " " + SELECTOR_CONTROL_SIDEBAR_CONTENT$1);
644

645
      if (!$body.hasClass(CLASS_NAME_LAYOUT_FIXED$1)) {
646
        $controlSidebar.attr('style', '');
647
        return;
648
      }
649

650
      var heights = {
651
        window: $__default["default"](window).height(),
652
        header: $__default["default"](SELECTOR_HEADER$1).outerHeight(),
653
        footer: $__default["default"](SELECTOR_FOOTER$1).outerHeight()
654
      };
655
      var sidebarHeight = heights.window - heights.header;
656

657
      if (this._isFooterFixed() && $__default["default"](SELECTOR_FOOTER$1).css('position') === 'fixed') {
658
        sidebarHeight = heights.window - heights.header - heights.footer;
659
      }
660

661
      $controlSidebar.css('height', sidebarHeight);
662

663
      if (typeof $__default["default"].fn.overlayScrollbars !== 'undefined') {
664
        $controlSidebar.overlayScrollbars({
665
          className: this._config.scrollbarTheme,
666
          sizeAutoCapable: true,
667
          scrollbars: {
668
            autoHide: this._config.scrollbarAutoHide,
669
            clickScrolling: true
670
          }
671
        });
672
      }
673
    } // Static
674
    ;
675

676
    ControlSidebar._jQueryInterface = function _jQueryInterface(operation) {
677
      return this.each(function () {
678
        var data = $__default["default"](this).data(DATA_KEY$c);
679

680
        var _options = $__default["default"].extend({}, Default$a, $__default["default"](this).data());
681

682
        if (!data) {
683
          data = new ControlSidebar(this, _options);
684
          $__default["default"](this).data(DATA_KEY$c, data);
685
        }
686

687
        if (data[operation] === 'undefined') {
688
          throw new Error(operation + " is not a function");
689
        }
690

691
        data[operation]();
692
      });
693
    };
694

695
    return ControlSidebar;
696
  }();
697
  /**
698
   *
699
   * Data Api implementation
700
   * ====================================================
701
   */
702

703

704
  $__default["default"](document).on('click', SELECTOR_DATA_TOGGLE$4, function (event) {
705
    event.preventDefault();
706

707
    ControlSidebar._jQueryInterface.call($__default["default"](this), 'toggle');
708
  });
709
  $__default["default"](document).ready(function () {
710
    ControlSidebar._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;
722
    return ControlSidebar._jQueryInterface;
723
  };
724

725
  /**
726
   * --------------------------------------------
727
   * AdminLTE DirectChat.js
728
   * License MIT
729
   * --------------------------------------------
730
   */
731
  /**
732
   * Constants
733
   * ====================================================
734
   */
735

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';
744
  /**
745
   * Class Definition
746
   * ====================================================
747
   */
748

749
  var DirectChat = /*#__PURE__*/function () {
750
    function DirectChat(element) {
751
      this._element = element;
752
    }
753

754
    var _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
    } // Static
760
    ;
761

762
    DirectChat._jQueryInterface = function _jQueryInterface(config) {
763
      return this.each(function () {
764
        var data = $__default["default"](this).data(DATA_KEY$b);
765

766
        if (!data) {
767
          data = new DirectChat($__default["default"](this));
768
          $__default["default"](this).data(DATA_KEY$b, data);
769
        }
770

771
        data[config]();
772
      });
773
    };
774

775
    return DirectChat;
776
  }();
777
  /**
778
   *
779
   * Data Api implementation
780
   * ====================================================
781
   */
782

783

784
  $__default["default"](document).on('click', SELECTOR_DATA_TOGGLE$3, function (event) {
785
    if (event) {
786
      event.preventDefault();
787
    }
788

789
    DirectChat._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;
801
    return DirectChat._jQueryInterface;
802
  };
803

804
  /**
805
   * --------------------------------------------
806
   * AdminLTE Dropdown.js
807
   * License MIT
808
   * --------------------------------------------
809
   */
810
  /**
811
   * Constants
812
   * ====================================================
813
   */
814

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'; // TODO: this is unused; should be removed along with the extend?
824

825
  var Default$9 = {};
826
  /**
827
   * Class Definition
828
   * ====================================================
829
   */
830

831
  var Dropdown = /*#__PURE__*/function () {
832
    function Dropdown(element, config) {
833
      this._config = config;
834
      this._element = element;
835
    } // Public
836

837

838
    var _proto = Dropdown.prototype;
839

840
    _proto.toggleSubmenu = function toggleSubmenu() {
841
      this._element.siblings().show().toggleClass('show');
842

843
      if (!this._element.next().hasClass('show')) {
844
        this._element.parents(SELECTOR_DROPDOWN_MENU).first().find('.show').removeClass('show').hide();
845
      }
846

847
      this._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() {
853
      var $element = $__default["default"](SELECTOR_DROPDOWN_MENU_ACTIVE);
854

855
      if ($element.length === 0) {
856
        return;
857
      }
858

859
      if ($element.hasClass(CLASS_NAME_DROPDOWN_RIGHT)) {
860
        $element.css({
861
          left: 'inherit',
862
          right: 0
863
        });
864
      } else {
865
        $element.css({
866
          left: 0,
867
          right: 'inherit'
868
        });
869
      }
870

871
      var offset = $element.offset();
872
      var width = $element.width();
873
      var visiblePart = $__default["default"](window).width() - offset.left;
874

875
      if (offset.left < 0) {
876
        $element.css({
877
          left: 'inherit',
878
          right: offset.left - 5
879
        });
880
      } else if (visiblePart < width) {
881
        $element.css({
882
          left: 'inherit',
883
          right: 0
884
        });
885
      }
886
    } // Static
887
    ;
888

889
    Dropdown._jQueryInterface = function _jQueryInterface(config) {
890
      return this.each(function () {
891
        var data = $__default["default"](this).data(DATA_KEY$a);
892

893
        var _config = $__default["default"].extend({}, Default$9, $__default["default"](this).data());
894

895
        if (!data) {
896
          data = new Dropdown($__default["default"](this), _config);
897
          $__default["default"](this).data(DATA_KEY$a, data);
898
        }
899

900
        if (config === 'toggleSubmenu' || config === 'fixPosition') {
901
          data[config]();
902
        }
903
      });
904
    };
905

906
    return Dropdown;
907
  }();
908
  /**
909
   * Data API
910
   * ====================================================
911
   */
912

913

914
  $__default["default"](SELECTOR_DROPDOWN_MENU + " " + SELECTOR_DROPDOWN_TOGGLE).on('click', function (event) {
915
    event.preventDefault();
916
    event.stopPropagation();
917

918
    Dropdown._jQueryInterface.call($__default["default"](this), 'toggleSubmenu');
919
  });
920
  $__default["default"](SELECTOR_NAVBAR + " " + SELECTOR_DROPDOWN_TOGGLE).on('click', function (event) {
921
    event.preventDefault();
922

923
    if ($__default["default"](event.target).parent().hasClass(CLASS_NAME_DROPDOWN_SUBMENU)) {
924
      return;
925
    }
926

927
    setTimeout(function () {
928
      Dropdown._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;
941
    return Dropdown._jQueryInterface;
942
  };
943

944
  /**
945
   * --------------------------------------------
946
   * AdminLTE ExpandableTable.js
947
   * License MIT
948
   * --------------------------------------------
949
   */
950
  /**
951
    * Constants
952
    * ====================================================
953
    */
954

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';
965
  /**
966
    * Class Definition
967
    * ====================================================
968
    */
969

970
  var ExpandableTable = /*#__PURE__*/function () {
971
    function ExpandableTable(element, options) {
972
      this._options = options;
973
      this._element = element;
974
    } // Public
975

976

977
    var _proto = ExpandableTable.prototype;
978

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();
983

984
        if ($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() {
994
      var $element = this._element;
995

996
      if ($element[0].nodeName !== 'TR') {
997
        $element = $element.parent();
998

999
        if ($element[0].nodeName !== 'TR') {
1000
          $element = $element.parent();
1001
        }
1002
      }
1003

1004
      var time = 500;
1005
      var $type = $element.attr(SELECTOR_ARIA_ATTR);
1006
      var $body = $element.next(SELECTOR_EXPANDABLE_BODY).children().first().children();
1007
      $body.stop();
1008

1009
      if ($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
    } // Static
1022
    ;
1023

1024
    ExpandableTable._jQueryInterface = function _jQueryInterface(operation) {
1025
      return this.each(function () {
1026
        var data = $__default["default"](this).data(DATA_KEY$9);
1027

1028
        if (!data) {
1029
          data = new ExpandableTable($__default["default"](this));
1030
          $__default["default"](this).data(DATA_KEY$9, data);
1031
        }
1032

1033
        if (typeof operation === 'string' && /init|toggleRow/.test(operation)) {
1034
          data[operation]();
1035
        }
1036
      });
1037
    };
1038

1039
    return ExpandableTable;
1040
  }();
1041
  /**
1042
    * Data API
1043
    * ====================================================
1044
    */
1045

1046

1047
  $__default["default"](SELECTOR_TABLE).ready(function () {
1048
    ExpandableTable._jQueryInterface.call($__default["default"](this), 'init');
1049
  });
1050
  $__default["default"](document).on('click', SELECTOR_DATA_TOGGLE$2, function () {
1051
    ExpandableTable._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;
1063
    return ExpandableTable._jQueryInterface;
1064
  };
1065

1066
  /**
1067
   * --------------------------------------------
1068
   * AdminLTE Fullscreen.js
1069
   * License MIT
1070
   * --------------------------------------------
1071
   */
1072
  /**
1073
   * Constants
1074
   * ====================================================
1075
   */
1076

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';
1083
  var Default$8 = {
1084
    minimizeIcon: 'fa-compress-arrows-alt',
1085
    maximizeIcon: 'fa-expand-arrows-alt'
1086
  };
1087
  /**
1088
   * Class Definition
1089
   * ====================================================
1090
   */
1091

1092
  var Fullscreen = /*#__PURE__*/function () {
1093
    function Fullscreen(_element, _options) {
1094
      this.element = _element;
1095
      this.options = $__default["default"].extend({}, Default$8, _options);
1096
    } // Public
1097

1098

1099
    var _proto = Fullscreen.prototype;
1100

1101
    _proto.toggle = function toggle() {
1102
      if (document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement) {
1103
        this.windowed();
1104
      } else {
1105
        this.fullscreen();
1106
      }
1107
    };
1108

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);
1112
      } else {
1113
        $__default["default"](SELECTOR_ICON).removeClass(this.options.minimizeIcon).addClass(this.options.maximizeIcon);
1114
      }
1115
    };
1116

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();
1124
      }
1125
    };
1126

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();
1134
      }
1135
    } // Static
1136
    ;
1137

1138
    Fullscreen._jQueryInterface = function _jQueryInterface(config) {
1139
      var data = $__default["default"](this).data(DATA_KEY$8);
1140

1141
      if (!data) {
1142
        data = $__default["default"](this).data();
1143
      }
1144

1145
      var _options = $__default["default"].extend({}, Default$8, typeof config === 'object' ? config : data);
1146

1147
      var plugin = new Fullscreen($__default["default"](this), _options);
1148
      $__default["default"](this).data(DATA_KEY$8, typeof config === 'object' ? config : data);
1149

1150
      if (typeof config === 'string' && /toggle|toggleIcon|fullscreen|windowed/.test(config)) {
1151
        plugin[config]();
1152
      } else {
1153
        plugin.init();
1154
      }
1155
    };
1156

1157
    return Fullscreen;
1158
  }();
1159
  /**
1160
    * Data API
1161
    * ====================================================
1162
    */
1163

1164

1165
  $__default["default"](document).on('click', SELECTOR_DATA_WIDGET$2, function () {
1166
    Fullscreen._jQueryInterface.call($__default["default"](this), 'toggle');
1167
  });
1168
  $__default["default"](document).on(EVENT_FULLSCREEN_CHANGE, function () {
1169
    Fullscreen._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;
1181
    return Fullscreen._jQueryInterface;
1182
  };
1183

1184
  /**
1185
   * --------------------------------------------
1186
   * AdminLTE IFrame.js
1187
   * License MIT
1188
   * --------------------------------------------
1189
   */
1190
  /**
1191
   * Constants
1192
   * ====================================================
1193
   */
1194

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';
1219
  var Default$7 = {
1220
    onTabClick: function onTabClick(item) {
1221
      return item;
1222
    },
1223
    onTabChanged: function onTabChanged(item) {
1224
      return item;
1225
    },
1226
    onTabCreated: function onTabCreated(item) {
1227
      return item;
1228
    },
1229
    autoIframeMode: true,
1230
    autoItemActive: true,
1231
    autoShowNewTab: true,
1232
    autoDarkMode: false,
1233
    allowDuplicates: false,
1234
    allowReload: true,
1235
    loadingScreen: true,
1236
    useNavbarItems: true,
1237
    scrollOffset: 40,
1238
    scrollBehaviorSwap: false,
1239
    iconMaximize: 'fa-expand',
1240
    iconMinimize: 'fa-compress'
1241
  };
1242
  /**
1243
   * Class Definition
1244
   * ====================================================
1245
   */
1246

1247
  var IFrame = /*#__PURE__*/function () {
1248
    function IFrame(element, config) {
1249
      this._config = config;
1250
      this._element = element;
1251

1252
      this._init();
1253
    } // Public
1254

1255

1256
    var _proto = IFrame.prototype;
1257

1258
    _proto.onTabClick = function onTabClick(item) {
1259
      this._config.onTabClick(item);
1260
    };
1261

1262
    _proto.onTabChanged = function onTabChanged(item) {
1263
      this._config.onTabChanged(item);
1264
    };
1265

1266
    _proto.onTabCreated = function onTabCreated(item) {
1267
      this._config.onTabCreated(item);
1268
    };
1269

1270
    _proto.createTab = function createTab(title, link, uniqueName, autoOpen) {
1271
      var _this = this;
1272

1273
      var tabId = "panel-" + uniqueName;
1274
      var navId = "tab-" + uniqueName;
1275

1276
      if (this._config.allowDuplicates) {
1277
        tabId += "-" + Math.floor(Math.random() * 1000);
1278
        navId += "-" + Math.floor(Math.random() * 1000);
1279
      }
1280

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)));
1285

1286
      if (autoOpen) {
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);
1293

1294
              setTimeout(function () {
1295
                $loadingScreen.fadeOut();
1296
              }, _this._config.loadingScreen);
1297
            } else {
1298
              _this.switchTab("#" + navId);
1299

1300
              $loadingScreen.fadeOut();
1301
            }
1302
          });
1303
        } else {
1304
          this.switchTab("#" + navId);
1305
        }
1306
      }
1307

1308
      this.onTabCreated($__default["default"]("#" + navId));
1309
    };
1310

1311
    _proto.openTabSidebar = function openTabSidebar(item, autoOpen) {
1312
      if (autoOpen === void 0) {
1313
        autoOpen = this._config.autoShowNewTab;
1314
      }
1315

1316
      var $item = $__default["default"](item).clone();
1317

1318
      if ($item.attr('href') === undefined) {
1319
        $item = $__default["default"](item).parent('a').clone();
1320
      }
1321

1322
      $item.find('.right, .search-path').remove();
1323
      var title = $item.find('p').text();
1324

1325
      if (title === '') {
1326
        title = $item.text();
1327
      }
1328

1329
      var link = $item.attr('href');
1330

1331
      if (link === '#' || link === '' || link === undefined) {
1332
        return;
1333
      }
1334

1335
      var uniqueName = unescape(link).replace('./', '').replace(/["#&'./:=?[\]]/gi, '-').replace(/(--)/gi, '');
1336
      var navId = "tab-" + uniqueName;
1337

1338
      if (!this._config.allowDuplicates && $__default["default"]("#" + navId).length > 0) {
1339
        return this.switchTab("#" + navId, this._config.allowReload);
1340
      }
1341

1342
      if (!this._config.allowDuplicates && $__default["default"]("#" + navId).length === 0 || this._config.allowDuplicates) {
1343
        this.createTab(title, link, uniqueName, autoOpen);
1344
      }
1345
    };
1346

1347
    _proto.switchTab = function switchTab(item, reload) {
1348
      var _this2 = this;
1349

1350
      if (reload === void 0) {
1351
        reload = false;
1352
      }
1353

1354
      var $item = $__default["default"](item);
1355
      var tabId = $item.attr('href');
1356
      $__default["default"](SELECTOR_TAB_EMPTY).hide();
1357

1358
      if (reload) {
1359
        var $loadingScreen = $__default["default"](SELECTOR_TAB_LOADING);
1360

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);
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

1382
      this._fixHeight();
1383

1384
      $item.tab('show');
1385
      $item.parents('li').addClass('active');
1386
      this.onTabChanged($item);
1387

1388
      if (this._config.autoItemActive) {
1389
        this._setItemActive($__default["default"](tabId + " iframe").attr('src'));
1390
      }
1391
    };
1392

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');
1407
        $navItem.remove();
1408
        $__default["default"]("#" + tabId).remove();
1409

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();
1412
        } else {
1413
          var prevNavItemIndex = navItemIndex - 1;
1414
          this.switchTab($navItemParent.children().eq(prevNavItemIndex).find('a.nav-link'));
1415
        }
1416
      } else {
1417
        var _$navItem = $__default["default"](SELECTOR_TAB_NAVBAR_NAV_ITEM + ".active");
1418

1419
        var _$navItemParent = _$navItem.parent();
1420

1421
        var _navItemIndex = _$navItem.index();
1422

1423
        _$navItem.remove();
1424

1425
        $__default["default"](SELECTOR_TAB_PANE + ".active").remove();
1426

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();
1429
        } else {
1430
          var _prevNavItemIndex = _navItemIndex - 1;
1431

1432
          this.switchTab(_$navItemParent.children().eq(_prevNavItemIndex).find('a.nav-link'));
1433
        }
1434
      }
1435
    };
1436

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%');
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

1451
      this._fixHeight(true);
1452
    } // Private
1453
    ;
1454

1455
    _proto._init = function _init() {
1456
      var usingDefTab = $__default["default"](SELECTOR_TAB_CONTENT).children().length > 2;
1457

1458
      this._setupListeners();
1459

1460
      this._fixHeight(true);
1461

1462
      if (usingDefTab) {
1463
        var $el = $__default["default"]("" + SELECTOR_TAB_PANE).first(); // eslint-disable-next-line no-console
1464

1465
        console.log($el);
1466
        var uniqueName = $el.attr('id').replace('panel-', '');
1467
        var navId = "#tab-" + uniqueName;
1468
        this.switchTab(navId, true);
1469
      }
1470
    };
1471

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);
1476

1477
        if (this._config.autoDarkMode) {
1478
          $body.addClass('dark-mode');
1479
        }
1480
      }
1481
    };
1482

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
1487
      }, 250, 'linear');
1488
    };
1489

1490
    _proto._setupListeners = function _setupListeners() {
1491
      var _this3 = this;
1492

1493
      $__default["default"](window).on('resize', function () {
1494
        setTimeout(function () {
1495
          _this3._fixHeight();
1496
        }, 1);
1497
      });
1498

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) {
1501
          e.preventDefault();
1502

1503
          _this3.openTabSidebar(e.target);
1504
        });
1505

1506
        if (this._config.useNavbarItems) {
1507
          $__default["default"](document).on('click', SELECTOR_HEADER_MENU_ITEM + ", " + SELECTOR_HEADER_DROPDOWN_ITEM, function (e) {
1508
            e.preventDefault();
1509

1510
            _this3.openTabSidebar(e.target);
1511
          });
1512
        }
1513
      }
1514

1515
      $__default["default"](document).on('click', SELECTOR_TAB_NAVBAR_NAV_LINK, function (e) {
1516
        e.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) {
1523
        e.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) {
1530
        e.preventDefault();
1531
        var target = e.target;
1532

1533
        if (target.nodeName == 'I') {
1534
          target = 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) {
1540
        e.preventDefault();
1541

1542
        _this3.toggleFullscreen();
1543
      });
1544
      var mousedown = false;
1545
      var mousedownInterval = null;
1546
      $__default["default"](document).on('mousedown', SELECTOR_DATA_TOGGLE_SCROLL_LEFT, function (e) {
1547
        e.preventDefault();
1548
        clearInterval(mousedownInterval);
1549
        var scrollOffset = _this3._config.scrollOffset;
1550

1551
        if (!_this3._config.scrollBehaviorSwap) {
1552
          scrollOffset = -scrollOffset;
1553
        }
1554

1555
        mousedown = true;
1556

1557
        _this3._navScroll(scrollOffset);
1558

1559
        mousedownInterval = setInterval(function () {
1560
          _this3._navScroll(scrollOffset);
1561
        }, 250);
1562
      });
1563
      $__default["default"](document).on('mousedown', SELECTOR_DATA_TOGGLE_SCROLL_RIGHT, function (e) {
1564
        e.preventDefault();
1565
        clearInterval(mousedownInterval);
1566
        var scrollOffset = _this3._config.scrollOffset;
1567

1568
        if (_this3._config.scrollBehaviorSwap) {
1569
          scrollOffset = -scrollOffset;
1570
        }
1571

1572
        mousedown = true;
1573

1574
        _this3._navScroll(scrollOffset);
1575

1576
        mousedownInterval = setInterval(function () {
1577
          _this3._navScroll(scrollOffset);
1578
        }, 250);
1579
      });
1580
      $__default["default"](document).on('mouseup', function () {
1581
        if (mousedown) {
1582
          mousedown = false;
1583
          clearInterval(mousedownInterval);
1584
          mousedownInterval = 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');
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');
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) {
1608
      if (tabEmpty === void 0) {
1609
        tabEmpty = false;
1610
      }
1611

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);
1617
      } else {
1618
        var contentWrapperHeight = parseFloat($__default["default"](SELECTOR_CONTENT_WRAPPER).css('height'));
1619

1620
        var _navbarHeight = $__default["default"](SELECTOR_TAB_NAV).outerHeight();
1621

1622
        if (tabEmpty == true) {
1623
          setTimeout(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
    } // Static
1631
    ;
1632

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);
1636

1637
        if (!data) {
1638
          data = $__default["default"](this).data();
1639
        }
1640

1641
        var _options = $__default["default"].extend({}, Default$7, typeof config === 'object' ? config : data);
1642

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);
1646

1647
        if (typeof config === 'string' && /createTab|openTabSidebar|switchTab|removeActiveTab/.test(config)) {
1648
          plugin[config]();
1649
        }
1650
      } else {
1651
        new IFrame($__default["default"](this), JSON.parse(localStorage.getItem('AdminLTE:IFrame:Options')))._initFrameElement();
1652
      }
1653
    };
1654

1655
    return IFrame;
1656
  }();
1657
  /**
1658
   * Data API
1659
   * ====================================================
1660
   */
1661

1662

1663
  $__default["default"](window).on('load', function () {
1664
    IFrame._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;
1676
    return IFrame._jQueryInterface;
1677
  };
1678

1679
  /**
1680
   * --------------------------------------------
1681
   * AdminLTE Layout.js
1682
   * License MIT
1683
   * --------------------------------------------
1684
   */
1685
  /**
1686
   * Constants
1687
   * ====================================================
1688
   */
1689

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';
1710
  var Default$6 = {
1711
    scrollbarTheme: 'os-theme-light',
1712
    scrollbarAutoHide: 'l',
1713
    panelAutoHeight: true,
1714
    panelAutoHeightMode: 'min-height',
1715
    preloadDuration: 200,
1716
    loginRegisterAutoHeight: true
1717
  };
1718
  /**
1719
   * Class Definition
1720
   * ====================================================
1721
   */
1722

1723
  var Layout = /*#__PURE__*/function () {
1724
    function Layout(element, config) {
1725
      this._config = config;
1726
      this._element = element;
1727
    } // Public
1728

1729

1730
    var _proto = Layout.prototype;
1731

1732
    _proto.fixLayoutHeight = function fixLayoutHeight(extra) {
1733
      if (extra === void 0) {
1734
        extra = null;
1735
      }
1736

1737
      var $body = $__default["default"]('body');
1738
      var controlSidebar = 0;
1739

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();
1742
      }
1743

1744
      var heights = {
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
1750
      };
1751

1752
      var max = this._max(heights);
1753

1754
      var offset = this._config.panelAutoHeight;
1755

1756
      if (offset === true) {
1757
        offset = 0;
1758
      }
1759

1760
      var $contentSelector = $__default["default"](SELECTOR_CONTENT);
1761

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);
1767
        } else {
1768
          $contentSelector.css(this._config.panelAutoHeightMode, max + offset - heights.header);
1769
        }
1770

1771
        if (this._isFooterFixed()) {
1772
          $contentSelector.css(this._config.panelAutoHeightMode, parseFloat($contentSelector.css(this._config.panelAutoHeightMode)) + heights.footer);
1773
        }
1774
      }
1775

1776
      if (!$body.hasClass(CLASS_NAME_LAYOUT_FIXED)) {
1777
        return;
1778
      }
1779

1780
      if (typeof $__default["default"].fn.overlayScrollbars !== 'undefined') {
1781
        $__default["default"](SELECTOR_SIDEBAR$1).overlayScrollbars({
1782
          className: this._config.scrollbarTheme,
1783
          sizeAutoCapable: true,
1784
          scrollbars: {
1785
            autoHide: this._config.scrollbarAutoHide,
1786
            clickScrolling: true
1787
          }
1788
        });
1789
      } else {
1790
        $__default["default"](SELECTOR_SIDEBAR$1).css('overflow-y', 'auto');
1791
      }
1792
    };
1793

1794
    _proto.fixLoginRegisterHeight = function fixLoginRegisterHeight() {
1795
      var $body = $__default["default"]('body');
1796
      var $selector = $__default["default"](SELECTOR_LOGIN_BOX + ", " + SELECTOR_REGISTER_BOX);
1797

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');
1805
      } else {
1806
        var boxHeight = $selector.height();
1807

1808
        if ($body.css(this._config.panelAutoHeightMode) !== boxHeight) {
1809
          $body.css(this._config.panelAutoHeightMode, boxHeight);
1810
        }
1811
      }
1812
    } // Private
1813
    ;
1814

1815
    _proto._init = function _init() {
1816
      var _this = this;
1817

1818
      // Activate layout height watcher
1819
      this.fixLayoutHeight();
1820

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);
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 () {
1831
        if ($__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 () {
1836
        setTimeout(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
      });
1848
      setTimeout(function () {
1849
        $__default["default"]('body.hold-transition').removeClass('hold-transition');
1850
      }, 50);
1851
      setTimeout(function () {
1852
        var $preloader = $__default["default"](SELECTOR_PRELOADER);
1853

1854
        if ($preloader) {
1855
          $preloader.css('height', 0);
1856
          setTimeout(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 list
1865
      var max = 0;
1866
      Object.keys(numbers).forEach(function (key) {
1867
        if (numbers[key] > max) {
1868
          max = numbers[key];
1869
        }
1870
      });
1871
      return max;
1872
    };
1873

1874
    _proto._isFooterFixed = function _isFooterFixed() {
1875
      return $__default["default"](SELECTOR_FOOTER).css('position') === 'fixed';
1876
    } // Static
1877
    ;
1878

1879
    Layout._jQueryInterface = function _jQueryInterface(config) {
1880
      if (config === void 0) {
1881
        config = '';
1882
      }
1883

1884
      return this.each(function () {
1885
        var data = $__default["default"](this).data(DATA_KEY$6);
1886

1887
        var _options = $__default["default"].extend({}, Default$6, $__default["default"](this).data());
1888

1889
        if (!data) {
1890
          data = new Layout($__default["default"](this), _options);
1891
          $__default["default"](this).data(DATA_KEY$6, data);
1892
        }
1893

1894
        if (config === 'init' || config === '') {
1895
          data._init();
1896
        } else if (config === 'fixLayoutHeight' || config === 'fixLoginRegisterHeight') {
1897
          data[config]();
1898
        }
1899
      });
1900
    };
1901

1902
    return Layout;
1903
  }();
1904
  /**
1905
   * Data API
1906
   * ====================================================
1907
   */
1908

1909

1910
  $__default["default"](window).on('load', function () {
1911
    Layout._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;
1928
    return Layout._jQueryInterface;
1929
  };
1930

1931
  /**
1932
   * --------------------------------------------
1933
   * AdminLTE PushMenu.js
1934
   * License MIT
1935
   * --------------------------------------------
1936
   */
1937
  /**
1938
   * Constants
1939
   * ====================================================
1940
   */
1941

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';
1957
  var Default$5 = {
1958
    autoCollapseSize: 992,
1959
    enableRemember: false,
1960
    noTransitionAfterReload: true,
1961
    animationSpeed: 300
1962
  };
1963
  /**
1964
   * Class Definition
1965
   * ====================================================
1966
   */
1967

1968
  var PushMenu = /*#__PURE__*/function () {
1969
    function PushMenu(element, options) {
1970
      this._element = element;
1971
      this._options = $__default["default"].extend({}, Default$5, options);
1972

1973
      if ($__default["default"](SELECTOR_OVERLAY).length === 0) {
1974
        this._addOverlay();
1975
      }
1976

1977
      this._init();
1978
    } // Public
1979

1980

1981
    var _proto = PushMenu.prototype;
1982

1983
    _proto.expand = function expand() {
1984
      var $bodySelector = $__default["default"](SELECTOR_BODY);
1985

1986
      if (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

1995
      if (this._options.enableRemember) {
1996
        localStorage.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() {
2003
      var _this = this;
2004

2005
      var $bodySelector = $__default["default"](SELECTOR_BODY);
2006

2007
      if (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

2013
      if (this._options.enableRemember) {
2014
        localStorage.setItem("remember" + EVENT_KEY$2, CLASS_NAME_COLLAPSED);
2015
      }
2016

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);
2021
    };
2022

2023
    _proto.toggle = function toggle() {
2024
      if ($__default["default"](SELECTOR_BODY).hasClass(CLASS_NAME_COLLAPSED)) {
2025
        this.expand();
2026
      } else {
2027
        this.collapse();
2028
      }
2029
    };
2030

2031
    _proto.autoCollapse = function autoCollapse(resize) {
2032
      if (resize === void 0) {
2033
        resize = false;
2034
      }
2035

2036
      if (!this._options.autoCollapseSize) {
2037
        return;
2038
      }
2039

2040
      var $bodySelector = $__default["default"](SELECTOR_BODY);
2041

2042
      if ($__default["default"](window).width() <= this._options.autoCollapseSize) {
2043
        if (!$bodySelector.hasClass(CLASS_NAME_OPEN$3)) {
2044
          this.collapse();
2045
        }
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)) {
2050
          this.expand();
2051
        }
2052
      }
2053
    };
2054

2055
    _proto.remember = function remember() {
2056
      if (!this._options.enableRemember) {
2057
        return;
2058
      }
2059

2060
      var $body = $__default["default"]('body');
2061
      var toggleState = localStorage.getItem("remember" + EVENT_KEY$2);
2062

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();
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
    } // Private
2081
    ;
2082

2083
    _proto._init = function _init() {
2084
      var _this2 = this;
2085

2086
      this.remember();
2087
      this.autoCollapse();
2088
      $__default["default"](window).resize(function () {
2089
        _this2.autoCollapse(true);
2090
      });
2091
    };
2092

2093
    _proto._addOverlay = function _addOverlay() {
2094
      var _this3 = this;
2095

2096
      var overlay = $__default["default"]('<div />', {
2097
        id: 'sidebar-overlay'
2098
      });
2099
      overlay.on('click', function () {
2100
        _this3.collapse();
2101
      });
2102
      $__default["default"](SELECTOR_WRAPPER).append(overlay);
2103
    } // Static
2104
    ;
2105

2106
    PushMenu._jQueryInterface = function _jQueryInterface(operation) {
2107
      return this.each(function () {
2108
        var data = $__default["default"](this).data(DATA_KEY$5);
2109

2110
        var _options = $__default["default"].extend({}, Default$5, $__default["default"](this).data());
2111

2112
        if (!data) {
2113
          data = new PushMenu(this, _options);
2114
          $__default["default"](this).data(DATA_KEY$5, data);
2115
        }
2116

2117
        if (typeof operation === 'string' && /collapse|expand|toggle/.test(operation)) {
2118
          data[operation]();
2119
        }
2120
      });
2121
    };
2122

2123
    return PushMenu;
2124
  }();
2125
  /**
2126
   * Data API
2127
   * ====================================================
2128
   */
2129

2130

2131
  $__default["default"](document).on('click', SELECTOR_TOGGLE_BUTTON$1, function (event) {
2132
    event.preventDefault();
2133
    var button = event.currentTarget;
2134

2135
    if ($__default["default"](button).data('widget') !== 'pushmenu') {
2136
      button = $__default["default"](button).closest(SELECTOR_TOGGLE_BUTTON$1);
2137
    }
2138

2139
    PushMenu._jQueryInterface.call($__default["default"](button), 'toggle');
2140
  });
2141
  $__default["default"](window).on('load', function () {
2142
    PushMenu._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;
2154
    return PushMenu._jQueryInterface;
2155
  };
2156

2157
  /**
2158
   * --------------------------------------------
2159
   * AdminLTE SidebarSearch.js
2160
   * License MIT
2161
   * --------------------------------------------
2162
   */
2163
  /**
2164
   * Constants
2165
   * ====================================================
2166
   */
2167

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;
2187
  var Default$4 = {
2188
    arrowSign: '->',
2189
    minLength: 3,
2190
    maxResults: 7,
2191
    highlightName: true,
2192
    highlightPath: false,
2193
    highlightClass: 'text-light',
2194
    notFoundText: 'No element found!'
2195
  };
2196
  var SearchItems = [];
2197
  /**
2198
   * Class Definition
2199
   * ====================================================
2200
   */
2201

2202
  var SidebarSearch = /*#__PURE__*/function () {
2203
    function SidebarSearch(_element, _options) {
2204
      this.element = _element;
2205
      this.options = $__default["default"].extend({}, Default$4, _options);
2206
      this.items = [];
2207
    } // Public
2208

2209

2210
    var _proto = SidebarSearch.prototype;
2211

2212
    _proto.init = function init() {
2213
      var _this = this;
2214

2215
      if ($__default["default"](SELECTOR_DATA_WIDGET$1).length === 0) {
2216
        return;
2217
      }
2218

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
2222
        }));
2223
      }
2224

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
2228
        }));
2229
      }
2230

2231
      this._addNotFound();
2232

2233
      $__default["default"](SELECTOR_SIDEBAR).children().each(function (i, child) {
2234
        _this._parseItem(child);
2235
      });
2236
    };
2237

2238
    _proto.search = function search() {
2239
      var _this2 = this;
2240

2241
      var searchValue = $__default["default"](SELECTOR_SEARCH_INPUT$1).val().toLowerCase();
2242

2243
      if (searchValue.length < this.options.minLength) {
2244
        $__default["default"](SELECTOR_SEARCH_RESULTS_GROUP).empty();
2245

2246
        this._addNotFound();
2247

2248
        this.close();
2249
        return;
2250
      }
2251

2252
      var searchResults = SearchItems.filter(function (item) {
2253
        return item.name.toLowerCase().includes(searchValue);
2254
      });
2255
      var endResults = $__default["default"](searchResults.slice(0, this.options.maxResults));
2256
      $__default["default"](SELECTOR_SEARCH_RESULTS_GROUP).empty();
2257

2258
      if (endResults.length === 0) {
2259
        this._addNotFound();
2260
      } else {
2261
        endResults.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

2266
      this.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() {
2280
      if ($__default["default"](SELECTOR_DATA_WIDGET$1).parent().hasClass(CLASS_NAME_OPEN$2)) {
2281
        this.close();
2282
      } else {
2283
        this.open();
2284
      }
2285
    } // Private
2286
    ;
2287

2288
    _proto._parseItem = function _parseItem(item, path) {
2289
      var _this3 = this;
2290

2291
      if (path === void 0) {
2292
        path = [];
2293
      }
2294

2295
      if ($__default["default"](item).hasClass(CLASS_NAME_HEADER)) {
2296
        return;
2297
      }
2298

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;
2307

2308
      if (navTreeview.length === 0) {
2309
        SearchItems.push(itemObject);
2310
      } else {
2311
        var newPath = itemObject.path.concat([itemObject.name]);
2312
        navTreeview.children().each(function (i, child) {
2313
          _this3._parseItem(child, newPath);
2314
        });
2315
      }
2316
    };
2317

2318
    _proto._trimText = function _trimText(text) {
2319
      return $.trim(text.replace(/(\r\n|\n|\r)/gm, ' '));
2320
    };
2321

2322
    _proto._renderItem = function _renderItem(name, link, path) {
2323
      var _this4 = this;
2324

2325
      path = path.join(" " + this.options.arrowSign + " ");
2326
      name = unescape(name);
2327
      link = decodeURI(link);
2328

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');
2332

2333
        if (this.options.highlightName) {
2334
          name = name.replace(regExp, function (str) {
2335
            return "<strong class=\"" + _this4.options.highlightClass + "\">" + str + "</strong>";
2336
          });
2337
        }
2338

2339
        if (this.options.highlightPath) {
2340
          path = path.replace(regExp, function (str) {
2341
            return "<strong class=\"" + _this4.options.highlightClass + "\">" + str + "</strong>";
2342
          });
2343
        }
2344
      }
2345

2346
      var groupItemElement = $__default["default"]('<a/>', {
2347
        href: decodeURIComponent(link),
2348
        class: 'list-group-item'
2349
      });
2350
      var searchTitleElement = $__default["default"]('<div/>', {
2351
        class: 'search-title'
2352
      }).html(name);
2353
      var searchPathElement = $__default["default"]('<div/>', {
2354
        class: 'search-path'
2355
      }).html(path);
2356
      groupItemElement.append(searchTitleElement).append(searchPathElement);
2357
      return groupItemElement;
2358
    };
2359

2360
    _proto._addNotFound = function _addNotFound() {
2361
      $__default["default"](SELECTOR_SEARCH_RESULTS_GROUP).append(this._renderItem(this.options.notFoundText, '#', []));
2362
    } // Static
2363
    ;
2364

2365
    SidebarSearch._jQueryInterface = function _jQueryInterface(config) {
2366
      var data = $__default["default"](this).data(DATA_KEY$4);
2367

2368
      if (!data) {
2369
        data = $__default["default"](this).data();
2370
      }
2371

2372
      var _options = $__default["default"].extend({}, Default$4, typeof config === 'object' ? config : data);
2373

2374
      var plugin = new SidebarSearch($__default["default"](this), _options);
2375
      $__default["default"](this).data(DATA_KEY$4, typeof config === 'object' ? config : data);
2376

2377
      if (typeof config === 'string' && /init|toggle|close|open|search/.test(config)) {
2378
        plugin[config]();
2379
      } else {
2380
        plugin.init();
2381
      }
2382
    };
2383

2384
    return SidebarSearch;
2385
  }();
2386
  /**
2387
   * Data API
2388
   * ====================================================
2389
   */
2390

2391

2392
  $__default["default"](document).on('click', SELECTOR_SEARCH_BUTTON, function (event) {
2393
    event.preventDefault();
2394

2395
    SidebarSearch._jQueryInterface.call($__default["default"](SELECTOR_DATA_WIDGET$1), 'toggle');
2396
  });
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();
2401
      return;
2402
    }
2403

2404
    if (event.keyCode == 40) {
2405
      event.preventDefault();
2406
      $__default["default"](SELECTOR_SEARCH_RESULTS_GROUP).children().first().focus();
2407
      return;
2408
    }
2409

2410
    setTimeout(function () {
2411
      SidebarSearch._jQueryInterface.call($__default["default"](SELECTOR_DATA_WIDGET$1), 'search');
2412
    }, 100);
2413
  });
2414
  $__default["default"](document).on('keydown', SELECTOR_SEARCH_RESULTS_GROUP, function (event) {
2415
    var $focused = $__default["default"](':focus');
2416

2417
    if (event.keyCode == 38) {
2418
      event.preventDefault();
2419

2420
      if ($focused.is(':first-child')) {
2421
        $focused.siblings().last().focus();
2422
      } else {
2423
        $focused.prev().focus();
2424
      }
2425
    }
2426

2427
    if (event.keyCode == 40) {
2428
      event.preventDefault();
2429

2430
      if ($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 () {
2438
    SidebarSearch._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;
2450
    return SidebarSearch._jQueryInterface;
2451
  };
2452

2453
  /**
2454
   * --------------------------------------------
2455
   * AdminLTE NavbarSearch.js
2456
   * License MIT
2457
   * --------------------------------------------
2458
   */
2459
  /**
2460
   * Constants
2461
   * ====================================================
2462
   */
2463

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';
2471
  var Default$3 = {
2472
    resetOnClose: true,
2473
    target: SELECTOR_SEARCH_BLOCK
2474
  };
2475
  /**
2476
   * Class Definition
2477
   * ====================================================
2478
   */
2479

2480
  var NavbarSearch = /*#__PURE__*/function () {
2481
    function NavbarSearch(_element, _options) {
2482
      this._element = _element;
2483
      this._config = $__default["default"].extend({}, Default$3, _options);
2484
    } // Public
2485

2486

2487
    var _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

2497
      if (this._config.resetOnClose) {
2498
        $__default["default"](this._config.target + " " + SELECTOR_SEARCH_INPUT).val('');
2499
      }
2500
    };
2501

2502
    _proto.toggle = function toggle() {
2503
      if ($__default["default"](this._config.target).hasClass(CLASS_NAME_OPEN$1)) {
2504
        this.close();
2505
      } else {
2506
        this.open();
2507
      }
2508
    } // Static
2509
    ;
2510

2511
    NavbarSearch._jQueryInterface = function _jQueryInterface(options) {
2512
      return this.each(function () {
2513
        var data = $__default["default"](this).data(DATA_KEY$3);
2514

2515
        var _options = $__default["default"].extend({}, Default$3, $__default["default"](this).data());
2516

2517
        if (!data) {
2518
          data = new NavbarSearch(this, _options);
2519
          $__default["default"](this).data(DATA_KEY$3, data);
2520
        }
2521

2522
        if (!/toggle|close|open/.test(options)) {
2523
          throw new Error("Undefined method " + options);
2524
        }
2525

2526
        data[options]();
2527
      });
2528
    };
2529

2530
    return NavbarSearch;
2531
  }();
2532
  /**
2533
   * Data API
2534
   * ====================================================
2535
   */
2536

2537

2538
  $__default["default"](document).on('click', SELECTOR_TOGGLE_BUTTON, function (event) {
2539
    event.preventDefault();
2540
    var button = $__default["default"](event.currentTarget);
2541

2542
    if (button.data('widget') !== 'navbar-search') {
2543
      button = button.closest(SELECTOR_TOGGLE_BUTTON);
2544
    }
2545

2546
    NavbarSearch._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;
2558
    return NavbarSearch._jQueryInterface;
2559
  };
2560

2561
  /**
2562
   * --------------------------------------------
2563
   * AdminLTE Toasts.js
2564
   * License MIT
2565
   * --------------------------------------------
2566
   */
2567
  /**
2568
   * Constants
2569
   * ====================================================
2570
   */
2571

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';
2591
  var Default$2 = {
2592
    position: POSITION_TOP_RIGHT,
2593
    fixed: true,
2594
    autohide: false,
2595
    autoremove: true,
2596
    delay: 1000,
2597
    fade: true,
2598
    icon: null,
2599
    image: null,
2600
    imageAlt: null,
2601
    imageHeight: '25px',
2602
    title: null,
2603
    subtitle: null,
2604
    close: true,
2605
    body: null,
2606
    class: null
2607
  };
2608
  /**
2609
   * Class Definition
2610
   * ====================================================
2611
   */
2612

2613
  var Toasts = /*#__PURE__*/function () {
2614
    function Toasts(element, config) {
2615
      this._config = config;
2616

2617
      this._prepareContainer();
2618

2619
      $__default["default"]('body').trigger($__default["default"].Event(EVENT_INIT));
2620
    } // Public
2621

2622

2623
    var _proto = Toasts.prototype;
2624

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);
2629

2630
      if (this._config.class) {
2631
        toast.addClass(this._config.class);
2632
      }
2633

2634
      if (this._config.delay && this._config.delay != 500) {
2635
        toast.data('delay', this._config.delay);
2636
      }
2637

2638
      var toastHeader = $__default["default"]('<div class="toast-header">');
2639

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);
2642

2643
        if (this._config.imageHeight != null) {
2644
          toastImage.height(this._config.imageHeight).width('auto');
2645
        }
2646

2647
        toastHeader.append(toastImage);
2648
      }
2649

2650
      if (this._config.icon != null) {
2651
        toastHeader.append($__default["default"]('<i />').addClass('mr-2').addClass(this._config.icon));
2652
      }
2653

2654
      if (this._config.title != null) {
2655
        toastHeader.append($__default["default"]('<strong />').addClass('mr-auto').html(this._config.title));
2656
      }
2657

2658
      if (this._config.subtitle != null) {
2659
        toastHeader.append($__default["default"]('<small />').html(this._config.subtitle));
2660
      }
2661

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">&times;</span>');
2664

2665
        if (this._config.title == null) {
2666
          toastClose.toggleClass('ml-2 ml-auto');
2667
        }
2668

2669
        toastHeader.append(toastClose);
2670
      }
2671

2672
      toast.append(toastHeader);
2673

2674
      if (this._config.body != null) {
2675
        toast.append($__default["default"]('<div class="toast-body" />').html(this._config.body));
2676
      }
2677

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');
2682

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));
2687
        });
2688
      }
2689
    } // Static
2690
    ;
2691

2692
    _proto._getContainerId = function _getContainerId() {
2693
      if (this._config.position == POSITION_TOP_RIGHT) {
2694
        return SELECTOR_CONTAINER_TOP_RIGHT;
2695
      }
2696

2697
      if (this._config.position == POSITION_TOP_LEFT) {
2698
        return SELECTOR_CONTAINER_TOP_LEFT;
2699
      }
2700

2701
      if (this._config.position == POSITION_BOTTOM_RIGHT) {
2702
        return SELECTOR_CONTAINER_BOTTOM_RIGHT;
2703
      }
2704

2705
      if (this._config.position == POSITION_BOTTOM_LEFT) {
2706
        return SELECTOR_CONTAINER_BOTTOM_LEFT;
2707
      }
2708
    };
2709

2710
    _proto._prepareContainer = function _prepareContainer() {
2711
      if ($__default["default"](this._getContainerId()).length === 0) {
2712
        var container = $__default["default"]('<div />').attr('id', this._getContainerId().replace('#', ''));
2713

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);
2722
        }
2723

2724
        $__default["default"]('body').append(container);
2725
      }
2726

2727
      if (this._config.fixed) {
2728
        $__default["default"](this._getContainerId()).addClass('fixed');
2729
      } else {
2730
        $__default["default"](this._getContainerId()).removeClass('fixed');
2731
      }
2732
    } // Static
2733
    ;
2734

2735
    Toasts._jQueryInterface = function _jQueryInterface(option, config) {
2736
      return this.each(function () {
2737
        var _options = $__default["default"].extend({}, Default$2, config);
2738

2739
        var toast = new Toasts($__default["default"](this), _options);
2740

2741
        if (option === 'create') {
2742
          toast[option]();
2743
        }
2744
      });
2745
    };
2746

2747
    return 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;
2760
    return Toasts._jQueryInterface;
2761
  };
2762

2763
  /**
2764
   * --------------------------------------------
2765
   * AdminLTE TodoList.js
2766
   * License MIT
2767
   * --------------------------------------------
2768
   */
2769
  /**
2770
   * Constants
2771
   * ====================================================
2772
   */
2773

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';
2779
  var Default$1 = {
2780
    onCheck: function onCheck(item) {
2781
      return item;
2782
    },
2783
    onUnCheck: function onUnCheck(item) {
2784
      return item;
2785
    }
2786
  };
2787
  /**
2788
   * Class Definition
2789
   * ====================================================
2790
   */
2791

2792
  var TodoList = /*#__PURE__*/function () {
2793
    function TodoList(element, config) {
2794
      this._config = config;
2795
      this._element = element;
2796

2797
      this._init();
2798
    } // Public
2799

2800

2801
    var _proto = TodoList.prototype;
2802

2803
    _proto.toggle = function toggle(item) {
2804
      item.parents('li').toggleClass(CLASS_NAME_TODO_LIST_DONE);
2805

2806
      if (!$__default["default"](item).prop('checked')) {
2807
        this.unCheck($__default["default"](item));
2808
        return;
2809
      }
2810

2811
      this.check(item);
2812
    };
2813

2814
    _proto.check = function check(item) {
2815
      this._config.onCheck.call(item);
2816
    };
2817

2818
    _proto.unCheck = function unCheck(item) {
2819
      this._config.onUnCheck.call(item);
2820
    } // Private
2821
    ;
2822

2823
    _proto._init = function _init() {
2824
      var _this = this;
2825

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));
2830
      });
2831
    } // Static
2832
    ;
2833

2834
    TodoList._jQueryInterface = function _jQueryInterface(config) {
2835
      return this.each(function () {
2836
        var data = $__default["default"](this).data(DATA_KEY$1);
2837

2838
        if (!data) {
2839
          data = $__default["default"](this).data();
2840
        }
2841

2842
        var _options = $__default["default"].extend({}, Default$1, typeof config === 'object' ? config : data);
2843

2844
        var plugin = new TodoList($__default["default"](this), _options);
2845
        $__default["default"](this).data(DATA_KEY$1, typeof config === 'object' ? config : data);
2846

2847
        if (config === 'init') {
2848
          plugin[config]();
2849
        }
2850
      });
2851
    };
2852

2853
    return TodoList;
2854
  }();
2855
  /**
2856
   * Data API
2857
   * ====================================================
2858
   */
2859

2860

2861
  $__default["default"](window).on('load', function () {
2862
    TodoList._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;
2874
    return TodoList._jQueryInterface;
2875
  };
2876

2877
  /**
2878
   * --------------------------------------------
2879
   * AdminLTE Treeview.js
2880
   * License MIT
2881
   * --------------------------------------------
2882
   */
2883
  /**
2884
   * Constants
2885
   * ====================================================
2886
   */
2887

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';
2903
  var Default = {
2904
    trigger: SELECTOR_DATA_WIDGET + " " + SELECTOR_LINK,
2905
    animationSpeed: 300,
2906
    accordion: true,
2907
    expandSidebar: false,
2908
    sidebarButtonSelector: '[data-widget="pushmenu"]'
2909
  };
2910
  /**
2911
   * Class Definition
2912
   * ====================================================
2913
   */
2914

2915
  var Treeview = /*#__PURE__*/function () {
2916
    function Treeview(element, config) {
2917
      this._config = config;
2918
      this._element = element;
2919
    } // Public
2920

2921

2922
    var _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

2927
      this._setupListeners();
2928
    };
2929

2930
    _proto.expand = function expand(treeviewMenu, parentLi) {
2931
      var _this = this;
2932

2933
      var expandedEvent = $__default["default"].Event(EVENT_EXPANDED);
2934

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);
2939
      }
2940

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);
2945
      });
2946

2947
      if (this._config.expandSidebar) {
2948
        this._expandSidebar();
2949
      }
2950
    };
2951

2952
    _proto.collapse = function collapse(treeviewMenu, parentLi) {
2953
      var _this2 = this;
2954

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);
2961
      });
2962
    };
2963

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);
2968

2969
      if (!treeviewMenu.is(SELECTOR_TREEVIEW_MENU)) {
2970
        if (!$parent.is(SELECTOR_LI)) {
2971
          treeviewMenu = $parent.parent().find("> " + SELECTOR_TREEVIEW_MENU);
2972
        }
2973

2974
        if (!treeviewMenu.is(SELECTOR_TREEVIEW_MENU)) {
2975
          return;
2976
        }
2977
      }
2978

2979
      event.preventDefault();
2980
      var parentLi = $relativeTarget.parents(SELECTOR_LI).first();
2981
      var isOpen = parentLi.hasClass(CLASS_NAME_OPEN);
2982

2983
      if (isOpen) {
2984
        this.collapse($__default["default"](treeviewMenu), parentLi);
2985
      } else {
2986
        this.expand($__default["default"](treeviewMenu), parentLi);
2987
      }
2988
    } // Private
2989
    ;
2990

2991
    _proto._setupListeners = function _setupListeners() {
2992
      var _this3 = this;
2993

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);
2997
      });
2998
    };
2999

3000
    _proto._expandSidebar = function _expandSidebar() {
3001
      if ($__default["default"]('body').hasClass(CLASS_NAME_SIDEBAR_COLLAPSED)) {
3002
        $__default["default"](this._config.sidebarButtonSelector).PushMenu('expand');
3003
      }
3004
    } // Static
3005
    ;
3006

3007
    Treeview._jQueryInterface = function _jQueryInterface(config) {
3008
      return this.each(function () {
3009
        var data = $__default["default"](this).data(DATA_KEY);
3010

3011
        var _options = $__default["default"].extend({}, Default, $__default["default"](this).data());
3012

3013
        if (!data) {
3014
          data = new Treeview($__default["default"](this), _options);
3015
          $__default["default"](this).data(DATA_KEY, data);
3016
        }
3017

3018
        if (config === 'init') {
3019
          data[config]();
3020
        }
3021
      });
3022
    };
3023

3024
    return 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 () {
3034
      Treeview._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;
3047
    return Treeview._jQueryInterface;
3048
  };
3049

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;
3065

3066
  Object.defineProperty(exports, '__esModule', { value: true });
3067

3068
}));
3069
//# sourceMappingURL=adminlte.js.map
3070

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.