bootstrap.bundle.js 243 KB
Newer Older
XhmikosR's avatar
Dist    
XhmikosR committed
7001
        var _config = typeof config === 'object' ? config : null;
Mark Otto's avatar
dist    
Mark Otto committed
7002

XhmikosR's avatar
Dist    
XhmikosR committed
7003
7004
7005
        if (!data && /dispose|hide/.test(config)) {
          return;
        }
Mark Otto's avatar
dist  
Mark Otto committed
7006

XhmikosR's avatar
Dist    
XhmikosR committed
7007
7008
        if (!data) {
          data = new Popover(this, _config);
XhmikosR's avatar
XhmikosR committed
7009
          Data.setData(this, DATA_KEY$7, data);
XhmikosR's avatar
Dist    
XhmikosR committed
7010
        }
Mark Otto's avatar
dist  
Mark Otto committed
7011

XhmikosR's avatar
Dist    
XhmikosR committed
7012
7013
7014
        if (typeof config === 'string') {
          if (typeof data[config] === 'undefined') {
            throw new TypeError("No method named \"" + config + "\"");
Mark Otto's avatar
dist  
Mark Otto committed
7015
          }
Mark Otto's avatar
dist    
Mark Otto committed
7016

XhmikosR's avatar
Dist    
XhmikosR committed
7017
          data[config]();
Mark Otto's avatar
dist    
Mark Otto committed
7018
        }
XhmikosR's avatar
Dist    
XhmikosR committed
7019
7020
      });
    };
Mark Otto's avatar
dist  
Mark Otto committed
7021

XhmikosR's avatar
XhmikosR committed
7022
    Popover.getInstance = function getInstance(element) {
XhmikosR's avatar
XhmikosR committed
7023
7024
7025
      return Data.getData(element, DATA_KEY$7);
    };

XhmikosR's avatar
Dist    
XhmikosR committed
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
    _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
7050
        return Event$8;
XhmikosR's avatar
Dist    
XhmikosR committed
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
      }
    }, {
      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
7063

XhmikosR's avatar
Dist    
XhmikosR committed
7064
7065
    return Popover;
  }(Tooltip);
XhmikosR's avatar
XhmikosR committed
7066
7067

  var $$8 = getjQuery();
XhmikosR's avatar
Dist    
XhmikosR committed
7068
7069
7070
7071
7072
  /**
   * ------------------------------------------------------------------------
   * jQuery
   * ------------------------------------------------------------------------
   */
Mark Otto's avatar
dist    
Mark Otto committed
7073

7074
7075
  /* istanbul ignore if */

XhmikosR's avatar
XhmikosR committed
7076
7077
7078
7079
  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
7080

XhmikosR's avatar
XhmikosR committed
7081
7082
7083
    $$8.fn[NAME$7].noConflict = function () {
      $$8.fn[NAME$7] = JQUERY_NO_CONFLICT$7;
      return Popover.jQueryInterface;
XhmikosR's avatar
XhmikosR committed
7084
7085
    };
  }
Mark Otto's avatar
dist  
Mark Otto committed
7086

XhmikosR's avatar
Dist    
XhmikosR committed
7087
7088
7089
7090
7091
7092
7093
  /**
   * ------------------------------------------------------------------------
   * Constants
   * ------------------------------------------------------------------------
   */

  var NAME$8 = 'scrollspy';
XhmikosR's avatar
XhmikosR committed
7094
  var VERSION$8 = '4.3.1';
XhmikosR's avatar
Dist    
XhmikosR committed
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
  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
7108
  var Event$9 = {
XhmikosR's avatar
Dist    
XhmikosR committed
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
    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'
  };
XhmikosR's avatar
XhmikosR committed
7130
7131
7132
7133
7134
  /**
   * ------------------------------------------------------------------------
   * Class Definition
   * ------------------------------------------------------------------------
   */
XhmikosR's avatar
Dist    
XhmikosR committed
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144

  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
7145
      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
7146
7147
7148
7149
      this._offsets = [];
      this._targets = [];
      this._activeTarget = null;
      this._scrollHeight = 0;
