bootstrap.bundle.js 244 KB
Newer Older
XhmikosR's avatar
XhmikosR committed
7001
7002
7003
        }).forEach(function (tClass) {
          return tip.classList.remove(tClass);
        });
XhmikosR's avatar
Dist    
XhmikosR committed
7004
      }
Mark Otto's avatar
Mark Otto committed
7005
7006
    } // Static
    ;
Mark Otto's avatar
dist    
Mark Otto committed
7007

XhmikosR's avatar
XhmikosR committed
7008
    Popover.jQueryInterface = function jQueryInterface(config) {
XhmikosR's avatar
Dist    
XhmikosR committed
7009
      return this.each(function () {
XhmikosR's avatar
XhmikosR committed
7010
        var data = Data.getData(this, DATA_KEY$7);
Mark Otto's avatar
dist    
Mark Otto committed
7011

XhmikosR's avatar
Dist    
XhmikosR committed
7012
        var _config = typeof config === 'object' ? config : null;
Mark Otto's avatar
dist    
Mark Otto committed
7013

XhmikosR's avatar
Dist    
XhmikosR committed
7014
7015
7016
        if (!data && /dispose|hide/.test(config)) {
          return;
        }
Mark Otto's avatar
dist  
Mark Otto committed
7017

XhmikosR's avatar
Dist    
XhmikosR committed
7018
7019
        if (!data) {
          data = new Popover(this, _config);
XhmikosR's avatar
XhmikosR committed
7020
          Data.setData(this, DATA_KEY$7, data);
XhmikosR's avatar
Dist    
XhmikosR committed
7021
        }
Mark Otto's avatar
dist  
Mark Otto committed
7022

XhmikosR's avatar
Dist    
XhmikosR committed
7023
7024
7025
        if (typeof config === 'string') {
          if (typeof data[config] === 'undefined') {
            throw new TypeError("No method named \"" + config + "\"");
Mark Otto's avatar
dist  
Mark Otto committed
7026
          }
Mark Otto's avatar
dist    
Mark Otto committed
7027

XhmikosR's avatar
Dist    
XhmikosR committed
7028
          data[config]();
Mark Otto's avatar
dist    
Mark Otto committed
7029
        }
XhmikosR's avatar
Dist    
XhmikosR committed
7030
7031
      });
    };
Mark Otto's avatar
dist  
Mark Otto committed
7032

XhmikosR's avatar
XhmikosR committed
7033
    Popover.getInstance = function getInstance(element) {
XhmikosR's avatar
XhmikosR committed
7034
7035
7036
      return Data.getData(element, DATA_KEY$7);
    };

XhmikosR's avatar
Dist    
XhmikosR committed
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
    _createClass(Popover, null, [{
      key: "VERSION",
      // Getters
      get: function get() {
        return VERSION$7;
      }
    }, {
      key: "Default",
      get: function get() {
        return Default$5;
      }
    }, {
      key: "NAME",
      get: function get() {
        return NAME$7;
      }
    }, {
      key: "DATA_KEY",
      get: function get() {
        return DATA_KEY$7;
      }
    }, {
      key: "Event",
      get: function get() {
XhmikosR's avatar
XhmikosR committed
7061
        return Event$8;
XhmikosR's avatar
Dist    
XhmikosR committed
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
      }
    }, {
      key: "EVENT_KEY",
      get: function get() {
        return EVENT_KEY$7;
      }
    }, {
      key: "DefaultType",
      get: function get() {
        return DefaultType$5;
      }
    }]);
Mark Otto's avatar
dist    
Mark Otto committed
7074

XhmikosR's avatar
Dist    
XhmikosR committed
7075
7076
    return Popover;
  }(Tooltip);
XhmikosR's avatar
XhmikosR committed
7077
7078

  var $$8 = getjQuery();
XhmikosR's avatar
Dist    
XhmikosR committed
7079
7080
7081
7082
7083
  /**
   * ------------------------------------------------------------------------
   * jQuery
   * ------------------------------------------------------------------------
   */
Mark Otto's avatar
dist    
Mark Otto committed
7084

7085
7086
  /* istanbul ignore if */

XhmikosR's avatar
XhmikosR committed
7087
7088
7089
7090
  if ($$8) {
    var JQUERY_NO_CONFLICT$7 = $$8.fn[NAME$7];
    $$8.fn[NAME$7] = Popover.jQueryInterface;
    $$8.fn[NAME$7].Constructor = Popover;
Mark Otto's avatar
dist  
Mark Otto committed
7091

XhmikosR's avatar
XhmikosR committed
7092
7093
7094
    $$8.fn[NAME$7].noConflict = function () {
      $$8.fn[NAME$7] = JQUERY_NO_CONFLICT$7;
      return Popover.jQueryInterface;
XhmikosR's avatar
XhmikosR committed
7095
7096
    };
  }
Mark Otto's avatar
dist  
Mark Otto committed
7097

XhmikosR's avatar
Dist    
XhmikosR committed
7098
7099
7100
7101
7102
7103
7104
  /**
   * ------------------------------------------------------------------------
   * Constants
   * ------------------------------------------------------------------------
   */

  var NAME$8 = 'scrollspy';
XhmikosR's avatar
XhmikosR committed
7105
  var VERSION$8 = '4.3.1';
XhmikosR's avatar
Dist    
XhmikosR committed
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
  var DATA_KEY$8 = 'bs.scrollspy';
  var EVENT_KEY$8 = "." + DATA_KEY$8;
  var DATA_API_KEY$6 = '.data-api';
  var Default$6 = {
    offset: 10,
    method: 'auto',
    target: ''
  };
  var DefaultType$6 = {
    offset: 'number',
    method: 'string',
    target: '(string|element)'
  };
XhmikosR's avatar
XhmikosR committed
7119
  var Event$9 = {
XhmikosR's avatar
Dist    
XhmikosR committed
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
    ACTIVATE: "activate" + EVENT_KEY$8,
    SCROLL: "scroll" + EVENT_KEY$8,
    LOAD_DATA_API: "load" + EVENT_KEY$8 + DATA_API_KEY$6
  };
  var ClassName$8 = {
    DROPDOWN_ITEM: 'dropdown-item',
    ACTIVE: 'active'
  };
  var Selector$8 = {
    DATA_SPY: '[data-spy="scroll"]',
    NAV_LIST_GROUP: '.nav, .list-group',
    NAV_LINKS: '.nav-link',
    NAV_ITEMS: '.nav-item',
    LIST_ITEMS: '.list-group-item',
    DROPDOWN: '.dropdown',
    DROPDOWN_TOGGLE: '.dropdown-toggle'
  };
  var OffsetMethod = {
    OFFSET: 'offset',
    POSITION: 'position'
Mark Otto's avatar
dist    
Mark Otto committed
7140
7141
    /**
     * ------------------------------------------------------------------------
XhmikosR's avatar
Dist    
XhmikosR committed
7142
     * Class Definition
Mark Otto's avatar
dist    
Mark Otto committed
7143
7144
     * ------------------------------------------------------------------------
     */
XhmikosR's avatar
Dist    
XhmikosR committed
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156

  };

  var ScrollSpy =
  /*#__PURE__*/
  function () {
    function ScrollSpy(element, config) {
      var _this = this;

      this._element = element;
      this._scrollElement = element.tagName === 'BODY' ? window : element;
      this._config = this._getConfig(config);
XhmikosR's avatar
Dist.    
XhmikosR committed
7157
      this._selector = this._config.target + " " + Selector$8.NAV_LINKS + "," + (this._config.target + " " + Selector$8.LIST_ITEMS + ",") + (this._config.target + " ." + ClassName$8.DROPDOWN_ITEM);
XhmikosR's avatar
Dist    
XhmikosR committed
7158
7159
7160
7161
      this._offsets = [];
      this._targets = [];
      this._activeTarget = null;
      this._scrollHeight = 0;
XhmikosR's avatar
XhmikosR committed
7162
      EventHandler.on(this._scrollElement, Event$9.SCROLL, function (event) {
XhmikosR's avatar
Dist    
XhmikosR committed
7163
7164
7165
7166
7167
        return _this._process(event);
      });
      this.refresh();

      this._process();
XhmikosR's avatar
XhmikosR committed
7168
7169

      Data.setData(element, DATA_KEY$8, this);
XhmikosR's avatar
Dist    
XhmikosR committed
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
    } // Getters


    var _proto = ScrollSpy.prototype;

    // Public
    _proto.refresh = function refresh() {
      var _this2 = this;

      var autoMethod = this._scrollElement === this._scrollElement.window ? OffsetMethod.OFFSET : OffsetMethod.POSITION;
      var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method;
      var offsetBase = offsetMethod === OffsetMethod.POSITION ? this._getScrollTop() : 0;
      this._offsets = [];
      this._targets = [];
      this._scrollHeight = this._getScrollHeight();
XhmikosR's avatar
XhmikosR committed
7185
      var targets = makeArray(SelectorEngine.find(this._selector));
XhmikosR's avatar
Dist    
XhmikosR committed
7186
7187
      targets.map(function (element) {
        var target;
XhmikosR's avatar
XhmikosR committed
7188
        var targetSelector = getSelectorFromElement(element);
XhmikosR's avatar
Dist    
XhmikosR committed
7189
7190

        if (targetSelector) {
XhmikosR's avatar
XhmikosR committed
7191
          target = SelectorEngine.findOne(targetSelector);
XhmikosR's avatar
Dist    
XhmikosR committed
7192
7193
7194
7195
7196
7197
        }

        if (target) {
          var targetBCR = target.getBoundingClientRect();

          if (targetBCR.width || targetBCR.height) {
XhmikosR's avatar
XhmikosR committed
7198
            return [Manipulator[offsetMethod](target).top + offsetBase, targetSelector];
XhmikosR's avatar
Dist    
XhmikosR committed
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
          }
        }

        return null;
      }).filter(function (item) {
        return item;
      }).sort(function (a, b) {
        return a[0] - b[0];
      }).forEach(function (item) {
        _this2._offsets.push(item[0]);

        _this2._targets.push(item[1]);
      });
Mark Otto's avatar
dist    
Mark Otto committed
7212
    };
XhmikosR's avatar
Dist    
XhmikosR committed
7213
7214

    _proto.dispose = function dispose() {
XhmikosR's avatar
XhmikosR committed
7215
7216
      Data.removeData(this._element, DATA_KEY$8);
      EventHandler.off(this._scrollElement, EVENT_KEY$8);
XhmikosR's avatar
Dist    
XhmikosR committed
7217
7218
7219
7220
7221
7222
7223
7224
      this._element = null;
      this._scrollElement = null;
      this._config = null;
      this._selector = null;
      this._offsets = null;
      this._targets = null;
      this._activeTarget = null;
      this._scrollHeight = null;
Mark Otto's avatar
Mark Otto committed
7225
7226
    } // Private
    ;
XhmikosR's avatar
Dist    
XhmikosR committed
7227
7228

    _proto._getConfig = function _getConfig(config) {
7229
      config = _objectSpread2({}, Default$6, {}, typeof config === 'object' && config ? config : {});
XhmikosR's avatar
Dist    
XhmikosR committed
7230
7231

      if (typeof config.target !== 'string') {
XhmikosR's avatar
XhmikosR committed
7232
        var id = config.target.id;
XhmikosR's avatar
Dist    
XhmikosR committed
7233
7234

        if (!id) {
XhmikosR's avatar
XhmikosR committed
7235
7236
          id = getUID(NAME$8);
          config.target.id = id;
XhmikosR's avatar
Dist    
XhmikosR committed
7237
7238
7239
7240
7241
        }

        config.target = "#" + id;
      }

XhmikosR's avatar
XhmikosR committed
7242
      typeCheckConfig(NAME$8, config, DefaultType$6);
XhmikosR's avatar
Dist    
XhmikosR committed
7243
      return config;
Mark Otto's avatar
dist    
Mark Otto committed
7244
    };
XhmikosR's avatar
Dist    
XhmikosR committed
7245
7246
7247

    _proto._getScrollTop = function _getScrollTop() {
      return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop;
Mark Otto's avatar
dist    
Mark Otto committed
7248
    };
XhmikosR's avatar
Dist    
XhmikosR committed
7249
7250
7251

    _proto._getScrollHeight = function _getScrollHeight() {
      return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
Mark Otto's avatar
dist    
Mark Otto committed
7252
    };
Mark Otto's avatar
dist  
Mark Otto committed
7253

XhmikosR's avatar
Dist    
XhmikosR committed
7254
7255
    _proto._getOffsetHeight = function _getOffsetHeight() {
      return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height;
Mark Otto's avatar
dist    
Mark Otto committed
7256
    };
Mark Otto's avatar
dist  
Mark Otto committed
7257

XhmikosR's avatar
Dist    
XhmikosR committed
7258
7259
    _proto._process = function _process() {
      var scrollTop = this._getScrollTop() + this._config.offset;
Mark Otto's avatar
dist    
Mark Otto committed
7260

XhmikosR's avatar
Dist    
XhmikosR committed
7261
7262
7263
7264
7265
      var scrollHeight = this._getScrollHeight();

      var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight();

      if (this._scrollHeight !== scrollHeight) {
Mark Otto's avatar
dist    
Mark Otto committed
7266
        this.refresh();
XhmikosR's avatar
Dist    
XhmikosR committed
7267
      }
Mark Otto's avatar
dist    
Mark Otto committed
7268

XhmikosR's avatar
Dist    
XhmikosR committed
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
      if (scrollTop >= maxScroll) {
        var target = this._targets[this._targets.length - 1];

        if (this._activeTarget !== target) {
          this._activate(target);
        }

        return;
      }

      if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) {
        this._activeTarget = null;

        this._clear();

        return;
      }

      var offsetLength = this._offsets.length;

      for (var i = offsetLength; i--;) {
        var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]);

        if (isActiveTarget) {
          this._activate(this._targets[i]);
        }
      }
    };

    _proto._activate = function _activate(target) {
      this._activeTarget = target;

      this._clear();
Mark Otto's avatar
dist  
Mark Otto committed
7302

XhmikosR's avatar
Dist    
XhmikosR committed
7303
7304
      var queries = this._selector.split(',').map(function (selector) {
        return selector + "[data-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]";
XhmikosR's avatar
Dist    
XhmikosR committed
7305
      });
XhmikosR's avatar
Dist    
XhmikosR committed
7306

XhmikosR's avatar
XhmikosR committed
7307
      var link = SelectorEngine.findOne(queries.join(','));
Mark Otto's avatar
dist  
Mark Otto committed
7308

XhmikosR's avatar
XhmikosR committed
7309
7310
7311
      if (link.classList.contains(ClassName$8.DROPDOWN_ITEM)) {
        SelectorEngine.findOne(Selector$8.DROPDOWN_TOGGLE, SelectorEngine.closest(link, Selector$8.DROPDOWN)).classList.add(ClassName$8.ACTIVE);
        link.classList.add(ClassName$8.ACTIVE);
XhmikosR's avatar
Dist    
XhmikosR committed
7312
7313
      } else {
        // Set triggered link as active
XhmikosR's avatar
XhmikosR committed
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
        link.classList.add(ClassName$8.ACTIVE);
        SelectorEngine.parents(link, Selector$8.NAV_LIST_GROUP).forEach(function (listGroup) {
          // Set triggered links parents as active
          // With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor
          SelectorEngine.prev(listGroup, Selector$8.NAV_LINKS + ", " + Selector$8.LIST_ITEMS).forEach(function (item) {
            return item.classList.add(ClassName$8.ACTIVE);
          }); // Handle special case when .nav-link is inside .nav-item

          SelectorEngine.prev(listGroup, Selector$8.NAV_ITEMS).forEach(function (navItem) {
            SelectorEngine.children(navItem, Selector$8.NAV_LINKS).forEach(function (item) {
              return item.classList.add(ClassName$8.ACTIVE);
            });
          });
        });
XhmikosR's avatar
Dist    
XhmikosR committed
7328
      }
Mark Otto's avatar
dist    
Mark Otto committed
7329

XhmikosR's avatar
XhmikosR committed
7330
      EventHandler.trigger(this._scrollElement, Event$9.ACTIVATE, {
XhmikosR's avatar
Dist    
XhmikosR committed
7331
7332
7333
        relatedTarget: target
      });
    };