XhmikosR's avatar
XhmikosR committed
7150
      EventHandler.on(this._scrollElement, Event$9.SCROLL, function (event) {
XhmikosR's avatar
Dist    
XhmikosR committed
7151
7152
7153
7154
7155
        return _this._process(event);
      });
      this.refresh();

      this._process();
XhmikosR's avatar
XhmikosR committed
7156
7157

      Data.setData(element, DATA_KEY$8, this);
XhmikosR's avatar
Dist    
XhmikosR committed
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
    } // 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
7173
      var targets = makeArray(SelectorEngine.find(this._selector));
XhmikosR's avatar
Dist    
XhmikosR committed
7174
7175
      targets.map(function (element) {
        var target;
XhmikosR's avatar
XhmikosR committed
7176
        var targetSelector = getSelectorFromElement(element);
XhmikosR's avatar
Dist    
XhmikosR committed
7177
7178

        if (targetSelector) {
XhmikosR's avatar
XhmikosR committed
7179
          target = SelectorEngine.findOne(targetSelector);
XhmikosR's avatar
Dist    
XhmikosR committed
7180
7181
7182
7183
7184
7185
        }

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

          if (targetBCR.width || targetBCR.height) {
XhmikosR's avatar
XhmikosR committed
7186
            return [Manipulator[offsetMethod](target).top + offsetBase, targetSelector];
XhmikosR's avatar
Dist    
XhmikosR committed
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
          }
        }

        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
7200
    };
XhmikosR's avatar
Dist    
XhmikosR committed
7201
7202

    _proto.dispose = function dispose() {
XhmikosR's avatar
XhmikosR committed
7203
7204
      Data.removeData(this._element, DATA_KEY$8);
      EventHandler.off(this._scrollElement, EVENT_KEY$8);
XhmikosR's avatar
Dist    
XhmikosR committed
7205
7206
7207
7208
7209
7210
7211
7212
      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
7213
7214
    } // Private
    ;
XhmikosR's avatar
Dist    
XhmikosR committed
7215
7216

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

      if (typeof config.target !== 'string') {
XhmikosR's avatar
XhmikosR committed
7220
        var id = config.target.id;
XhmikosR's avatar
Dist    
XhmikosR committed
7221
7222

        if (!id) {
XhmikosR's avatar
XhmikosR committed
7223
7224
          id = getUID(NAME$8);
          config.target.id = id;
XhmikosR's avatar
Dist    
XhmikosR committed
7225
7226
7227
7228
7229
        }

        config.target = "#" + id;
      }

XhmikosR's avatar
XhmikosR committed
7230
      typeCheckConfig(NAME$8, config, DefaultType$6);
XhmikosR's avatar
Dist    
XhmikosR committed
7231
      return config;
Mark Otto's avatar
dist    
Mark Otto committed
7232
    };
XhmikosR's avatar
Dist    
XhmikosR committed
7233
7234
7235

    _proto._getScrollTop = function _getScrollTop() {
      return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop;
Mark Otto's avatar
dist    
Mark Otto committed
7236
    };
XhmikosR's avatar
Dist    
XhmikosR committed
7237
7238
7239

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

XhmikosR's avatar
Dist    
XhmikosR committed
7242
7243
    _proto._getOffsetHeight = function _getOffsetHeight() {
      return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height;
Mark Otto's avatar
dist    
Mark Otto committed
7244
    };
Mark Otto's avatar
dist  
Mark Otto committed
7245

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

XhmikosR's avatar
Dist    
XhmikosR committed
7249
7250
7251
7252
7253
      var scrollHeight = this._getScrollHeight();

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

      if (this._scrollHeight !== scrollHeight) {
Mark Otto's avatar
dist    
Mark Otto committed
7254
        this.refresh();
XhmikosR's avatar
Dist    
XhmikosR committed
7255
      }
Mark Otto's avatar
dist    
Mark Otto committed
7256

XhmikosR's avatar
Dist    
XhmikosR committed
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
      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
7290

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

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

XhmikosR's avatar
XhmikosR committed
7297
7298
7299
      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
7300
7301
      } else {
        // Set triggered link as active
XhmikosR's avatar
XhmikosR committed
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
        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
7316
      }
Mark Otto's avatar
dist    
Mark Otto committed
7317