Mark Otto's avatar
dist    
Mark Otto committed
7334

XhmikosR's avatar
Dist    
XhmikosR committed
7335
    _proto._clear = function _clear() {
XhmikosR's avatar
XhmikosR committed
7336
      makeArray(SelectorEngine.find(this._selector)).filter(function (node) {
XhmikosR's avatar
Dist    
XhmikosR committed
7337
7338
7339
7340
        return node.classList.contains(ClassName$8.ACTIVE);
      }).forEach(function (node) {
        return node.classList.remove(ClassName$8.ACTIVE);
      });
Mark Otto's avatar
Mark Otto committed
7341
7342
    } // Static
    ;
Mark Otto's avatar
dist  
Mark Otto committed
7343

XhmikosR's avatar
XhmikosR committed
7344
    ScrollSpy.jQueryInterface = function jQueryInterface(config) {
XhmikosR's avatar
Dist    
XhmikosR committed
7345
      return this.each(function () {
XhmikosR's avatar
XhmikosR committed
7346
        var data = Data.getData(this, DATA_KEY$8);
Mark Otto's avatar
dist  
Mark Otto committed
7347

XhmikosR's avatar
Dist    
XhmikosR committed
7348
        var _config = typeof config === 'object' && config;
Mark Otto's avatar
dist  
Mark Otto committed
7349

XhmikosR's avatar
Dist    
XhmikosR committed
7350
7351
7352
        if (!data) {
          data = new ScrollSpy(this, _config);
        }
Mark Otto's avatar
dist  
Mark Otto committed
7353

XhmikosR's avatar
Dist    
XhmikosR committed
7354
7355
7356
        if (typeof config === 'string') {
          if (typeof data[config] === 'undefined') {
            throw new TypeError("No method named \"" + config + "\"");
Mark Otto's avatar
dist    
Mark Otto committed
7357
          }
Mark Otto's avatar
dist    
Mark Otto committed
7358

XhmikosR's avatar
Dist    
XhmikosR committed
7359
          data[config]();
Mark Otto's avatar
dist  
Mark Otto committed
7360
        }
XhmikosR's avatar
Dist    
XhmikosR committed
7361
7362
      });
    };
Mark Otto's avatar
dist    
Mark Otto committed
7363

XhmikosR's avatar
XhmikosR committed
7364
    ScrollSpy.getInstance = function getInstance(element) {
XhmikosR's avatar
XhmikosR committed
7365
7366
7367
      return Data.getData(element, DATA_KEY$8);
    };

XhmikosR's avatar
Dist    
XhmikosR committed
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
    _createClass(ScrollSpy, null, [{
      key: "VERSION",
      get: function get() {
        return VERSION$8;
      }
    }, {
      key: "Default",
      get: function get() {
        return Default$6;
      }
    }]);
Mark Otto's avatar
dist  
Mark Otto committed
7379