XhmikosR's avatar
XhmikosR committed
7318
      EventHandler.trigger(this._scrollElement, Event$9.ACTIVATE, {
XhmikosR's avatar
Dist    
XhmikosR committed
7319
7320
7321
        relatedTarget: target
      });
    };
Mark Otto's avatar
dist    
Mark Otto committed
7322

XhmikosR's avatar
Dist    
XhmikosR committed
7323
    _proto._clear = function _clear() {
XhmikosR's avatar
XhmikosR committed
7324
      makeArray(SelectorEngine.find(this._selector)).filter(function (node) {
XhmikosR's avatar
Dist    
XhmikosR committed
7325
7326
7327
7328
        return node.classList.contains(ClassName$8.ACTIVE);
      }).forEach(function (node) {
        return node.classList.remove(ClassName$8.ACTIVE);
      });
Mark Otto's avatar
Mark Otto committed
7329
7330
    } // Static
    ;
Mark Otto's avatar
dist  
Mark Otto committed
7331

XhmikosR's avatar
XhmikosR committed
7332
    ScrollSpy.jQueryInterface = function jQueryInterface(config) {
XhmikosR's avatar
Dist    
XhmikosR committed
7333
      return this.each(function () {
XhmikosR's avatar
XhmikosR committed
7334
        var data = Data.getData(this, DATA_KEY$8);
Mark Otto's avatar
dist  
Mark Otto committed
7335

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

XhmikosR's avatar
Dist    
XhmikosR committed
7338
7339
7340
        if (!data) {
          data = new ScrollSpy(this, _config);
        }
Mark Otto's avatar
dist  
Mark Otto committed
7341

XhmikosR's avatar
Dist    
XhmikosR committed
7342
7343
7344
        if (typeof config === 'string') {
          if (typeof data[config] === 'undefined') {
            throw new TypeError("No method named \"" + config + "\"");
Mark Otto's avatar
dist    
Mark Otto committed
7345
          }
Mark Otto's avatar
dist    
Mark Otto committed
7346

XhmikosR's avatar
Dist    
XhmikosR committed
7347
          data[config]();
Mark Otto's avatar
dist  
Mark Otto committed
7348
        }
XhmikosR's avatar
Dist    
XhmikosR committed
7349
7350
      });
    };
Mark Otto's avatar
dist    
Mark Otto committed
7351

XhmikosR's avatar
XhmikosR committed
7352
    ScrollSpy.getInstance = function getInstance(element) {
XhmikosR's avatar
XhmikosR committed
7353
7354
7355
      return Data.getData(element, DATA_KEY$8);
    };

XhmikosR's avatar
Dist    
XhmikosR committed
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
    _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
7367

XhmikosR's avatar
Dist    
XhmikosR committed
7368
7369
7370
7371
7372
7373
7374
    return ScrollSpy;
  }();
  /**
   * ------------------------------------------------------------------------
   * Data Api implementation
   * ------------------------------------------------------------------------
   */
Mark Otto's avatar
dist  
Mark Otto committed
7375
7376


XhmikosR's avatar
XhmikosR committed
7377
7378
7379
7380
  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
7381
  });
XhmikosR's avatar
XhmikosR committed
7382
  var $$9 = getjQuery();
XhmikosR's avatar
Dist    
XhmikosR committed
7383
7384
7385
7386
7387
  /**
   * ------------------------------------------------------------------------
   * jQuery
   * ------------------------------------------------------------------------
   */
Mark Otto's avatar
dist    
Mark Otto committed
7388

7389
7390
  /* istanbul ignore if */

XhmikosR's avatar
XhmikosR committed
7391
7392
7393
7394
  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
7395

XhmikosR's avatar
XhmikosR committed
7396
7397
7398
    $$9.fn[NAME$8].noConflict = function () {
      $$9.fn[NAME$8] = JQUERY_NO_CONFLICT$8;
      return ScrollSpy.jQueryInterface;
XhmikosR's avatar
XhmikosR committed
7399
7400
    };
  }
Mark Otto's avatar
dist  
Mark Otto committed
7401

XhmikosR's avatar
Dist    
XhmikosR committed
7402
7403
7404
7405
7406
  /**
   * ------------------------------------------------------------------------
   * Constants
   * ------------------------------------------------------------------------
   */