XhmikosR's avatar
Dist    
XhmikosR committed
7380
7381
7382
7383
7384
7385
7386
    return ScrollSpy;
  }();
  /**
   * ------------------------------------------------------------------------
   * Data Api implementation
   * ------------------------------------------------------------------------
   */
Mark Otto's avatar
dist  
Mark Otto committed
7387
7388


XhmikosR's avatar
XhmikosR committed
7389
7390
7391
7392
  EventHandler.on(window, Event$9.LOAD_DATA_API, function () {
    makeArray(SelectorEngine.find(Selector$8.DATA_SPY)).forEach(function (spy) {
      return new ScrollSpy(spy, Manipulator.getDataAttributes(spy));
    });
XhmikosR's avatar
Dist    
XhmikosR committed
7393
  });
XhmikosR's avatar
XhmikosR committed
7394
  var $$9 = getjQuery();
XhmikosR's avatar
Dist    
XhmikosR committed
7395
7396
7397
7398
7399
  /**
   * ------------------------------------------------------------------------
   * jQuery
   * ------------------------------------------------------------------------
   */
Mark Otto's avatar
dist    
Mark Otto committed
7400

7401
7402
  /* istanbul ignore if */

XhmikosR's avatar
XhmikosR committed
7403
7404
7405
7406
  if ($$9) {
    var JQUERY_NO_CONFLICT$8 = $$9.fn[NAME$8];
    $$9.fn[NAME$8] = ScrollSpy.jQueryInterface;
    $$9.fn[NAME$8].Constructor = ScrollSpy;
Mark Otto's avatar
dist  
Mark Otto committed
7407

XhmikosR's avatar
XhmikosR committed
7408
7409
7410
    $$9.fn[NAME$8].noConflict = function () {
      $$9.fn[NAME$8] = JQUERY_NO_CONFLICT$8;
      return ScrollSpy.jQueryInterface;
XhmikosR's avatar
XhmikosR committed
7411
7412
    };
  }
Mark Otto's avatar
dist  
Mark Otto committed
7413

XhmikosR's avatar
Dist    
XhmikosR committed
7414
7415
7416
7417
7418
  /**
   * ------------------------------------------------------------------------
   * Constants
   * ------------------------------------------------------------------------
   */
Mark Otto's avatar
dist    
Mark Otto committed
7419

XhmikosR's avatar
Dist    
XhmikosR committed
7420
  var NAME$9 = 'tab';
XhmikosR's avatar
XhmikosR committed
7421
  var VERSION$9 = '4.3.1';
XhmikosR's avatar
Dist    
XhmikosR committed
7422
7423
7424
  var DATA_KEY$9 = 'bs.tab';
  var EVENT_KEY$9 = "." + DATA_KEY$9;
  var DATA_API_KEY$7 = '.data-api';
XhmikosR's avatar
XhmikosR committed
7425
  var Event$a = {
XhmikosR's avatar
Dist    
XhmikosR committed
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
    HIDE: "hide" + EVENT_KEY$9,
    HIDDEN: "hidden" + EVENT_KEY$9,
    SHOW: "show" + EVENT_KEY$9,
    SHOWN: "shown" + EVENT_KEY$9,
    CLICK_DATA_API: "click" + EVENT_KEY$9 + DATA_API_KEY$7
  };
  var ClassName$9 = {
    DROPDOWN_MENU: 'dropdown-menu',
    ACTIVE: 'active',
    DISABLED: 'disabled',
    FADE: 'fade',
    SHOW: 'show'
  };
  var Selector$9 = {
    DROPDOWN: '.dropdown',
    NAV_LIST_GROUP: '.nav, .list-group',
    ACTIVE: '.active',
XhmikosR's avatar
XhmikosR committed
7443
    ACTIVE_UL: ':scope > li > .active',
XhmikosR's avatar
Dist    
XhmikosR committed
7444
7445
    DATA_TOGGLE: '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',
    DROPDOWN_TOGGLE: '.dropdown-toggle',
XhmikosR's avatar
XhmikosR committed
7446
    DROPDOWN_ACTIVE_CHILD: ':scope > .dropdown-menu .active'
XhmikosR's avatar
Dist    
XhmikosR committed
7447
7448
7449
7450
7451
    /**
     * ------------------------------------------------------------------------
     * Class Definition
     * ------------------------------------------------------------------------
     */
Mark Otto's avatar
dist    
Mark Otto committed
7452

XhmikosR's avatar
Dist    
XhmikosR committed
7453
  };
Mark Otto's avatar
dist    
Mark Otto committed
7454

XhmikosR's avatar
Dist    
XhmikosR committed
7455
7456
7457
7458
7459
  var Tab =
  /*#__PURE__*/
  function () {
    function Tab(element) {
      this._element = element;
XhmikosR's avatar
XhmikosR committed
7460
      Data.setData(this._element, DATA_KEY$9, this);
XhmikosR's avatar
Dist    
XhmikosR committed
7461
    } // Getters
Mark Otto's avatar
dist  
Mark Otto committed
7462

Mark Otto's avatar
dist    
Mark Otto committed
7463

XhmikosR's avatar
Dist    
XhmikosR committed
7464
    var _proto = Tab.prototype;
Mark Otto's avatar
dist  
Mark Otto committed
7465

XhmikosR's avatar
Dist    
XhmikosR committed
7466
7467
7468
    // Public
    _proto.show = function show() {
      var _this = this;
Mark Otto's avatar
dist  
Mark Otto committed
7469

XhmikosR's avatar
XhmikosR committed
7470
      if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && this._element.classList.contains(ClassName$9.ACTIVE) || this._element.classList.contains(ClassName$9.DISABLED)) {
XhmikosR's avatar
Dist    
XhmikosR committed
7471
7472
        return;
      }
Mark Otto's avatar
dist  
Mark Otto committed
7473

XhmikosR's avatar
Dist    
XhmikosR committed
7474
      var previous;
XhmikosR's avatar
XhmikosR committed
7475
      var target = getElementFromSelector(this._element);
XhmikosR's avatar
XhmikosR committed
7476
      var listElement = SelectorEngine.closest(this._element, Selector$9.NAV_LIST_GROUP);
XhmikosR's avatar
Dist    
XhmikosR committed
7477
7478

      if (listElement) {
XhmikosR's avatar
Dist    
XhmikosR committed
7479
        var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? Selector$9.ACTIVE_UL : Selector$9.ACTIVE;
XhmikosR's avatar
XhmikosR committed
7480
        previous = makeArray(SelectorEngine.find(itemSelector, listElement));
XhmikosR's avatar
Dist    
XhmikosR committed
7481
7482
        previous = previous[previous.length - 1];
      }
Mark Otto's avatar
dist  
Mark Otto committed
7483

XhmikosR's avatar
XhmikosR committed
7484
      var hideEvent = null;
Mark Otto's avatar
dist    
Mark Otto committed
7485

XhmikosR's avatar
Dist    
XhmikosR committed
7486
      if (previous) {
XhmikosR's avatar
XhmikosR committed
7487
7488
7489
        hideEvent = EventHandler.trigger(previous, Event$a.HIDE, {
          relatedTarget: this._element
        });
XhmikosR's avatar
Dist    
XhmikosR committed
7490
      }
Mark Otto's avatar
dist    
Mark Otto committed
7491

XhmikosR's avatar
XhmikosR committed
7492
7493
7494
      var showEvent = EventHandler.trigger(this._element, Event$a.SHOW, {
        relatedTarget: previous
      });
Mark Otto's avatar
dist  
Mark Otto committed
7495

XhmikosR's avatar
XhmikosR committed
7496
      if (showEvent.defaultPrevented || hideEvent !== null && hideEvent.defaultPrevented) {
XhmikosR's avatar
Dist    
XhmikosR committed
7497
7498
        return;
      }
Mark Otto's avatar
dist    
Mark Otto committed
7499

XhmikosR's avatar
Dist    
XhmikosR committed
7500
      this._activate(this._element, listElement);
Mark Otto's avatar
dist  
Mark Otto committed
7501

XhmikosR's avatar
Dist    
XhmikosR committed
7502
      var complete = function complete() {
XhmikosR's avatar
XhmikosR committed
7503
        EventHandler.trigger(previous, Event$a.HIDDEN, {
XhmikosR's avatar
Dist    
XhmikosR committed
7504
7505
          relatedTarget: _this._element
        });
XhmikosR's avatar
XhmikosR committed
7506
        EventHandler.trigger(_this._element, Event$a.SHOWN, {
XhmikosR's avatar
Dist    
XhmikosR committed
7507
          relatedTarget: previous
Mark Otto's avatar
dist    
Mark Otto committed
7508
7509
        });
      };
Mark Otto's avatar
dist  
Mark Otto committed
7510

XhmikosR's avatar
Dist    
XhmikosR committed
7511
7512
7513
7514
7515
7516
      if (target) {
        this._activate(target, target.parentNode, complete);
      } else {
        complete();
      }
    };
Mark Otto's avatar
dist  
Mark Otto committed
7517

XhmikosR's avatar
Dist    
XhmikosR committed
7518
    _proto.dispose = function dispose() {
XhmikosR's avatar
XhmikosR committed
7519
      Data.removeData(this._element, DATA_KEY$9);
XhmikosR's avatar
Dist    
XhmikosR committed
7520
      this._element = null;
Mark Otto's avatar
Mark Otto committed
7521
7522
    } // Private
    ;
Mark Otto's avatar
dist    
Mark Otto committed
7523

XhmikosR's avatar
Dist    
XhmikosR committed
7524
7525
    _proto._activate = function _activate(element, container, callback) {
      var _this2 = this;
Mark Otto's avatar
dist  
Mark Otto committed
7526

XhmikosR's avatar
XhmikosR committed
7527
      var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? SelectorEngine.find(Selector$9.ACTIVE_UL, container) : SelectorEngine.children(container, Selector$9.ACTIVE);
XhmikosR's avatar
Dist    
XhmikosR committed
7528
      var active = activeElements[0];
XhmikosR's avatar
XhmikosR committed
7529
      var isTransitioning = callback && active && active.classList.contains(ClassName$9.FADE);
XhmikosR's avatar
Dist    
XhmikosR committed
7530
7531
7532

      var complete = function complete() {
        return _this2._transitionComplete(element, active, callback);
Mark Otto's avatar
dist    
Mark Otto committed
7533
      };
Mark Otto's avatar
dist    
Mark Otto committed
7534

XhmikosR's avatar
Dist    
XhmikosR committed
7535
      if (active && isTransitioning) {
XhmikosR's avatar
XhmikosR committed
7536
7537
7538
7539
        var transitionDuration = getTransitionDurationFromElement(active);
        active.classList.remove(ClassName$9.SHOW);
        EventHandler.one(active, TRANSITION_END, complete);
        emulateTransitionEnd(active, transitionDuration);
XhmikosR's avatar
Dist    
XhmikosR committed
7540
7541
7542
7543
7544
7545
7546
      } else {
        complete();
      }
    };

    _proto._transitionComplete = function _transitionComplete(element, active, callback) {
      if (active) {
XhmikosR's avatar
XhmikosR committed
7547
7548
        active.classList.remove(ClassName$9.ACTIVE);
        var dropdownChild = SelectorEngine.findOne(Selector$9.DROPDOWN_ACTIVE_CHILD, active.parentNode);
XhmikosR's avatar
Dist    
XhmikosR committed
7549
7550

        if (dropdownChild) {
XhmikosR's avatar
XhmikosR committed
7551
          dropdownChild.classList.remove(ClassName$9.ACTIVE);
Mark Otto's avatar
dist  
Mark Otto committed
7552
        }
XhmikosR's avatar
Dist    
XhmikosR committed
7553
7554
7555

        if (active.getAttribute('role') === 'tab') {
          active.setAttribute('aria-selected', false);
Mark Otto's avatar
dist    
Mark Otto committed
7556
        }
XhmikosR's avatar
Dist    
XhmikosR committed
7557
      }
Mark Otto's avatar
dist  
Mark Otto committed
7558

XhmikosR's avatar
XhmikosR committed
7559
      element.classList.add(ClassName$9.ACTIVE);
XhmikosR's avatar
Dist    
XhmikosR committed
7560
7561
7562
7563

      if (element.getAttribute('role') === 'tab') {
        element.setAttribute('aria-selected', true);
      }
Mark Otto's avatar
dist    
Mark Otto committed
7564

XhmikosR's avatar
XhmikosR committed
7565
      reflow(element);
Mark Otto's avatar
Mark Otto committed
7566
7567
7568
7569

      if (element.classList.contains(ClassName$9.FADE)) {
        element.classList.add(ClassName$9.SHOW);
      }
Mark Otto's avatar
dist  
Mark Otto committed
7570

XhmikosR's avatar
XhmikosR committed
7571
7572
      if (element.parentNode && element.parentNode.classList.contains(ClassName$9.DROPDOWN_MENU)) {
        var dropdownElement = SelectorEngine.closest(element, Selector$9.DROPDOWN);
Mark Otto's avatar
dist    
Mark Otto committed
7573

XhmikosR's avatar
Dist    
XhmikosR committed
7574
        if (dropdownElement) {
XhmikosR's avatar
XhmikosR committed
7575
7576
7577
          makeArray(SelectorEngine.find(Selector$9.DROPDOWN_TOGGLE)).forEach(function (dropdown) {
            return dropdown.classList.add(ClassName$9.ACTIVE);
          });
XhmikosR's avatar
Dist    
XhmikosR committed
7578
        }
Mark Otto's avatar
dist  
Mark Otto committed
7579

XhmikosR's avatar
Dist    
XhmikosR committed
7580
        element.setAttribute('aria-expanded', true);
Mark Otto's avatar
dist    
Mark Otto committed
7581
      }
Mark Otto's avatar
dist    
Mark Otto committed
7582

XhmikosR's avatar
Dist    
XhmikosR committed
7583
7584
7585
      if (callback) {
        callback();
      }
Mark Otto's avatar
Mark Otto committed
7586
7587
    } // Static
    ;