Mark Otto's avatar
dist    
Mark Otto committed
7407

XhmikosR's avatar
Dist    
XhmikosR committed
7408
  var NAME$9 = 'tab';
XhmikosR's avatar
XhmikosR committed
7409
  var VERSION$9 = '4.3.1';
XhmikosR's avatar
Dist    
XhmikosR committed
7410
7411
7412
  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
7413
  var Event$a = {
XhmikosR's avatar
Dist    
XhmikosR committed
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
    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
7431
    ACTIVE_UL: ':scope > li > .active',
XhmikosR's avatar
Dist    
XhmikosR committed
7432
7433
    DATA_TOGGLE: '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',
    DROPDOWN_TOGGLE: '.dropdown-toggle',
XhmikosR's avatar
XhmikosR committed
7434
    DROPDOWN_ACTIVE_CHILD: ':scope > .dropdown-menu .active'
XhmikosR's avatar
Dist    
XhmikosR committed
7435
  };
XhmikosR's avatar
XhmikosR committed
7436
7437
7438
7439
7440
  /**
   * ------------------------------------------------------------------------
   * Class Definition
   * ------------------------------------------------------------------------
   */
Mark Otto's avatar
dist    
Mark Otto committed
7441

XhmikosR's avatar
Dist    
XhmikosR committed
7442
7443
7444
7445
7446
  var Tab =
  /*#__PURE__*/
  function () {
    function Tab(element) {
      this._element = element;
XhmikosR's avatar
XhmikosR committed
7447
      Data.setData(this._element, DATA_KEY$9, this);
XhmikosR's avatar
Dist    
XhmikosR committed
7448
    } // Getters
Mark Otto's avatar
dist  
Mark Otto committed
7449

Mark Otto's avatar
dist    
Mark Otto committed
7450

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

XhmikosR's avatar
Dist    
XhmikosR committed
7453
7454
7455
    // Public
    _proto.show = function show() {
      var _this = this;
Mark Otto's avatar
dist  
Mark Otto committed
7456

XhmikosR's avatar
XhmikosR committed
7457
      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
7458
7459
        return;
      }
Mark Otto's avatar
dist  
Mark Otto committed
7460

XhmikosR's avatar
Dist    
XhmikosR committed
7461
      var previous;
XhmikosR's avatar
XhmikosR committed
7462
      var target = getElementFromSelector(this._element);
XhmikosR's avatar
XhmikosR committed
7463
      var listElement = SelectorEngine.closest(this._element, Selector$9.NAV_LIST_GROUP);
XhmikosR's avatar
Dist    
XhmikosR committed
7464
7465

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

XhmikosR's avatar
XhmikosR committed
7471
      var hideEvent = null;
Mark Otto's avatar
dist    
Mark Otto committed
7472

XhmikosR's avatar
Dist    
XhmikosR committed
7473
      if (previous) {
XhmikosR's avatar
XhmikosR committed
7474
7475
7476
        hideEvent = EventHandler.trigger(previous, Event$a.HIDE, {
          relatedTarget: this._element
        });
XhmikosR's avatar
Dist    
XhmikosR committed
7477
      }
Mark Otto's avatar
dist    
Mark Otto committed
7478

XhmikosR's avatar
XhmikosR committed
7479
7480
7481
      var showEvent = EventHandler.trigger(this._element, Event$a.SHOW, {
        relatedTarget: previous
      });
Mark Otto's avatar
dist  
Mark Otto committed
7482

XhmikosR's avatar
XhmikosR committed
7483
      if (showEvent.defaultPrevented || hideEvent !== null && hideEvent.defaultPrevented) {
XhmikosR's avatar
Dist    
XhmikosR committed
7484
7485
        return;
      }
Mark Otto's avatar
dist    
Mark Otto committed
7486

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

XhmikosR's avatar
Dist    
XhmikosR committed
7489
      var complete = function complete() {
XhmikosR's avatar
XhmikosR committed
7490
        EventHandler.trigger(previous, Event$a.HIDDEN, {
XhmikosR's avatar
Dist    
XhmikosR committed
7491
7492
          relatedTarget: _this._element
        });
XhmikosR's avatar
XhmikosR committed
7493
        EventHandler.trigger(_this._element, Event$a.SHOWN, {
XhmikosR's avatar
Dist    
XhmikosR committed
7494
          relatedTarget: previous
Mark Otto's avatar
dist    
Mark Otto committed
7495
7496
        });
      };
Mark Otto's avatar
dist  
Mark Otto committed
7497

XhmikosR's avatar
Dist    
XhmikosR committed
7498
7499
7500
7501
7502
7503
      if (target) {
        this._activate(target, target.parentNode, complete);
      } else {
        complete();
      }
    };