Mark Otto's avatar
dist  
Mark Otto committed
7588

XhmikosR's avatar
XhmikosR committed
7589
    Tab.jQueryInterface = function jQueryInterface(config) {
XhmikosR's avatar
Dist    
XhmikosR committed
7590
      return this.each(function () {
XhmikosR's avatar
XhmikosR committed
7591
        var data = Data.getData(this, DATA_KEY$9) || new Tab(this);
XhmikosR's avatar
Dist    
XhmikosR committed
7592
7593
7594
7595
7596
7597
7598
7599
7600

        if (typeof config === 'string') {
          if (typeof data[config] === 'undefined') {
            throw new TypeError("No method named \"" + config + "\"");
          }

          data[config]();
        }
      });
Mark Otto's avatar
dist    
Mark Otto committed
7601
    };
Mark Otto's avatar
dist  
Mark Otto committed
7602

XhmikosR's avatar
XhmikosR committed
7603
    Tab.getInstance = function getInstance(element) {
XhmikosR's avatar
XhmikosR committed
7604
7605
7606
      return Data.getData(element, DATA_KEY$9);
    };

XhmikosR's avatar
Dist    
XhmikosR committed
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
    _createClass(Tab, null, [{
      key: "VERSION",
      get: function get() {
        return VERSION$9;
      }
    }]);

    return Tab;
  }();
  /**
   * ------------------------------------------------------------------------
   * Data Api implementation
   * ------------------------------------------------------------------------
   */


XhmikosR's avatar
XhmikosR committed
7623
  EventHandler.on(document, Event$a.CLICK_DATA_API, Selector$9.DATA_TOGGLE, function (event) {
XhmikosR's avatar
Dist    
XhmikosR committed
7624
    event.preventDefault();
XhmikosR's avatar
XhmikosR committed
7625
7626
    var data = Data.getData(this, DATA_KEY$9) || new Tab(this);
    data.show();
XhmikosR's avatar
Dist    
XhmikosR committed
7627
  });
XhmikosR's avatar
XhmikosR committed
7628
  var $$a = getjQuery();
XhmikosR's avatar
Dist    
XhmikosR committed
7629
7630
7631
7632
  /**
   * ------------------------------------------------------------------------
   * jQuery
   * ------------------------------------------------------------------------
XhmikosR's avatar
XhmikosR committed
7633
   * add .tab to jQuery only if jQuery is present
XhmikosR's avatar
Dist    
XhmikosR committed
7634
7635
   */

7636
7637
  /* istanbul ignore if */

XhmikosR's avatar
XhmikosR committed
7638
7639
7640
7641
  if ($$a) {
    var JQUERY_NO_CONFLICT$9 = $$a.fn[NAME$9];
    $$a.fn[NAME$9] = Tab.jQueryInterface;
    $$a.fn[NAME$9].Constructor = Tab;
XhmikosR's avatar
Dist    
XhmikosR committed
7642

XhmikosR's avatar
XhmikosR committed
7643
7644
7645
    $$a.fn[NAME$9].noConflict = function () {
      $$a.fn[NAME$9] = JQUERY_NO_CONFLICT$9;
      return Tab.jQueryInterface;
XhmikosR's avatar
XhmikosR committed
7646
7647
    };
  }
Mark Otto's avatar
dist  
Mark Otto committed
7648
7649

  /**
XhmikosR's avatar
Dist    
XhmikosR committed
7650
7651
7652
   * ------------------------------------------------------------------------
   * Constants
   * ------------------------------------------------------------------------
Mark Otto's avatar
dist  
Mark Otto committed
7653
   */
Mark Otto's avatar
dist    
Mark Otto committed
7654

XhmikosR's avatar
Dist    
XhmikosR committed
7655
  var NAME$a = 'toast';
XhmikosR's avatar
XhmikosR committed
7656
  var VERSION$a = '4.3.1';
XhmikosR's avatar
Dist    
XhmikosR committed
7657
7658
  var DATA_KEY$a = 'bs.toast';
  var EVENT_KEY$a = "." + DATA_KEY$a;
XhmikosR's avatar
XhmikosR committed
7659
  var Event$b = {
XhmikosR's avatar
Dist    
XhmikosR committed
7660
7661
7662
7663
7664
7665
7666
7667
7668
    CLICK_DISMISS: "click.dismiss" + EVENT_KEY$a,
    HIDE: "hide" + EVENT_KEY$a,
    HIDDEN: "hidden" + EVENT_KEY$a,
    SHOW: "show" + EVENT_KEY$a,
    SHOWN: "shown" + EVENT_KEY$a
  };
  var ClassName$a = {
    FADE: 'fade',
    HIDE: 'hide',
Mark Otto's avatar
dist    
Mark Otto committed
7669
7670
    SHOW: 'show',
    SHOWING: 'showing'
XhmikosR's avatar
Dist    
XhmikosR committed
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
  };
  var DefaultType$7 = {
    animation: 'boolean',
    autohide: 'boolean',
    delay: 'number'
  };
  var Default$7 = {
    animation: true,
    autohide: true,
    delay: 500
  };
  var Selector$a = {
    DATA_DISMISS: '[data-dismiss="toast"]'
Mark Otto's avatar
dist    
Mark Otto committed
7684
7685
    /**
     * ------------------------------------------------------------------------
XhmikosR's avatar
Dist    
XhmikosR committed
7686
     * Class Definition
Mark Otto's avatar
dist    
Mark Otto committed
7687
7688
     * ------------------------------------------------------------------------
     */
XhmikosR's avatar
Dist    
XhmikosR committed
7689

XhmikosR's avatar
Dist    
XhmikosR committed
7690
  };