Mark Otto's avatar
dist  
Mark Otto committed
7504

XhmikosR's avatar
Dist    
XhmikosR committed
7505
    _proto.dispose = function dispose() {
XhmikosR's avatar
XhmikosR committed
7506
      Data.removeData(this._element, DATA_KEY$9);
XhmikosR's avatar
Dist    
XhmikosR committed
7507
      this._element = null;
Mark Otto's avatar
Mark Otto committed
7508
7509
    } // Private
    ;
Mark Otto's avatar
dist    
Mark Otto committed
7510

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

XhmikosR's avatar
XhmikosR committed
7514
      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
7515
      var active = activeElements[0];
XhmikosR's avatar
XhmikosR committed
7516
      var isTransitioning = callback && active && active.classList.contains(ClassName$9.FADE);
XhmikosR's avatar
Dist    
XhmikosR committed
7517
7518
7519

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

XhmikosR's avatar
Dist    
XhmikosR committed
7522
      if (active && isTransitioning) {
XhmikosR's avatar
XhmikosR committed
7523
7524
7525
7526
        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
7527
7528
7529
7530
7531
7532
7533
      } else {
        complete();
      }
    };

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

        if (dropdownChild) {
XhmikosR's avatar
XhmikosR committed
7538
          dropdownChild.classList.remove(ClassName$9.ACTIVE);
Mark Otto's avatar
dist  
Mark Otto committed
7539
        }
XhmikosR's avatar
Dist    
XhmikosR committed
7540
7541
7542

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

XhmikosR's avatar
XhmikosR committed
7546
      element.classList.add(ClassName$9.ACTIVE);
XhmikosR's avatar
Dist    
XhmikosR committed
7547
7548
7549
7550

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

XhmikosR's avatar
XhmikosR committed
7552
      reflow(element);
Mark Otto's avatar
Mark Otto committed
7553
7554
7555
7556

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

XhmikosR's avatar
XhmikosR committed
7558
7559
      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
7560

XhmikosR's avatar
Dist    
XhmikosR committed
7561
        if (dropdownElement) {
XhmikosR's avatar
XhmikosR committed
7562
7563
7564
          makeArray(SelectorEngine.find(Selector$9.DROPDOWN_TOGGLE)).forEach(function (dropdown) {
            return dropdown.classList.add(ClassName$9.ACTIVE);
          });
XhmikosR's avatar
Dist    
XhmikosR committed
7565
        }
Mark Otto's avatar
dist  
Mark Otto committed
7566

XhmikosR's avatar
Dist    
XhmikosR committed
7567
        element.setAttribute('aria-expanded', true);
Mark Otto's avatar
dist    
Mark Otto committed
7568
      }
Mark Otto's avatar
dist    
Mark Otto committed
7569

XhmikosR's avatar
Dist    
XhmikosR committed
7570
7571
7572
      if (callback) {
        callback();
      }
Mark Otto's avatar
Mark Otto committed
7573
7574
    } // Static
    ;
Mark Otto's avatar
dist  
Mark Otto committed
7575

XhmikosR's avatar
XhmikosR committed
7576
    Tab.jQueryInterface = function jQueryInterface(config) {
XhmikosR's avatar
Dist    
XhmikosR committed
7577
      return this.each(function () {
XhmikosR's avatar
XhmikosR committed
7578
        var data = Data.getData(this, DATA_KEY$9) || new Tab(this);
XhmikosR's avatar
Dist    
XhmikosR committed
7579
7580
7581
7582
7583
7584
7585
7586
7587

        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
7588
    };
Mark Otto's avatar
dist  
Mark Otto committed
7589

XhmikosR's avatar
XhmikosR committed
7590
    Tab.getInstance = function getInstance(element) {
XhmikosR's avatar
XhmikosR committed
7591
7592
7593
      return Data.getData(element, DATA_KEY$9);
    };

XhmikosR's avatar
Dist    
XhmikosR committed
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
    _createClass(Tab, null, [{
      key: "VERSION",
      get: function get() {
        return VERSION$9;
      }
    }]);

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


XhmikosR's avatar
XhmikosR committed
7610
  EventHandler.on(document, Event$a.CLICK_DATA_API, Selector$9.DATA_TOGGLE, function (event) {
XhmikosR's avatar
Dist    
XhmikosR committed
7611
    event.preventDefault();
XhmikosR's avatar
XhmikosR committed
7612
7613
    var data = Data.getData(this, DATA_KEY$9) || new Tab(this);
    data.show();
XhmikosR's avatar
Dist    
XhmikosR committed
7614
  });
XhmikosR's avatar
XhmikosR committed
7615
  var $$a = getjQuery();
XhmikosR's avatar
Dist    
XhmikosR committed
7616
7617
7618
7619
  /**
   * ------------------------------------------------------------------------
   * jQuery
   * ------------------------------------------------------------------------
XhmikosR's avatar
XhmikosR committed
7620
   * add .tab to jQuery only if jQuery is present
XhmikosR's avatar
Dist    
XhmikosR committed
7621
7622
   */

7623
7624
  /* istanbul ignore if */

XhmikosR's avatar
XhmikosR committed
7625
7626
7627
7628
  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
7629

XhmikosR's avatar
XhmikosR committed
7630
7631
7632
    $$a.fn[NAME$9].noConflict = function () {
      $$a.fn[NAME$9] = JQUERY_NO_CONFLICT$9;
      return Tab.jQueryInterface;
XhmikosR's avatar
XhmikosR committed
7633
7634
    };
  }
Mark Otto's avatar
dist  
Mark Otto committed
7635
7636

  /**
XhmikosR's avatar
Dist    
XhmikosR committed
7637
7638
7639
   * ------------------------------------------------------------------------
   * Constants
   * ------------------------------------------------------------------------
Mark Otto's avatar
dist  
Mark Otto committed
7640
   */
Mark Otto's avatar
dist    
Mark Otto committed
7641

XhmikosR's avatar
Dist    
XhmikosR committed
7642
  var NAME$a = 'toast';
XhmikosR's avatar
XhmikosR committed
7643
  var VERSION$a = '4.3.1';
XhmikosR's avatar
Dist    
XhmikosR committed
7644
7645
  var DATA_KEY$a = 'bs.toast';
  var EVENT_KEY$a = "." + DATA_KEY$a;
XhmikosR's avatar
XhmikosR committed
7646
  var Event$b = {
XhmikosR's avatar
Dist    
XhmikosR committed
7647
7648
7649
7650
7651
7652
7653
7654
7655
    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
7656
7657
    SHOW: 'show',
    SHOWING: 'showing'
XhmikosR's avatar
Dist    
XhmikosR committed
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
  };
  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"]'
  };
XhmikosR's avatar
XhmikosR committed
7672
7673
7674
7675
7676
  /**
   * ------------------------------------------------------------------------
   * Class Definition
   * ------------------------------------------------------------------------
   */
Mark Otto's avatar
dist  
Mark Otto committed
7677

XhmikosR's avatar
Dist    
XhmikosR committed
7678
7679
7680
7681
7682
7683
7684
  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
7685

XhmikosR's avatar
Dist    
XhmikosR committed
7686
      this._setListeners();
XhmikosR's avatar
XhmikosR committed
7687
7688

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


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