Mark Otto's avatar
dist  
Mark Otto committed
7691

XhmikosR's avatar
Dist    
XhmikosR committed
7692
7693
7694
7695
7696
7697
7698
  var Toast =
  /*#__PURE__*/
  function () {
    function Toast(element, config) {
      this._element = element;
      this._config = this._getConfig(config);
      this._timeout = null;
Mark Otto's avatar
dist  
Mark Otto committed
7699

XhmikosR's avatar
Dist    
XhmikosR committed
7700
      this._setListeners();
XhmikosR's avatar
XhmikosR committed
7701
7702

      Data.setData(element, DATA_KEY$a, this);
XhmikosR's avatar
Dist    
XhmikosR committed
7703
    } // Getters
Mark Otto's avatar
dist  
Mark Otto committed
7704
7705


XhmikosR's avatar
Dist    
XhmikosR committed
7706
    var _proto = Toast.prototype;
Mark Otto's avatar
dist  
Mark Otto committed
7707

XhmikosR's avatar
Dist    
XhmikosR committed
7708
7709
7710
    // Public
    _proto.show = function show() {
      var _this = this;
Mark Otto's avatar
dist  
Mark Otto committed
7711

Mark Otto's avatar
dist v5    
Mark Otto committed
7712
7713
7714
7715
7716
      var showEvent = EventHandler.trigger(this._element, Event$b.SHOW);

      if (showEvent.defaultPrevented) {
        return;
      }
Mark Otto's avatar
dist  
Mark Otto committed
7717

XhmikosR's avatar
Dist    
XhmikosR committed
7718
7719
7720
      if (this._config.animation) {
        this._element.classList.add(ClassName$a.FADE);
      }
Mark Otto's avatar
dist  
Mark Otto committed
7721

XhmikosR's avatar
Dist    
XhmikosR committed
7722
      var complete = function complete() {
Mark Otto's avatar
dist    
Mark Otto committed
7723
7724
7725
7726
        _this._element.classList.remove(ClassName$a.SHOWING);

        _this._element.classList.add(ClassName$a.SHOW);

XhmikosR's avatar
XhmikosR committed
7727
        EventHandler.trigger(_this._element, Event$b.SHOWN);
Mark Otto's avatar
dist  
Mark Otto committed
7728

XhmikosR's avatar
Dist    
XhmikosR committed
7729
        if (_this._config.autohide) {
XhmikosR's avatar
XhmikosR committed
7730
7731
7732
          _this._timeout = setTimeout(function () {
            _this.hide();
          }, _this._config.delay);
Mark Otto's avatar
dist    
Mark Otto committed
7733
        }
XhmikosR's avatar
Dist    
XhmikosR committed
7734
      };
Mark Otto's avatar
dist  
Mark Otto committed
7735

Mark Otto's avatar
dist    
Mark Otto committed
7736
7737
      this._element.classList.remove(ClassName$a.HIDE);

7738
7739
      reflow(this._element);

Mark Otto's avatar
dist    
Mark Otto committed
7740
      this._element.classList.add(ClassName$a.SHOWING);
Mark Otto's avatar
dist  
Mark Otto committed
7741

XhmikosR's avatar
Dist    
XhmikosR committed
7742
      if (this._config.animation) {
XhmikosR's avatar
XhmikosR committed
7743
7744
7745
        var transitionDuration = getTransitionDurationFromElement(this._element);
        EventHandler.one(this._element, TRANSITION_END, complete);
        emulateTransitionEnd(this._element, transitionDuration);
XhmikosR's avatar
Dist    
XhmikosR committed
7746
7747
7748
7749
      } else {
        complete();
      }
    };
Mark Otto's avatar
dist  
Mark Otto committed
7750

XhmikosR's avatar
XhmikosR committed
7751
    _proto.hide = function hide() {
XhmikosR's avatar
Dist    
XhmikosR committed
7752
      var _this2 = this;
Mark Otto's avatar
dist    
Mark Otto committed
7753

XhmikosR's avatar
Dist    
XhmikosR committed
7754
7755
7756
      if (!this._element.classList.contains(ClassName$a.SHOW)) {
        return;
      }
Mark Otto's avatar
dist  
Mark Otto committed
7757

Mark Otto's avatar
dist v5    
Mark Otto committed
7758
7759
7760
7761
7762
      var hideEvent = EventHandler.trigger(this._element, Event$b.HIDE);

      if (hideEvent.defaultPrevented) {
        return;
      }
XhmikosR's avatar
Dist    
XhmikosR committed
7763

XhmikosR's avatar
XhmikosR committed
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
      var complete = function complete() {
        _this2._element.classList.add(ClassName$a.HIDE);

        EventHandler.trigger(_this2._element, Event$b.HIDDEN);
      };

      this._element.classList.remove(ClassName$a.SHOW);

      if (this._config.animation) {
        var transitionDuration = getTransitionDurationFromElement(this._element);
        EventHandler.one(this._element, TRANSITION_END, complete);
        emulateTransitionEnd(this._element, transitionDuration);
XhmikosR's avatar
Dist    
XhmikosR committed
7776
      } else {
XhmikosR's avatar
XhmikosR committed
7777
        complete();
XhmikosR's avatar
Dist    
XhmikosR committed
7778
7779
      }
    };
XhmikosR's avatar
Dist    
XhmikosR committed
7780

XhmikosR's avatar
Dist    
XhmikosR committed
7781
7782
7783
    _proto.dispose = function dispose() {
      clearTimeout(this._timeout);
      this._timeout = null;
Mark Otto's avatar
dist  
Mark Otto committed
7784

XhmikosR's avatar
Dist    
XhmikosR committed
7785
7786
7787
      if (this._element.classList.contains(ClassName$a.SHOW)) {
        this._element.classList.remove(ClassName$a.SHOW);
      }
Mark Otto's avatar
dist  
Mark Otto committed
7788

XhmikosR's avatar
XhmikosR committed
7789
7790
      EventHandler.off(this._element, Event$b.CLICK_DISMISS);
      Data.removeData(this._element, DATA_KEY$a);
XhmikosR's avatar
Dist    
XhmikosR committed
7791
7792
      this._element = null;
      this._config = null;
Mark Otto's avatar
Mark Otto committed
7793
7794
    } // Private
    ;
Mark Otto's avatar
dist  
Mark Otto committed
7795

XhmikosR's avatar
Dist    
XhmikosR committed
7796
    _proto._getConfig = function _getConfig(config) {
7797
      config = _objectSpread2({}, Default$7, {}, Manipulator.getDataAttributes(this._element), {}, typeof config === 'object' && config ? config : {});
XhmikosR's avatar
XhmikosR committed
7798
      typeCheckConfig(NAME$a, config, this.constructor.DefaultType);
XhmikosR's avatar
Dist    
XhmikosR committed
7799
7800
7801
7802
7803
      return config;
    };

    _proto._setListeners = function _setListeners() {
      var _this3 = this;
Mark Otto's avatar
dist    
Mark Otto committed
7804

XhmikosR's avatar
XhmikosR committed
7805
      EventHandler.on(this._element, Event$b.CLICK_DISMISS, Selector$a.DATA_DISMISS, function () {
XhmikosR's avatar
XhmikosR committed
7806
        return _this3.hide();
XhmikosR's avatar
Dist    
XhmikosR committed
7807
      });
Mark Otto's avatar
Mark Otto committed
7808
7809
    } // Static
    ;
XhmikosR's avatar
Dist    
XhmikosR committed
7810

XhmikosR's avatar
XhmikosR committed
7811
    Toast.jQueryInterface = function jQueryInterface(config) {
XhmikosR's avatar
Dist    
XhmikosR committed
7812
      return this.each(function () {
XhmikosR's avatar
XhmikosR committed
7813
        var data = Data.getData(this, DATA_KEY$a);
Mark Otto's avatar
dist  
Mark Otto committed
7814

XhmikosR's avatar
Dist    
XhmikosR committed
7815
        var _config = typeof config === 'object' && config;
Mark Otto's avatar
dist  
Mark Otto committed
7816

XhmikosR's avatar
Dist    
XhmikosR committed
7817
7818
7819
        if (!data) {
          data = new Toast(this, _config);
        }
Mark Otto's avatar
dist  
Mark Otto committed
7820

XhmikosR's avatar
Dist    
XhmikosR committed
7821
7822
7823
        if (typeof config === 'string') {
          if (typeof data[config] === 'undefined') {
            throw new TypeError("No method named \"" + config + "\"");
Mark Otto's avatar
dist  
Mark Otto committed
7824
          }
Mark Otto's avatar
dist    
Mark Otto committed
7825

XhmikosR's avatar
Dist    
XhmikosR committed
7826
          data[config](this);
XhmikosR's avatar
Dist    
XhmikosR committed
7827
        }
XhmikosR's avatar
Dist    
XhmikosR committed
7828
7829
      });
    };
Mark Otto's avatar
dist  
Mark Otto committed
7830

XhmikosR's avatar
XhmikosR committed
7831
    Toast.getInstance = function getInstance(element) {
XhmikosR's avatar
XhmikosR committed
7832
7833
7834
      return Data.getData(element, DATA_KEY$a);
    };

XhmikosR's avatar
Dist    
XhmikosR committed
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
    _createClass(Toast, null, [{
      key: "VERSION",
      get: function get() {
        return VERSION$a;
      }
    }, {
      key: "DefaultType",
      get: function get() {
        return DefaultType$7;
      }
Mark Otto's avatar
Mark Otto committed
7845
7846
7847
7848
7849
    }, {
      key: "Default",
      get: function get() {
        return Default$7;
      }
XhmikosR's avatar
Dist    
XhmikosR committed
7850
    }]);
Mark Otto's avatar
dist  
Mark Otto committed
7851

XhmikosR's avatar
Dist    
XhmikosR committed
7852
7853
    return Toast;
  }();