XhmikosR's avatar
Dist    
XhmikosR committed
7694
7695
7696
    // Public
    _proto.show = function show() {
      var _this = this;
Mark Otto's avatar
dist  
Mark Otto committed
7697

Mark Otto's avatar
dist v5    
Mark Otto committed
7698
7699
7700
7701
7702
      var showEvent = EventHandler.trigger(this._element, Event$b.SHOW);

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

XhmikosR's avatar
Dist    
XhmikosR committed
7704
7705
7706
      if (this._config.animation) {
        this._element.classList.add(ClassName$a.FADE);
      }
Mark Otto's avatar
dist  
Mark Otto committed
7707

XhmikosR's avatar
Dist    
XhmikosR committed
7708
      var complete = function complete() {
Mark Otto's avatar
dist    
Mark Otto committed
7709
7710
7711
7712
        _this._element.classList.remove(ClassName$a.SHOWING);

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

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

XhmikosR's avatar
Dist    
XhmikosR committed
7715
        if (_this._config.autohide) {
XhmikosR's avatar
XhmikosR committed
7716
7717
7718
          _this._timeout = setTimeout(function () {
            _this.hide();
          }, _this._config.delay);
Mark Otto's avatar
dist    
Mark Otto committed
7719
        }
XhmikosR's avatar
Dist    
XhmikosR committed
7720
      };
Mark Otto's avatar
dist  
Mark Otto committed
7721

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

7724
7725
      reflow(this._element);

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

XhmikosR's avatar
Dist    
XhmikosR committed
7728
      if (this._config.animation) {
XhmikosR's avatar
XhmikosR committed
7729
7730
7731
        var transitionDuration = getTransitionDurationFromElement(this._element);
        EventHandler.one(this._element, TRANSITION_END, complete);
        emulateTransitionEnd(this._element, transitionDuration);
XhmikosR's avatar
Dist    
XhmikosR committed
7732
7733
7734
7735
      } else {
        complete();
      }
    };
Mark Otto's avatar
dist  
Mark Otto committed
7736

XhmikosR's avatar
XhmikosR committed
7737
    _proto.hide = function hide() {
XhmikosR's avatar
Dist    
XhmikosR committed
7738
      var _this2 = this;
Mark Otto's avatar
dist    
Mark Otto committed
7739

XhmikosR's avatar
Dist    
XhmikosR committed
7740
7741
7742
      if (!this._element.classList.contains(ClassName$a.SHOW)) {
        return;
      }
Mark Otto's avatar
dist  
Mark Otto committed
7743

Mark Otto's avatar
dist v5    
Mark Otto committed
7744
7745
7746
7747
7748
      var hideEvent = EventHandler.trigger(this._element, Event$b.HIDE);

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

XhmikosR's avatar
XhmikosR committed
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
      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
7762
      } else {
XhmikosR's avatar
XhmikosR committed
7763
        complete();
XhmikosR's avatar
Dist    
XhmikosR committed
7764
7765
      }
    };
XhmikosR's avatar
Dist    
XhmikosR committed
7766

XhmikosR's avatar
Dist    
XhmikosR committed
7767
7768
7769
    _proto.dispose = function dispose() {
      clearTimeout(this._timeout);
      this._timeout = null;
Mark Otto's avatar
dist  
Mark Otto committed
7770

XhmikosR's avatar
Dist    
XhmikosR committed
7771
7772
7773
      if (this._element.classList.contains(ClassName$a.SHOW)) {
        this._element.classList.remove(ClassName$a.SHOW);
      }
Mark Otto's avatar
dist  
Mark Otto committed
7774

XhmikosR's avatar
XhmikosR committed
7775
7776
      EventHandler.off(this._element, Event$b.CLICK_DISMISS);
      Data.removeData(this._element, DATA_KEY$a);
XhmikosR's avatar
Dist    
XhmikosR committed
7777
7778
      this._element = null;
      this._config = null;
Mark Otto's avatar
Mark Otto committed
7779
7780
    } // Private
    ;
Mark Otto's avatar
dist  
Mark Otto committed
7781

XhmikosR's avatar
Dist    
XhmikosR committed
7782
    _proto._getConfig = function _getConfig(config) {
7783
      config = _objectSpread2({}, Default$7, {}, Manipulator.getDataAttributes(this._element), {}, typeof config === 'object' && config ? config : {});
XhmikosR's avatar
XhmikosR committed
7784
      typeCheckConfig(NAME$a, config, this.constructor.DefaultType);
XhmikosR's avatar
Dist    
XhmikosR committed
7785
7786
7787
7788
7789
      return config;
    };

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