XhmikosR's avatar
XhmikosR committed
7854
7855

  var $$b = getjQuery();
XhmikosR's avatar
Dist    
XhmikosR committed
7856
7857
7858
7859
  /**
   * ------------------------------------------------------------------------
   * jQuery
   * ------------------------------------------------------------------------
XhmikosR's avatar
XhmikosR committed
7860
   *  add .toast to jQuery only if jQuery is present
XhmikosR's avatar
Dist    
XhmikosR committed
7861
   */
XhmikosR's avatar
Dist    
XhmikosR committed
7862

7863
7864
  /* istanbul ignore if */

XhmikosR's avatar
XhmikosR committed
7865
7866
7867
7868
  if ($$b) {
    var JQUERY_NO_CONFLICT$a = $$b.fn[NAME$a];
    $$b.fn[NAME$a] = Toast.jQueryInterface;
    $$b.fn[NAME$a].Constructor = Toast;
Mark Otto's avatar
dist    
Mark Otto committed
7869

XhmikosR's avatar
XhmikosR committed
7870
7871
7872
    $$b.fn[NAME$a].noConflict = function () {
      $$b.fn[NAME$a] = JQUERY_NO_CONFLICT$a;
      return Toast.jQueryInterface;
XhmikosR's avatar
XhmikosR committed
7873
7874
    };
  }
Mark Otto's avatar
dist  
Mark Otto committed
7875

Mark Otto's avatar
dist    
Mark Otto committed
7876
7877
  /**
   * --------------------------------------------------------------------------
XhmikosR's avatar
Dist.    
XhmikosR committed
7878
   * Bootstrap (v4.3.1): index.umd.js
Mark Otto's avatar
dist    
Mark Otto committed
7879
7880
7881
   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
   * --------------------------------------------------------------------------
   */
XhmikosR's avatar
Dist.    
XhmikosR committed
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
  var index_umd = {
    Alert: Alert,
    Button: Button,
    Carousel: Carousel,
    Collapse: Collapse,
    Dropdown: Dropdown,
    Modal: Modal,
    Popover: Popover,
    ScrollSpy: ScrollSpy,
    Tab: Tab,
    Toast: Toast,
    Tooltip: Tooltip
  };
Mark Otto's avatar
dist  
Mark Otto committed
7895

XhmikosR's avatar
Dist.    
XhmikosR committed
7896
  return index_umd;
Mark Otto's avatar
dist  
Mark Otto committed
7897

Mark Otto's avatar
Mark Otto committed
7898
}));
Mark Otto's avatar
dist    
Mark Otto committed
7899
//# sourceMappingURL=bootstrap.bundle.js.map
For faster browsing, not all history is shown. View entire blame