XhmikosR's avatar
XhmikosR committed
7791
      EventHandler.on(this._element, Event$b.CLICK_DISMISS, Selector$a.DATA_DISMISS, function () {
XhmikosR's avatar
XhmikosR committed
7792
        return _this3.hide();
XhmikosR's avatar
Dist    
XhmikosR committed
7793
      });
Mark Otto's avatar
Mark Otto committed
7794
7795
    } // Static
    ;
XhmikosR's avatar
Dist    
XhmikosR committed
7796

XhmikosR's avatar
XhmikosR committed
7797
    Toast.jQueryInterface = function jQueryInterface(config) {
XhmikosR's avatar
Dist    
XhmikosR committed
7798
      return this.each(function () {
XhmikosR's avatar
XhmikosR committed
7799
        var data = Data.getData(this, DATA_KEY$a);
Mark Otto's avatar
dist  
Mark Otto committed
7800

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

XhmikosR's avatar
Dist    
XhmikosR committed
7803
7804
7805
        if (!data) {
          data = new Toast(this, _config);
        }
Mark Otto's avatar
dist  
Mark Otto committed
7806

XhmikosR's avatar
Dist    
XhmikosR committed
7807
7808
7809
        if (typeof config === 'string') {
          if (typeof data[config] === 'undefined') {
            throw new TypeError("No method named \"" + config + "\"");
Mark Otto's avatar
dist  
Mark Otto committed
7810
          }
Mark Otto's avatar
dist    
Mark Otto committed
7811

XhmikosR's avatar
Dist    
XhmikosR committed
7812
          data[config](this);
XhmikosR's avatar
Dist    
XhmikosR committed
7813
        }
XhmikosR's avatar
Dist    
XhmikosR committed
7814
7815
      });
    };
Mark Otto's avatar
dist  
Mark Otto committed
7816

XhmikosR's avatar
XhmikosR committed
7817
    Toast.getInstance = function getInstance(element) {
XhmikosR's avatar
XhmikosR committed
7818
7819
7820
      return Data.getData(element, DATA_KEY$a);
    };

XhmikosR's avatar
Dist    
XhmikosR committed
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
    _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
7831
7832
7833
7834
7835
    }, {
      key: "Default",
      get: function get() {
        return Default$7;
      }
XhmikosR's avatar
Dist    
XhmikosR committed
7836
    }]);
Mark Otto's avatar
dist  
Mark Otto committed
7837

XhmikosR's avatar
Dist    
XhmikosR committed
7838
7839
    return Toast;
  }();
XhmikosR's avatar
XhmikosR committed
7840
7841

  var $$b = getjQuery();
XhmikosR's avatar
Dist    
XhmikosR committed
7842
7843
7844
7845
  /**
   * ------------------------------------------------------------------------
   * jQuery
   * ------------------------------------------------------------------------
XhmikosR's avatar
XhmikosR committed
7846
   *  add .toast to jQuery only if jQuery is present
XhmikosR's avatar
Dist    
XhmikosR committed
7847
   */
XhmikosR's avatar
Dist    
XhmikosR committed
7848

7849
7850
  /* istanbul ignore if */

XhmikosR's avatar
XhmikosR committed
7851
7852
7853
7854
  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
7855

XhmikosR's avatar
XhmikosR committed
7856
7857
7858
    $$b.fn[NAME$a].noConflict = function () {
      $$b.fn[NAME$a] = JQUERY_NO_CONFLICT$a;
      return Toast.jQueryInterface;
XhmikosR's avatar
XhmikosR committed
7859
7860
    };
  }
Mark Otto's avatar
dist  
Mark Otto committed
7861

Mark Otto's avatar
dist    
Mark Otto committed
7862
7863
  /**
   * --------------------------------------------------------------------------
XhmikosR's avatar
Dist.    
XhmikosR committed
7864
   * Bootstrap (v4.3.1): index.umd.js
Mark Otto's avatar
dist    
Mark Otto committed
7865
7866
7867
   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
   * --------------------------------------------------------------------------
   */
XhmikosR's avatar
Dist.    
XhmikosR committed
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
  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
7881

XhmikosR's avatar
Dist.    
XhmikosR committed
7882
  return index_umd;
Mark Otto's avatar
dist  
Mark Otto committed
7883

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