cy-element-ui 1.0.48 → 1.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/lib/alert.js +108 -108
  2. package/lib/aside.js +77 -77
  3. package/lib/autocomplete.js +5199 -360
  4. package/lib/avatar.js +4 -4
  5. package/lib/backtop.js +192 -101
  6. package/lib/badge.js +108 -108
  7. package/lib/breadcrumb-item.js +108 -108
  8. package/lib/breadcrumb.js +94 -94
  9. package/lib/button-group.js +4 -4
  10. package/lib/button.js +4 -4
  11. package/lib/calendar.js +1734 -137
  12. package/lib/card.js +96 -96
  13. package/lib/carousel-item.js +452 -108
  14. package/lib/carousel.js +1256 -105
  15. package/lib/cascader-panel.js +3524 -191
  16. package/lib/cascader.js +8077 -717
  17. package/lib/checkbox-button.js +151 -119
  18. package/lib/checkbox-group.js +47 -15
  19. package/lib/checkbox.js +47 -15
  20. package/lib/col.js +2 -2
  21. package/lib/collapse-item.js +815 -110
  22. package/lib/collapse.js +108 -108
  23. package/lib/color-picker.js +4705 -828
  24. package/lib/container.js +88 -88
  25. package/lib/date-picker.js +10735 -4739
  26. package/lib/descriptions-item.js +2 -2
  27. package/lib/descriptions.js +63 -8
  28. package/lib/dialog.js +1200 -22
  29. package/lib/divider.js +104 -104
  30. package/lib/drawer.js +875 -105
  31. package/lib/dropdown-item.js +128 -96
  32. package/lib/dropdown-menu.js +2301 -99
  33. package/lib/dropdown.js +990 -54
  34. package/lib/element-ui.common.js +31058 -13663
  35. package/lib/empty.js +793 -99
  36. package/lib/fileUpload.js +2542 -26
  37. package/lib/footer.js +77 -77
  38. package/lib/form-item.js +3305 -202
  39. package/lib/form.js +129 -115
  40. package/lib/header.js +77 -77
  41. package/lib/icon.js +67 -67
  42. package/lib/image.js +1662 -146
  43. package/lib/index.js +1 -1
  44. package/lib/infinite-scroll.js +435 -26
  45. package/lib/input-number.js +1421 -32
  46. package/lib/input.js +509 -37
  47. package/lib/link.js +4 -4
  48. package/lib/loading.js +886 -149
  49. package/lib/main.js +64 -64
  50. package/lib/menu-item-group.js +103 -103
  51. package/lib/menu-item.js +3140 -137
  52. package/lib/menu.js +959 -268
  53. package/lib/message-box.js +2743 -188
  54. package/lib/message.js +1196 -118
  55. package/lib/notification.js +1196 -119
  56. package/lib/option-group.js +151 -119
  57. package/lib/option.js +392 -16
  58. package/lib/page-header.js +781 -87
  59. package/lib/pagination.js +7747 -646
  60. package/lib/popconfirm.js +3606 -219
  61. package/lib/popover.js +2604 -79
  62. package/lib/progress.js +4 -4
  63. package/lib/radio-button.js +151 -119
  64. package/lib/radio-group.js +151 -119
  65. package/lib/radio.js +47 -15
  66. package/lib/rate.js +756 -113
  67. package/lib/result.js +108 -108
  68. package/lib/row.js +2 -2
  69. package/lib/scrollbar.js +1813 -41
  70. package/lib/select.js +5547 -209
  71. package/lib/selectDisplayInput.js +4 -4
  72. package/lib/skeleton-item.js +108 -108
  73. package/lib/skeleton.js +108 -108
  74. package/lib/slider.js +4768 -530
  75. package/lib/spinner.js +100 -100
  76. package/lib/statistic.js +9600 -112
  77. package/lib/step.js +108 -108
  78. package/lib/steps.js +514 -99
  79. package/lib/subTitle.js +91 -91
  80. package/lib/submenu.js +2397 -76
  81. package/lib/switch.js +582 -127
  82. package/lib/tab-pane.js +108 -108
  83. package/lib/tabDialog.js +1630 -104
  84. package/lib/table-column.js +1115 -267
  85. package/lib/table.js +7067 -1253
  86. package/lib/tabs.js +1615 -113
  87. package/lib/tag.js +4 -4
  88. package/lib/time-picker.js +6481 -589
  89. package/lib/time-select.js +6334 -407
  90. package/lib/timeline-item.js +108 -108
  91. package/lib/timeline.js +4 -4
  92. package/lib/tooltip.js +2688 -44
  93. package/lib/transfer.js +2238 -146
  94. package/lib/tree.js +1563 -148
  95. package/lib/treeSelect.js +3421 -106
  96. package/lib/upload.js +1198 -31
  97. package/package.json +1 -1
  98. package/src/index.js +1 -1
package/lib/tooltip.js CHANGED
@@ -82,34 +82,2216 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 146);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 40);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 146:
90
+ /***/ 0:
91
+ /***/ (function(module, exports) {
92
+
93
+ module.exports = require("vue");
94
+
95
+ /***/ }),
96
+
97
+ /***/ 1:
98
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
99
+
100
+ "use strict";
101
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
102
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
103
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
104
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
105
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
106
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
107
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
108
+ /* unused harmony export setStyle */
109
+ /* unused harmony export isScroll */
110
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
111
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
112
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
113
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
114
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
115
+
116
+ /* istanbul ignore next */
117
+
118
+
119
+
120
+ var isServer = vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer;
121
+ var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
122
+ var MOZ_HACK_REGEXP = /^moz([A-Z])/;
123
+ var ieVersion = isServer ? 0 : Number(document.documentMode);
124
+
125
+ /* istanbul ignore next */
126
+ var trim = function trim(string) {
127
+ return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
128
+ };
129
+ /* istanbul ignore next */
130
+ var camelCase = function camelCase(name) {
131
+ return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
132
+ return offset ? letter.toUpperCase() : letter;
133
+ }).replace(MOZ_HACK_REGEXP, 'Moz$1');
134
+ };
135
+
136
+ /* istanbul ignore next */
137
+ var on = function () {
138
+ if (!isServer && document.addEventListener) {
139
+ return function (element, event, handler) {
140
+ if (element && event && handler) {
141
+ element.addEventListener(event, handler, false);
142
+ }
143
+ };
144
+ } else {
145
+ return function (element, event, handler) {
146
+ if (element && event && handler) {
147
+ element.attachEvent('on' + event, handler);
148
+ }
149
+ };
150
+ }
151
+ }();
152
+
153
+ /* istanbul ignore next */
154
+ var off = function () {
155
+ if (!isServer && document.removeEventListener) {
156
+ return function (element, event, handler) {
157
+ if (element && event) {
158
+ element.removeEventListener(event, handler, false);
159
+ }
160
+ };
161
+ } else {
162
+ return function (element, event, handler) {
163
+ if (element && event) {
164
+ element.detachEvent('on' + event, handler);
165
+ }
166
+ };
167
+ }
168
+ }();
169
+
170
+ /* istanbul ignore next */
171
+ var once = function once(el, event, fn) {
172
+ var listener = function listener() {
173
+ if (fn) {
174
+ fn.apply(this, arguments);
175
+ }
176
+ off(el, event, listener);
177
+ };
178
+ on(el, event, listener);
179
+ };
180
+
181
+ /* istanbul ignore next */
182
+ function hasClass(el, cls) {
183
+ if (!el || !cls) return false;
184
+ if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
185
+ if (el.classList) {
186
+ return el.classList.contains(cls);
187
+ } else {
188
+ return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
189
+ }
190
+ };
191
+
192
+ /* istanbul ignore next */
193
+ function addClass(el, cls) {
194
+ if (!el) return;
195
+ var curClass = el.className;
196
+ var classes = (cls || '').split(' ');
197
+
198
+ for (var i = 0, j = classes.length; i < j; i++) {
199
+ var clsName = classes[i];
200
+ if (!clsName) continue;
201
+
202
+ if (el.classList) {
203
+ el.classList.add(clsName);
204
+ } else if (!hasClass(el, clsName)) {
205
+ curClass += ' ' + clsName;
206
+ }
207
+ }
208
+ if (!el.classList) {
209
+ el.setAttribute('class', curClass);
210
+ }
211
+ };
212
+
213
+ /* istanbul ignore next */
214
+ function removeClass(el, cls) {
215
+ if (!el || !cls) return;
216
+ var classes = cls.split(' ');
217
+ var curClass = ' ' + el.className + ' ';
218
+
219
+ for (var i = 0, j = classes.length; i < j; i++) {
220
+ var clsName = classes[i];
221
+ if (!clsName) continue;
222
+
223
+ if (el.classList) {
224
+ el.classList.remove(clsName);
225
+ } else if (hasClass(el, clsName)) {
226
+ curClass = curClass.replace(' ' + clsName + ' ', ' ');
227
+ }
228
+ }
229
+ if (!el.classList) {
230
+ el.setAttribute('class', trim(curClass));
231
+ }
232
+ };
233
+
234
+ /* istanbul ignore next */
235
+ var getStyle = ieVersion < 9 ? function (element, styleName) {
236
+ if (isServer) return;
237
+ if (!element || !styleName) return null;
238
+ styleName = camelCase(styleName);
239
+ if (styleName === 'float') {
240
+ styleName = 'styleFloat';
241
+ }
242
+ try {
243
+ switch (styleName) {
244
+ case 'opacity':
245
+ try {
246
+ return element.filters.item('alpha').opacity / 100;
247
+ } catch (e) {
248
+ return 1.0;
249
+ }
250
+ default:
251
+ return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
252
+ }
253
+ } catch (e) {
254
+ return element.style[styleName];
255
+ }
256
+ } : function (element, styleName) {
257
+ if (isServer) return;
258
+ if (!element || !styleName) return null;
259
+ styleName = camelCase(styleName);
260
+ if (styleName === 'float') {
261
+ styleName = 'cssFloat';
262
+ }
263
+ try {
264
+ var computed = document.defaultView.getComputedStyle(element, '');
265
+ return element.style[styleName] || computed ? computed[styleName] : null;
266
+ } catch (e) {
267
+ return element.style[styleName];
268
+ }
269
+ };
270
+
271
+ /* istanbul ignore next */
272
+ function setStyle(element, styleName, value) {
273
+ if (!element || !styleName) return;
274
+
275
+ if ((typeof styleName === 'undefined' ? 'undefined' : _typeof(styleName)) === 'object') {
276
+ for (var prop in styleName) {
277
+ if (styleName.hasOwnProperty(prop)) {
278
+ setStyle(element, prop, styleName[prop]);
279
+ }
280
+ }
281
+ } else {
282
+ styleName = camelCase(styleName);
283
+ if (styleName === 'opacity' && ieVersion < 9) {
284
+ element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
285
+ } else {
286
+ element.style[styleName] = value;
287
+ }
288
+ }
289
+ };
290
+
291
+ var isScroll = function isScroll(el, vertical) {
292
+ if (isServer) return;
293
+
294
+ var determinedDirection = vertical !== null && vertical !== undefined;
295
+ var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
296
+
297
+ return overflow.match(/(scroll|auto|overlay)/);
298
+ };
299
+
300
+ var getScrollContainer = function getScrollContainer(el, vertical) {
301
+ if (isServer) return;
302
+
303
+ var parent = el;
304
+ while (parent) {
305
+ if ([window, document, document.documentElement].includes(parent)) {
306
+ return window;
307
+ }
308
+ if (isScroll(parent, vertical)) {
309
+ return parent;
310
+ }
311
+ parent = parent.parentNode;
312
+ }
313
+
314
+ return parent;
315
+ };
316
+
317
+ var isInContainer = function isInContainer(el, container) {
318
+ if (isServer || !el || !container) return false;
319
+
320
+ var elRect = el.getBoundingClientRect();
321
+ var containerRect = void 0;
322
+
323
+ if ([window, document, document.documentElement, null, undefined].includes(container)) {
324
+ containerRect = {
325
+ top: 0,
326
+ right: window.innerWidth,
327
+ bottom: window.innerHeight,
328
+ left: 0
329
+ };
330
+ } else {
331
+ containerRect = container.getBoundingClientRect();
332
+ }
333
+
334
+ return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
335
+ };
336
+
337
+ /***/ }),
338
+
339
+ /***/ 10:
340
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
341
+
342
+ "use strict";
343
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
344
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
345
+ /* harmony import */ var element_ui_src_utils_popup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
346
+
347
+
348
+
349
+ var PopperJS = vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer ? function () {} : __webpack_require__(24);
350
+ var stop = function stop(e) {
351
+ return e.stopPropagation();
352
+ };
353
+
354
+ /**
355
+ * @param {HTMLElement} [reference=$refs.reference] - The reference element used to position the popper.
356
+ * @param {HTMLElement} [popper=$refs.popper] - The HTML element used as popper, or a configuration used to generate the popper.
357
+ * @param {String} [placement=button] - Placement of the popper accepted values: top(-start, -end), right(-start, -end), bottom(-start, -end), left(-start, -end)
358
+ * @param {Number} [offset=0] - Amount of pixels the popper will be shifted (can be negative).
359
+ * @param {Boolean} [visible=false] Visibility of the popup element.
360
+ * @param {Boolean} [visible-arrow=false] Visibility of the arrow, no style.
361
+ */
362
+ /* harmony default export */ __webpack_exports__["a"] = ({
363
+ props: {
364
+ transformOrigin: {
365
+ type: [Boolean, String],
366
+ default: true
367
+ },
368
+ placement: {
369
+ type: String,
370
+ default: 'bottom'
371
+ },
372
+ boundariesPadding: {
373
+ type: Number,
374
+ default: 5
375
+ },
376
+ reference: {},
377
+ popper: {},
378
+ offset: {
379
+ default: 0
380
+ },
381
+ value: Boolean,
382
+ visibleArrow: Boolean,
383
+ arrowOffset: {
384
+ type: Number,
385
+ default: 35
386
+ },
387
+ appendToBody: {
388
+ type: Boolean,
389
+ default: true
390
+ },
391
+ popperOptions: {
392
+ type: Object,
393
+ default: function _default() {
394
+ return {
395
+ gpuAcceleration: false
396
+ };
397
+ }
398
+ }
399
+ },
400
+
401
+ data: function data() {
402
+ return {
403
+ showPopper: false,
404
+ currentPlacement: ''
405
+ };
406
+ },
407
+
408
+
409
+ watch: {
410
+ value: {
411
+ immediate: true,
412
+ handler: function handler(val) {
413
+ this.showPopper = val;
414
+ this.$emit('input', val);
415
+ }
416
+ },
417
+
418
+ showPopper: function showPopper(val) {
419
+ if (this.disabled) return;
420
+ val ? this.updatePopper() : this.destroyPopper();
421
+ this.$emit('input', val);
422
+ }
423
+ },
424
+
425
+ methods: {
426
+ createPopper: function createPopper() {
427
+ var _this = this;
428
+
429
+ if (this.$isServer) return;
430
+ this.currentPlacement = this.currentPlacement || this.placement;
431
+ if (!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement)) {
432
+ return;
433
+ }
434
+
435
+ var options = this.popperOptions;
436
+ var popper = this.popperElm = this.popperElm || this.popper || this.$refs.popper;
437
+ var reference = this.referenceElm = this.referenceElm || this.reference || this.$refs.reference;
438
+
439
+ if (!reference && this.$slots.reference && this.$slots.reference[0]) {
440
+ reference = this.referenceElm = this.$slots.reference[0].elm;
441
+ }
442
+
443
+ if (!popper || !reference) return;
444
+ if (this.visibleArrow) this.appendArrow(popper);
445
+ if (this.appendToBody) document.body.appendChild(this.popperElm);
446
+ if (this.popperJS && this.popperJS.destroy) {
447
+ this.popperJS.destroy();
448
+ }
449
+
450
+ options.placement = this.currentPlacement;
451
+ options.offset = this.offset;
452
+ options.arrowOffset = this.arrowOffset;
453
+ this.popperJS = new PopperJS(reference, popper, options);
454
+ this.popperJS.onCreate(function (_) {
455
+ _this.$emit('created', _this);
456
+ _this.resetTransformOrigin();
457
+ _this.$nextTick(_this.updatePopper);
458
+ });
459
+ if (typeof options.onUpdate === 'function') {
460
+ this.popperJS.onUpdate(options.onUpdate);
461
+ }
462
+ this.popperJS._popper.style.zIndex = element_ui_src_utils_popup__WEBPACK_IMPORTED_MODULE_1__[/* PopupManager */ "a"].nextZIndex();
463
+ this.popperElm.addEventListener('click', stop);
464
+ },
465
+ updatePopper: function updatePopper() {
466
+ var popperJS = this.popperJS;
467
+ if (popperJS) {
468
+ popperJS.update();
469
+ if (popperJS._popper) {
470
+ popperJS._popper.style.zIndex = element_ui_src_utils_popup__WEBPACK_IMPORTED_MODULE_1__[/* PopupManager */ "a"].nextZIndex();
471
+ }
472
+ } else {
473
+ this.createPopper();
474
+ }
475
+ },
476
+ doDestroy: function doDestroy(forceDestroy) {
477
+ /* istanbul ignore if */
478
+ if (!this.popperJS || this.showPopper && !forceDestroy) return;
479
+ this.popperJS.destroy();
480
+ this.popperJS = null;
481
+ },
482
+ destroyPopper: function destroyPopper() {
483
+ if (this.popperJS) {
484
+ this.resetTransformOrigin();
485
+ }
486
+ },
487
+ resetTransformOrigin: function resetTransformOrigin() {
488
+ if (!this.transformOrigin) return;
489
+ var placementMap = {
490
+ top: 'bottom',
491
+ bottom: 'top',
492
+ left: 'right',
493
+ right: 'left'
494
+ };
495
+ var placement = this.popperJS._popper.getAttribute('x-placement').split('-')[0];
496
+ var origin = placementMap[placement];
497
+ this.popperJS._popper.style.transformOrigin = typeof this.transformOrigin === 'string' ? this.transformOrigin : ['top', 'bottom'].indexOf(placement) > -1 ? 'center ' + origin : origin + ' center';
498
+ },
499
+ appendArrow: function appendArrow(element) {
500
+ var hash = void 0;
501
+ if (this.appended) {
502
+ return;
503
+ }
504
+
505
+ this.appended = true;
506
+
507
+ for (var item in element.attributes) {
508
+ if (/^_v-/.test(element.attributes[item].name)) {
509
+ hash = element.attributes[item].name;
510
+ break;
511
+ }
512
+ }
513
+
514
+ var arrow = document.createElement('div');
515
+
516
+ if (hash) {
517
+ arrow.setAttribute(hash, '');
518
+ }
519
+ arrow.setAttribute('x-arrow', '');
520
+ arrow.className = 'popper__arrow';
521
+ element.appendChild(arrow);
522
+ }
523
+ },
524
+
525
+ beforeDestroy: function beforeDestroy() {
526
+ this.doDestroy(true);
527
+ if (this.popperElm && this.popperElm.parentNode === document.body) {
528
+ this.popperElm.removeEventListener('click', stop);
529
+ document.body.removeChild(this.popperElm);
530
+ }
531
+ },
532
+
533
+
534
+ // call destroy in keep-alive mode
535
+ deactivated: function deactivated() {
536
+ this.$options.beforeDestroy[0].call(this);
537
+ }
538
+ });
539
+
540
+ /***/ }),
541
+
542
+ /***/ 16:
543
+ /***/ (function(module, exports, __webpack_require__) {
544
+
545
+ /* eslint-disable no-undefined */
546
+
547
+ var throttle = __webpack_require__(17);
548
+
549
+ /**
550
+ * Debounce execution of a function. Debouncing, unlike throttling,
551
+ * guarantees that a function is only executed a single time, either at the
552
+ * very beginning of a series of calls, or at the very end.
553
+ *
554
+ * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
555
+ * @param {Boolean} [atBegin] Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds
556
+ * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.
557
+ * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).
558
+ * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
559
+ * to `callback` when the debounced-function is executed.
560
+ *
561
+ * @return {Function} A new, debounced function.
562
+ */
563
+ module.exports = function ( delay, atBegin, callback ) {
564
+ return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);
565
+ };
566
+
567
+
568
+ /***/ }),
569
+
570
+ /***/ 17:
571
+ /***/ (function(module, exports) {
572
+
573
+ /* eslint-disable no-undefined,no-param-reassign,no-shadow */
574
+
575
+ /**
576
+ * Throttle execution of a function. Especially useful for rate limiting
577
+ * execution of handlers on events like resize and scroll.
578
+ *
579
+ * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
580
+ * @param {Boolean} [noTrailing] Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the
581
+ * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time
582
+ * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,
583
+ * the internal counter is reset)
584
+ * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
585
+ * to `callback` when the throttled-function is executed.
586
+ * @param {Boolean} [debounceMode] If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),
587
+ * schedule `callback` to execute after `delay` ms.
588
+ *
589
+ * @return {Function} A new, throttled, function.
590
+ */
591
+ module.exports = function ( delay, noTrailing, callback, debounceMode ) {
592
+
593
+ // After wrapper has stopped being called, this timeout ensures that
594
+ // `callback` is executed at the proper times in `throttle` and `end`
595
+ // debounce modes.
596
+ var timeoutID;
597
+
598
+ // Keep track of the last time `callback` was executed.
599
+ var lastExec = 0;
600
+
601
+ // `noTrailing` defaults to falsy.
602
+ if ( typeof noTrailing !== 'boolean' ) {
603
+ debounceMode = callback;
604
+ callback = noTrailing;
605
+ noTrailing = undefined;
606
+ }
607
+
608
+ // The `wrapper` function encapsulates all of the throttling / debouncing
609
+ // functionality and when executed will limit the rate at which `callback`
610
+ // is executed.
611
+ function wrapper () {
612
+
613
+ var self = this;
614
+ var elapsed = Number(new Date()) - lastExec;
615
+ var args = arguments;
616
+
617
+ // Execute `callback` and update the `lastExec` timestamp.
618
+ function exec () {
619
+ lastExec = Number(new Date());
620
+ callback.apply(self, args);
621
+ }
622
+
623
+ // If `debounceMode` is true (at begin) this is used to clear the flag
624
+ // to allow future `callback` executions.
625
+ function clear () {
626
+ timeoutID = undefined;
627
+ }
628
+
629
+ if ( debounceMode && !timeoutID ) {
630
+ // Since `wrapper` is being called for the first time and
631
+ // `debounceMode` is true (at begin), execute `callback`.
632
+ exec();
633
+ }
634
+
635
+ // Clear any existing timeout.
636
+ if ( timeoutID ) {
637
+ clearTimeout(timeoutID);
638
+ }
639
+
640
+ if ( debounceMode === undefined && elapsed > delay ) {
641
+ // In throttle mode, if `delay` time has been exceeded, execute
642
+ // `callback`.
643
+ exec();
644
+
645
+ } else if ( noTrailing !== true ) {
646
+ // In trailing throttle mode, since `delay` time has not been
647
+ // exceeded, schedule `callback` to execute `delay` ms after most
648
+ // recent execution.
649
+ //
650
+ // If `debounceMode` is true (at begin), schedule `clear` to execute
651
+ // after `delay` ms.
652
+ //
653
+ // If `debounceMode` is false (at end), schedule `callback` to
654
+ // execute after `delay` ms.
655
+ timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
656
+ }
657
+
658
+ }
659
+
660
+ // Return the wrapper function.
661
+ return wrapper;
662
+
663
+ };
664
+
665
+
666
+ /***/ }),
667
+
668
+ /***/ 24:
669
+ /***/ (function(module, exports, __webpack_require__) {
670
+
671
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
672
+
673
+ /**
674
+ * @fileOverview Kickass library to create and place poppers near their reference elements.
675
+ * @version {{version}}
676
+ * @license
677
+ * Copyright (c) 2016 Federico Zivolo and contributors
678
+ *
679
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
680
+ * of this software and associated documentation files (the "Software"), to deal
681
+ * in the Software without restriction, including without limitation the rights
682
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
683
+ * copies of the Software, and to permit persons to whom the Software is
684
+ * furnished to do so, subject to the following conditions:
685
+ *
686
+ * The above copyright notice and this permission notice shall be included in all
687
+ * copies or substantial portions of the Software.
688
+ *
689
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
690
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
691
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
692
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
693
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
694
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
695
+ * SOFTWARE.
696
+ */
697
+
698
+ //
699
+ // Cross module loader
700
+ // Supported: Node, AMD, Browser globals
701
+ //
702
+ ;(function (root, factory) {
703
+ if (true) {
704
+ // AMD. Register as an anonymous module.
705
+ !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
706
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
707
+ (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
708
+ __WEBPACK_AMD_DEFINE_FACTORY__),
709
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
710
+ } else {}
711
+ })(this, function () {
712
+
713
+ 'use strict';
714
+
715
+ var root = window;
716
+
717
+ // default options
718
+ var DEFAULTS = {
719
+ // placement of the popper
720
+ placement: 'bottom',
721
+
722
+ gpuAcceleration: true,
723
+
724
+ // shift popper from its origin by the given amount of pixels (can be negative)
725
+ offset: 0,
726
+
727
+ // the element which will act as boundary of the popper
728
+ boundariesElement: 'viewport',
729
+
730
+ // amount of pixel used to define a minimum distance between the boundaries and the popper
731
+ boundariesPadding: 5,
732
+
733
+ // popper will try to prevent overflow following this order,
734
+ // by default, then, it could overflow on the left and on top of the boundariesElement
735
+ preventOverflowOrder: ['left', 'right', 'top', 'bottom'],
736
+
737
+ // the behavior used by flip to change the placement of the popper
738
+ flipBehavior: 'flip',
739
+
740
+ arrowElement: '[x-arrow]',
741
+
742
+ arrowOffset: 0,
743
+
744
+ // list of functions used to modify the offsets before they are applied to the popper
745
+ modifiers: ['shift', 'offset', 'preventOverflow', 'keepTogether', 'arrow', 'flip', 'applyStyle'],
746
+
747
+ modifiersIgnored: [],
748
+
749
+ forceAbsolute: false
750
+ };
751
+
752
+ /**
753
+ * Create a new Popper.js instance
754
+ * @constructor Popper
755
+ * @param {HTMLElement} reference - The reference element used to position the popper
756
+ * @param {HTMLElement|Object} popper
757
+ * The HTML element used as popper, or a configuration used to generate the popper.
758
+ * @param {String} [popper.tagName='div'] The tag name of the generated popper.
759
+ * @param {Array} [popper.classNames=['popper']] Array of classes to apply to the generated popper.
760
+ * @param {Array} [popper.attributes] Array of attributes to apply, specify `attr:value` to assign a value to it.
761
+ * @param {HTMLElement|String} [popper.parent=window.document.body] The parent element, given as HTMLElement or as query string.
762
+ * @param {String} [popper.content=''] The content of the popper, it can be text, html, or node; if it is not text, set `contentType` to `html` or `node`.
763
+ * @param {String} [popper.contentType='text'] If `html`, the `content` will be parsed as HTML. If `node`, it will be appended as-is.
764
+ * @param {String} [popper.arrowTagName='div'] Same as `popper.tagName` but for the arrow element.
765
+ * @param {Array} [popper.arrowClassNames='popper__arrow'] Same as `popper.classNames` but for the arrow element.
766
+ * @param {String} [popper.arrowAttributes=['x-arrow']] Same as `popper.attributes` but for the arrow element.
767
+ * @param {Object} options
768
+ * @param {String} [options.placement=bottom]
769
+ * Placement of the popper accepted values: `top(-start, -end), right(-start, -end), bottom(-start, -right),
770
+ * left(-start, -end)`
771
+ *
772
+ * @param {HTMLElement|String} [options.arrowElement='[x-arrow]']
773
+ * The DOM Node used as arrow for the popper, or a CSS selector used to get the DOM node. It must be child of
774
+ * its parent Popper. Popper.js will apply to the given element the style required to align the arrow with its
775
+ * reference element.
776
+ * By default, it will look for a child node of the popper with the `x-arrow` attribute.
777
+ *
778
+ * @param {Boolean} [options.gpuAcceleration=true]
779
+ * When this property is set to true, the popper position will be applied using CSS3 translate3d, allowing the
780
+ * browser to use the GPU to accelerate the rendering.
781
+ * If set to false, the popper will be placed using `top` and `left` properties, not using the GPU.
782
+ *
783
+ * @param {Number} [options.offset=0]
784
+ * Amount of pixels the popper will be shifted (can be negative).
785
+ *
786
+ * @param {String|Element} [options.boundariesElement='viewport']
787
+ * The element which will define the boundaries of the popper position, the popper will never be placed outside
788
+ * of the defined boundaries (except if `keepTogether` is enabled)
789
+ *
790
+ * @param {Number} [options.boundariesPadding=5]
791
+ * Additional padding for the boundaries
792
+ *
793
+ * @param {Array} [options.preventOverflowOrder=['left', 'right', 'top', 'bottom']]
794
+ * Order used when Popper.js tries to avoid overflows from the boundaries, they will be checked in order,
795
+ * this means that the last ones will never overflow
796
+ *
797
+ * @param {String|Array} [options.flipBehavior='flip']
798
+ * The behavior used by the `flip` modifier to change the placement of the popper when the latter is trying to
799
+ * overlap its reference element. Defining `flip` as value, the placement will be flipped on
800
+ * its axis (`right - left`, `top - bottom`).
801
+ * You can even pass an array of placements (eg: `['right', 'left', 'top']` ) to manually specify
802
+ * how alter the placement when a flip is needed. (eg. in the above example, it would first flip from right to left,
803
+ * then, if even in its new placement, the popper is overlapping its reference element, it will be moved to top)
804
+ *
805
+ * @param {Array} [options.modifiers=[ 'shift', 'offset', 'preventOverflow', 'keepTogether', 'arrow', 'flip', 'applyStyle']]
806
+ * List of functions used to modify the data before they are applied to the popper, add your custom functions
807
+ * to this array to edit the offsets and placement.
808
+ * The function should reflect the @params and @returns of preventOverflow
809
+ *
810
+ * @param {Array} [options.modifiersIgnored=[]]
811
+ * Put here any built-in modifier name you want to exclude from the modifiers list
812
+ * The function should reflect the @params and @returns of preventOverflow
813
+ *
814
+ * @param {Boolean} [options.removeOnDestroy=false]
815
+ * Set to true if you want to automatically remove the popper when you call the `destroy` method.
816
+ */
817
+ function Popper(reference, popper, options) {
818
+ this._reference = reference.jquery ? reference[0] : reference;
819
+ this.state = {};
820
+
821
+ // if the popper variable is a configuration object, parse it to generate an HTMLElement
822
+ // generate a default popper if is not defined
823
+ var isNotDefined = typeof popper === 'undefined' || popper === null;
824
+ var isConfig = popper && Object.prototype.toString.call(popper) === '[object Object]';
825
+ if (isNotDefined || isConfig) {
826
+ this._popper = this.parse(isConfig ? popper : {});
827
+ }
828
+ // otherwise, use the given HTMLElement as popper
829
+ else {
830
+ this._popper = popper.jquery ? popper[0] : popper;
831
+ }
832
+
833
+ // with {} we create a new object with the options inside it
834
+ this._options = Object.assign({}, DEFAULTS, options);
835
+
836
+ // refactoring modifiers' list
837
+ this._options.modifiers = this._options.modifiers.map(function (modifier) {
838
+ // remove ignored modifiers
839
+ if (this._options.modifiersIgnored.indexOf(modifier) !== -1) return;
840
+
841
+ // set the x-placement attribute before everything else because it could be used to add margins to the popper
842
+ // margins needs to be calculated to get the correct popper offsets
843
+ if (modifier === 'applyStyle') {
844
+ this._popper.setAttribute('x-placement', this._options.placement);
845
+ }
846
+
847
+ // return predefined modifier identified by string or keep the custom one
848
+ return this.modifiers[modifier] || modifier;
849
+ }.bind(this));
850
+
851
+ // make sure to apply the popper position before any computation
852
+ this.state.position = this._getPosition(this._popper, this._reference);
853
+ setStyle(this._popper, { position: this.state.position, top: 0 });
854
+
855
+ // fire the first update to position the popper in the right place
856
+ this.update();
857
+
858
+ // setup event listeners, they will take care of update the position in specific situations
859
+ this._setupEventListeners();
860
+ return this;
861
+ }
862
+
863
+ //
864
+ // Methods
865
+ //
866
+ /**
867
+ * Destroy the popper
868
+ * @method
869
+ * @memberof Popper
870
+ */
871
+ Popper.prototype.destroy = function () {
872
+ this._popper.removeAttribute('x-placement');
873
+ this._popper.style.left = '';
874
+ this._popper.style.position = '';
875
+ this._popper.style.top = '';
876
+ this._popper.style[getSupportedPropertyName('transform')] = '';
877
+ this._removeEventListeners();
878
+
879
+ // remove the popper if user explicity asked for the deletion on destroy
880
+ if (this._options.removeOnDestroy) {
881
+ this._popper.remove();
882
+ }
883
+ return this;
884
+ };
885
+
886
+ /**
887
+ * Updates the position of the popper, computing the new offsets and applying the new style
888
+ * @method
889
+ * @memberof Popper
890
+ */
891
+ Popper.prototype.update = function () {
892
+ var data = { instance: this, styles: {} };
893
+
894
+ // store placement inside the data object, modifiers will be able to edit `placement` if needed
895
+ // and refer to _originalPlacement to know the original value
896
+ data.placement = this._options.placement;
897
+ data._originalPlacement = this._options.placement;
898
+
899
+ // compute the popper and reference offsets and put them inside data.offsets
900
+ data.offsets = this._getOffsets(this._popper, this._reference, data.placement);
901
+
902
+ // get boundaries
903
+ data.boundaries = this._getBoundaries(data, this._options.boundariesPadding, this._options.boundariesElement);
904
+
905
+ data = this.runModifiers(data, this._options.modifiers);
906
+
907
+ if (typeof this.state.updateCallback === 'function') {
908
+ this.state.updateCallback(data);
909
+ }
910
+ };
911
+
912
+ /**
913
+ * If a function is passed, it will be executed after the initialization of popper with as first argument the Popper instance.
914
+ * @method
915
+ * @memberof Popper
916
+ * @param {Function} callback
917
+ */
918
+ Popper.prototype.onCreate = function (callback) {
919
+ // the createCallbacks return as first argument the popper instance
920
+ callback(this);
921
+ return this;
922
+ };
923
+
924
+ /**
925
+ * If a function is passed, it will be executed after each update of popper with as first argument the set of coordinates and informations
926
+ * used to style popper and its arrow.
927
+ * NOTE: it doesn't get fired on the first call of the `Popper.update()` method inside the `Popper` constructor!
928
+ * @method
929
+ * @memberof Popper
930
+ * @param {Function} callback
931
+ */
932
+ Popper.prototype.onUpdate = function (callback) {
933
+ this.state.updateCallback = callback;
934
+ return this;
935
+ };
936
+
937
+ /**
938
+ * Helper used to generate poppers from a configuration file
939
+ * @method
940
+ * @memberof Popper
941
+ * @param config {Object} configuration
942
+ * @returns {HTMLElement} popper
943
+ */
944
+ Popper.prototype.parse = function (config) {
945
+ var defaultConfig = {
946
+ tagName: 'div',
947
+ classNames: ['popper'],
948
+ attributes: [],
949
+ parent: root.document.body,
950
+ content: '',
951
+ contentType: 'text',
952
+ arrowTagName: 'div',
953
+ arrowClassNames: ['popper__arrow'],
954
+ arrowAttributes: ['x-arrow']
955
+ };
956
+ config = Object.assign({}, defaultConfig, config);
957
+
958
+ var d = root.document;
959
+
960
+ var popper = d.createElement(config.tagName);
961
+ addClassNames(popper, config.classNames);
962
+ addAttributes(popper, config.attributes);
963
+ if (config.contentType === 'node') {
964
+ popper.appendChild(config.content.jquery ? config.content[0] : config.content);
965
+ } else if (config.contentType === 'html') {
966
+ popper.innerHTML = config.content;
967
+ } else {
968
+ popper.textContent = config.content;
969
+ }
970
+
971
+ if (config.arrowTagName) {
972
+ var arrow = d.createElement(config.arrowTagName);
973
+ addClassNames(arrow, config.arrowClassNames);
974
+ addAttributes(arrow, config.arrowAttributes);
975
+ popper.appendChild(arrow);
976
+ }
977
+
978
+ var parent = config.parent.jquery ? config.parent[0] : config.parent;
979
+
980
+ // if the given parent is a string, use it to match an element
981
+ // if more than one element is matched, the first one will be used as parent
982
+ // if no elements are matched, the script will throw an error
983
+ if (typeof parent === 'string') {
984
+ parent = d.querySelectorAll(config.parent);
985
+ if (parent.length > 1) {
986
+ console.warn('WARNING: the given `parent` query(' + config.parent + ') matched more than one element, the first one will be used');
987
+ }
988
+ if (parent.length === 0) {
989
+ throw 'ERROR: the given `parent` doesn\'t exists!';
990
+ }
991
+ parent = parent[0];
992
+ }
993
+ // if the given parent is a DOM nodes list or an array of nodes with more than one element,
994
+ // the first one will be used as parent
995
+ if (parent.length > 1 && parent instanceof Element === false) {
996
+ console.warn('WARNING: you have passed as parent a list of elements, the first one will be used');
997
+ parent = parent[0];
998
+ }
999
+
1000
+ // append the generated popper to its parent
1001
+ parent.appendChild(popper);
1002
+
1003
+ return popper;
1004
+
1005
+ /**
1006
+ * Adds class names to the given element
1007
+ * @function
1008
+ * @ignore
1009
+ * @param {HTMLElement} target
1010
+ * @param {Array} classes
1011
+ */
1012
+ function addClassNames(element, classNames) {
1013
+ classNames.forEach(function (className) {
1014
+ element.classList.add(className);
1015
+ });
1016
+ }
1017
+
1018
+ /**
1019
+ * Adds attributes to the given element
1020
+ * @function
1021
+ * @ignore
1022
+ * @param {HTMLElement} target
1023
+ * @param {Array} attributes
1024
+ * @example
1025
+ * addAttributes(element, [ 'data-info:foobar' ]);
1026
+ */
1027
+ function addAttributes(element, attributes) {
1028
+ attributes.forEach(function (attribute) {
1029
+ element.setAttribute(attribute.split(':')[0], attribute.split(':')[1] || '');
1030
+ });
1031
+ }
1032
+ };
1033
+
1034
+ /**
1035
+ * Helper used to get the position which will be applied to the popper
1036
+ * @method
1037
+ * @memberof Popper
1038
+ * @param config {HTMLElement} popper element
1039
+ * @param reference {HTMLElement} reference element
1040
+ * @returns {String} position
1041
+ */
1042
+ Popper.prototype._getPosition = function (popper, reference) {
1043
+ var container = getOffsetParent(reference);
1044
+
1045
+ if (this._options.forceAbsolute) {
1046
+ return 'absolute';
1047
+ }
1048
+
1049
+ // Decide if the popper will be fixed
1050
+ // If the reference element is inside a fixed context, the popper will be fixed as well to allow them to scroll together
1051
+ var isParentFixed = isFixed(reference, container);
1052
+ return isParentFixed ? 'fixed' : 'absolute';
1053
+ };
1054
+
1055
+ /**
1056
+ * Get offsets to the popper
1057
+ * @method
1058
+ * @memberof Popper
1059
+ * @access private
1060
+ * @param {Element} popper - the popper element
1061
+ * @param {Element} reference - the reference element (the popper will be relative to this)
1062
+ * @returns {Object} An object containing the offsets which will be applied to the popper
1063
+ */
1064
+ Popper.prototype._getOffsets = function (popper, reference, placement) {
1065
+ placement = placement.split('-')[0];
1066
+ var popperOffsets = {};
1067
+
1068
+ popperOffsets.position = this.state.position;
1069
+ var isParentFixed = popperOffsets.position === 'fixed';
1070
+
1071
+ //
1072
+ // Get reference element position
1073
+ //
1074
+ var referenceOffsets = getOffsetRectRelativeToCustomParent(reference, getOffsetParent(popper), isParentFixed);
1075
+
1076
+ //
1077
+ // Get popper sizes
1078
+ //
1079
+ var popperRect = getOuterSizes(popper);
1080
+
1081
+ //
1082
+ // Compute offsets of popper
1083
+ //
1084
+
1085
+ // depending by the popper placement we have to compute its offsets slightly differently
1086
+ if (['right', 'left'].indexOf(placement) !== -1) {
1087
+ popperOffsets.top = referenceOffsets.top + referenceOffsets.height / 2 - popperRect.height / 2;
1088
+ if (placement === 'left') {
1089
+ popperOffsets.left = referenceOffsets.left - popperRect.width;
1090
+ } else {
1091
+ popperOffsets.left = referenceOffsets.right;
1092
+ }
1093
+ } else {
1094
+ popperOffsets.left = referenceOffsets.left + referenceOffsets.width / 2 - popperRect.width / 2;
1095
+ if (placement === 'top') {
1096
+ popperOffsets.top = referenceOffsets.top - popperRect.height;
1097
+ } else {
1098
+ popperOffsets.top = referenceOffsets.bottom;
1099
+ }
1100
+ }
1101
+
1102
+ // Add width and height to our offsets object
1103
+ popperOffsets.width = popperRect.width;
1104
+ popperOffsets.height = popperRect.height;
1105
+
1106
+ return {
1107
+ popper: popperOffsets,
1108
+ reference: referenceOffsets
1109
+ };
1110
+ };
1111
+
1112
+ /**
1113
+ * Setup needed event listeners used to update the popper position
1114
+ * @method
1115
+ * @memberof Popper
1116
+ * @access private
1117
+ */
1118
+ Popper.prototype._setupEventListeners = function () {
1119
+ // NOTE: 1 DOM access here
1120
+ this.state.updateBound = this.update.bind(this);
1121
+ root.addEventListener('resize', this.state.updateBound);
1122
+ // if the boundariesElement is window we don't need to listen for the scroll event
1123
+ if (this._options.boundariesElement !== 'window') {
1124
+ var target = getScrollParent(this._reference);
1125
+ // here it could be both `body` or `documentElement` thanks to Firefox, we then check both
1126
+ if (target === root.document.body || target === root.document.documentElement) {
1127
+ target = root;
1128
+ }
1129
+ target.addEventListener('scroll', this.state.updateBound);
1130
+ this.state.scrollTarget = target;
1131
+ }
1132
+ };
1133
+
1134
+ /**
1135
+ * Remove event listeners used to update the popper position
1136
+ * @method
1137
+ * @memberof Popper
1138
+ * @access private
1139
+ */
1140
+ Popper.prototype._removeEventListeners = function () {
1141
+ // NOTE: 1 DOM access here
1142
+ root.removeEventListener('resize', this.state.updateBound);
1143
+ if (this._options.boundariesElement !== 'window' && this.state.scrollTarget) {
1144
+ this.state.scrollTarget.removeEventListener('scroll', this.state.updateBound);
1145
+ this.state.scrollTarget = null;
1146
+ }
1147
+ this.state.updateBound = null;
1148
+ };
1149
+
1150
+ /**
1151
+ * Computed the boundaries limits and return them
1152
+ * @method
1153
+ * @memberof Popper
1154
+ * @access private
1155
+ * @param {Object} data - Object containing the property "offsets" generated by `_getOffsets`
1156
+ * @param {Number} padding - Boundaries padding
1157
+ * @param {Element} boundariesElement - Element used to define the boundaries
1158
+ * @returns {Object} Coordinates of the boundaries
1159
+ */
1160
+ Popper.prototype._getBoundaries = function (data, padding, boundariesElement) {
1161
+ // NOTE: 1 DOM access here
1162
+ var boundaries = {};
1163
+ var width, height;
1164
+ if (boundariesElement === 'window') {
1165
+ var body = root.document.body,
1166
+ html = root.document.documentElement;
1167
+
1168
+ height = Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
1169
+ width = Math.max(body.scrollWidth, body.offsetWidth, html.clientWidth, html.scrollWidth, html.offsetWidth);
1170
+
1171
+ boundaries = {
1172
+ top: 0,
1173
+ right: width,
1174
+ bottom: height,
1175
+ left: 0
1176
+ };
1177
+ } else if (boundariesElement === 'viewport') {
1178
+ var offsetParent = getOffsetParent(this._popper);
1179
+ var scrollParent = getScrollParent(this._popper);
1180
+ var offsetParentRect = getOffsetRect(offsetParent);
1181
+
1182
+ // Thanks the fucking native API, `document.body.scrollTop` & `document.documentElement.scrollTop`
1183
+ var getScrollTopValue = function getScrollTopValue(element) {
1184
+ return element == document.body ? Math.max(document.documentElement.scrollTop, document.body.scrollTop) : element.scrollTop;
1185
+ };
1186
+ var getScrollLeftValue = function getScrollLeftValue(element) {
1187
+ return element == document.body ? Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) : element.scrollLeft;
1188
+ };
1189
+
1190
+ // if the popper is fixed we don't have to substract scrolling from the boundaries
1191
+ var scrollTop = data.offsets.popper.position === 'fixed' ? 0 : getScrollTopValue(scrollParent);
1192
+ var scrollLeft = data.offsets.popper.position === 'fixed' ? 0 : getScrollLeftValue(scrollParent);
1193
+
1194
+ boundaries = {
1195
+ top: 0 - (offsetParentRect.top - scrollTop),
1196
+ right: root.document.documentElement.clientWidth - (offsetParentRect.left - scrollLeft),
1197
+ bottom: root.document.documentElement.clientHeight - (offsetParentRect.top - scrollTop),
1198
+ left: 0 - (offsetParentRect.left - scrollLeft)
1199
+ };
1200
+ } else {
1201
+ if (getOffsetParent(this._popper) === boundariesElement) {
1202
+ boundaries = {
1203
+ top: 0,
1204
+ left: 0,
1205
+ right: boundariesElement.clientWidth,
1206
+ bottom: boundariesElement.clientHeight
1207
+ };
1208
+ } else {
1209
+ boundaries = getOffsetRect(boundariesElement);
1210
+ }
1211
+ }
1212
+ boundaries.left += padding;
1213
+ boundaries.right -= padding;
1214
+ boundaries.top = boundaries.top + padding;
1215
+ boundaries.bottom = boundaries.bottom - padding;
1216
+ return boundaries;
1217
+ };
1218
+
1219
+ /**
1220
+ * Loop trough the list of modifiers and run them in order, each of them will then edit the data object
1221
+ * @method
1222
+ * @memberof Popper
1223
+ * @access public
1224
+ * @param {Object} data
1225
+ * @param {Array} modifiers
1226
+ * @param {Function} ends
1227
+ */
1228
+ Popper.prototype.runModifiers = function (data, modifiers, ends) {
1229
+ var modifiersToRun = modifiers.slice();
1230
+ if (ends !== undefined) {
1231
+ modifiersToRun = this._options.modifiers.slice(0, getArrayKeyIndex(this._options.modifiers, ends));
1232
+ }
1233
+
1234
+ modifiersToRun.forEach(function (modifier) {
1235
+ if (isFunction(modifier)) {
1236
+ data = modifier.call(this, data);
1237
+ }
1238
+ }.bind(this));
1239
+
1240
+ return data;
1241
+ };
1242
+
1243
+ /**
1244
+ * Helper used to know if the given modifier depends from another one.
1245
+ * @method
1246
+ * @memberof Popper
1247
+ * @param {String} requesting - name of requesting modifier
1248
+ * @param {String} requested - name of requested modifier
1249
+ * @returns {Boolean}
1250
+ */
1251
+ Popper.prototype.isModifierRequired = function (requesting, requested) {
1252
+ var index = getArrayKeyIndex(this._options.modifiers, requesting);
1253
+ return !!this._options.modifiers.slice(0, index).filter(function (modifier) {
1254
+ return modifier === requested;
1255
+ }).length;
1256
+ };
1257
+
1258
+ //
1259
+ // Modifiers
1260
+ //
1261
+
1262
+ /**
1263
+ * Modifiers list
1264
+ * @namespace Popper.modifiers
1265
+ * @memberof Popper
1266
+ * @type {Object}
1267
+ */
1268
+ Popper.prototype.modifiers = {};
1269
+
1270
+ /**
1271
+ * Apply the computed styles to the popper element
1272
+ * @method
1273
+ * @memberof Popper.modifiers
1274
+ * @argument {Object} data - The data object generated by `update` method
1275
+ * @returns {Object} The same data object
1276
+ */
1277
+ Popper.prototype.modifiers.applyStyle = function (data) {
1278
+ // apply the final offsets to the popper
1279
+ // NOTE: 1 DOM access here
1280
+ var styles = {
1281
+ position: data.offsets.popper.position
1282
+ };
1283
+
1284
+ // round top and left to avoid blurry text
1285
+ var left = Math.round(data.offsets.popper.left);
1286
+ var top = Math.round(data.offsets.popper.top);
1287
+
1288
+ // if gpuAcceleration is set to true and transform is supported, we use `translate3d` to apply the position to the popper
1289
+ // we automatically use the supported prefixed version if needed
1290
+ var prefixedProperty;
1291
+ if (this._options.gpuAcceleration && (prefixedProperty = getSupportedPropertyName('transform'))) {
1292
+ styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';
1293
+ styles.top = 0;
1294
+ styles.left = 0;
1295
+ }
1296
+ // othwerise, we use the standard `left` and `top` properties
1297
+ else {
1298
+ styles.left = left;
1299
+ styles.top = top;
1300
+ }
1301
+
1302
+ // any property present in `data.styles` will be applied to the popper,
1303
+ // in this way we can make the 3rd party modifiers add custom styles to it
1304
+ // Be aware, modifiers could override the properties defined in the previous
1305
+ // lines of this modifier!
1306
+ Object.assign(styles, data.styles);
1307
+
1308
+ setStyle(this._popper, styles);
1309
+
1310
+ // set an attribute which will be useful to style the tooltip (use it to properly position its arrow)
1311
+ // NOTE: 1 DOM access here
1312
+ this._popper.setAttribute('x-placement', data.placement);
1313
+
1314
+ // if the arrow modifier is required and the arrow style has been computed, apply the arrow style
1315
+ if (this.isModifierRequired(this.modifiers.applyStyle, this.modifiers.arrow) && data.offsets.arrow) {
1316
+ setStyle(data.arrowElement, data.offsets.arrow);
1317
+ }
1318
+
1319
+ return data;
1320
+ };
1321
+
1322
+ /**
1323
+ * Modifier used to shift the popper on the start or end of its reference element side
1324
+ * @method
1325
+ * @memberof Popper.modifiers
1326
+ * @argument {Object} data - The data object generated by `update` method
1327
+ * @returns {Object} The data object, properly modified
1328
+ */
1329
+ Popper.prototype.modifiers.shift = function (data) {
1330
+ var placement = data.placement;
1331
+ var basePlacement = placement.split('-')[0];
1332
+ var shiftVariation = placement.split('-')[1];
1333
+
1334
+ // if shift shiftVariation is specified, run the modifier
1335
+ if (shiftVariation) {
1336
+ var reference = data.offsets.reference;
1337
+ var popper = getPopperClientRect(data.offsets.popper);
1338
+
1339
+ var shiftOffsets = {
1340
+ y: {
1341
+ start: { top: reference.top },
1342
+ end: { top: reference.top + reference.height - popper.height }
1343
+ },
1344
+ x: {
1345
+ start: { left: reference.left },
1346
+ end: { left: reference.left + reference.width - popper.width }
1347
+ }
1348
+ };
1349
+
1350
+ var axis = ['bottom', 'top'].indexOf(basePlacement) !== -1 ? 'x' : 'y';
1351
+
1352
+ data.offsets.popper = Object.assign(popper, shiftOffsets[axis][shiftVariation]);
1353
+ }
1354
+
1355
+ return data;
1356
+ };
1357
+
1358
+ /**
1359
+ * Modifier used to make sure the popper does not overflows from it's boundaries
1360
+ * @method
1361
+ * @memberof Popper.modifiers
1362
+ * @argument {Object} data - The data object generated by `update` method
1363
+ * @returns {Object} The data object, properly modified
1364
+ */
1365
+ Popper.prototype.modifiers.preventOverflow = function (data) {
1366
+ var order = this._options.preventOverflowOrder;
1367
+ var popper = getPopperClientRect(data.offsets.popper);
1368
+
1369
+ var check = {
1370
+ left: function left() {
1371
+ var left = popper.left;
1372
+ if (popper.left < data.boundaries.left) {
1373
+ left = Math.max(popper.left, data.boundaries.left);
1374
+ }
1375
+ return { left: left };
1376
+ },
1377
+ right: function right() {
1378
+ var left = popper.left;
1379
+ if (popper.right > data.boundaries.right) {
1380
+ left = Math.min(popper.left, data.boundaries.right - popper.width);
1381
+ }
1382
+ return { left: left };
1383
+ },
1384
+ top: function top() {
1385
+ var top = popper.top;
1386
+ if (popper.top < data.boundaries.top) {
1387
+ top = Math.max(popper.top, data.boundaries.top);
1388
+ }
1389
+ return { top: top };
1390
+ },
1391
+ bottom: function bottom() {
1392
+ var top = popper.top;
1393
+ if (popper.bottom > data.boundaries.bottom) {
1394
+ top = Math.min(popper.top, data.boundaries.bottom - popper.height);
1395
+ }
1396
+ return { top: top };
1397
+ }
1398
+ };
1399
+
1400
+ order.forEach(function (direction) {
1401
+ data.offsets.popper = Object.assign(popper, check[direction]());
1402
+ });
1403
+
1404
+ return data;
1405
+ };
1406
+
1407
+ /**
1408
+ * Modifier used to make sure the popper is always near its reference
1409
+ * @method
1410
+ * @memberof Popper.modifiers
1411
+ * @argument {Object} data - The data object generated by _update method
1412
+ * @returns {Object} The data object, properly modified
1413
+ */
1414
+ Popper.prototype.modifiers.keepTogether = function (data) {
1415
+ var popper = getPopperClientRect(data.offsets.popper);
1416
+ var reference = data.offsets.reference;
1417
+ var f = Math.floor;
1418
+
1419
+ if (popper.right < f(reference.left)) {
1420
+ data.offsets.popper.left = f(reference.left) - popper.width;
1421
+ }
1422
+ if (popper.left > f(reference.right)) {
1423
+ data.offsets.popper.left = f(reference.right);
1424
+ }
1425
+ if (popper.bottom < f(reference.top)) {
1426
+ data.offsets.popper.top = f(reference.top) - popper.height;
1427
+ }
1428
+ if (popper.top > f(reference.bottom)) {
1429
+ data.offsets.popper.top = f(reference.bottom);
1430
+ }
1431
+
1432
+ return data;
1433
+ };
1434
+
1435
+ /**
1436
+ * Modifier used to flip the placement of the popper when the latter is starting overlapping its reference element.
1437
+ * Requires the `preventOverflow` modifier before it in order to work.
1438
+ * **NOTE:** This modifier will run all its previous modifiers everytime it tries to flip the popper!
1439
+ * @method
1440
+ * @memberof Popper.modifiers
1441
+ * @argument {Object} data - The data object generated by _update method
1442
+ * @returns {Object} The data object, properly modified
1443
+ */
1444
+ Popper.prototype.modifiers.flip = function (data) {
1445
+ // check if preventOverflow is in the list of modifiers before the flip modifier.
1446
+ // otherwise flip would not work as expected.
1447
+ if (!this.isModifierRequired(this.modifiers.flip, this.modifiers.preventOverflow)) {
1448
+ console.warn('WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!');
1449
+ return data;
1450
+ }
1451
+
1452
+ if (data.flipped && data.placement === data._originalPlacement) {
1453
+ // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides
1454
+ return data;
1455
+ }
1456
+
1457
+ var placement = data.placement.split('-')[0];
1458
+ var placementOpposite = getOppositePlacement(placement);
1459
+ var variation = data.placement.split('-')[1] || '';
1460
+
1461
+ var flipOrder = [];
1462
+ if (this._options.flipBehavior === 'flip') {
1463
+ flipOrder = [placement, placementOpposite];
1464
+ } else {
1465
+ flipOrder = this._options.flipBehavior;
1466
+ }
1467
+
1468
+ flipOrder.forEach(function (step, index) {
1469
+ if (placement !== step || flipOrder.length === index + 1) {
1470
+ return;
1471
+ }
1472
+
1473
+ placement = data.placement.split('-')[0];
1474
+ placementOpposite = getOppositePlacement(placement);
1475
+
1476
+ var popperOffsets = getPopperClientRect(data.offsets.popper);
1477
+
1478
+ // this boolean is used to distinguish right and bottom from top and left
1479
+ // they need different computations to get flipped
1480
+ var a = ['right', 'bottom'].indexOf(placement) !== -1;
1481
+
1482
+ // using Math.floor because the reference offsets may contain decimals we are not going to consider here
1483
+ if (a && Math.floor(data.offsets.reference[placement]) > Math.floor(popperOffsets[placementOpposite]) || !a && Math.floor(data.offsets.reference[placement]) < Math.floor(popperOffsets[placementOpposite])) {
1484
+ // we'll use this boolean to detect any flip loop
1485
+ data.flipped = true;
1486
+ data.placement = flipOrder[index + 1];
1487
+ if (variation) {
1488
+ data.placement += '-' + variation;
1489
+ }
1490
+ data.offsets.popper = this._getOffsets(this._popper, this._reference, data.placement).popper;
1491
+
1492
+ data = this.runModifiers(data, this._options.modifiers, this._flip);
1493
+ }
1494
+ }.bind(this));
1495
+ return data;
1496
+ };
1497
+
1498
+ /**
1499
+ * Modifier used to add an offset to the popper, useful if you more granularity positioning your popper.
1500
+ * The offsets will shift the popper on the side of its reference element.
1501
+ * @method
1502
+ * @memberof Popper.modifiers
1503
+ * @argument {Object} data - The data object generated by _update method
1504
+ * @returns {Object} The data object, properly modified
1505
+ */
1506
+ Popper.prototype.modifiers.offset = function (data) {
1507
+ var offset = this._options.offset;
1508
+ var popper = data.offsets.popper;
1509
+
1510
+ if (data.placement.indexOf('left') !== -1) {
1511
+ popper.top -= offset;
1512
+ } else if (data.placement.indexOf('right') !== -1) {
1513
+ popper.top += offset;
1514
+ } else if (data.placement.indexOf('top') !== -1) {
1515
+ popper.left -= offset;
1516
+ } else if (data.placement.indexOf('bottom') !== -1) {
1517
+ popper.left += offset;
1518
+ }
1519
+ return data;
1520
+ };
1521
+
1522
+ /**
1523
+ * Modifier used to move the arrows on the edge of the popper to make sure them are always between the popper and the reference element
1524
+ * It will use the CSS outer size of the arrow element to know how many pixels of conjuction are needed
1525
+ * @method
1526
+ * @memberof Popper.modifiers
1527
+ * @argument {Object} data - The data object generated by _update method
1528
+ * @returns {Object} The data object, properly modified
1529
+ */
1530
+ Popper.prototype.modifiers.arrow = function (data) {
1531
+ var arrow = this._options.arrowElement;
1532
+ var arrowOffset = this._options.arrowOffset;
1533
+
1534
+ // if the arrowElement is a string, suppose it's a CSS selector
1535
+ if (typeof arrow === 'string') {
1536
+ arrow = this._popper.querySelector(arrow);
1537
+ }
1538
+
1539
+ // if arrow element is not found, don't run the modifier
1540
+ if (!arrow) {
1541
+ return data;
1542
+ }
1543
+
1544
+ // the arrow element must be child of its popper
1545
+ if (!this._popper.contains(arrow)) {
1546
+ console.warn('WARNING: `arrowElement` must be child of its popper element!');
1547
+ return data;
1548
+ }
1549
+
1550
+ // arrow depends on keepTogether in order to work
1551
+ if (!this.isModifierRequired(this.modifiers.arrow, this.modifiers.keepTogether)) {
1552
+ console.warn('WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!');
1553
+ return data;
1554
+ }
1555
+
1556
+ var arrowStyle = {};
1557
+ var placement = data.placement.split('-')[0];
1558
+ var popper = getPopperClientRect(data.offsets.popper);
1559
+ var reference = data.offsets.reference;
1560
+ var isVertical = ['left', 'right'].indexOf(placement) !== -1;
1561
+
1562
+ var len = isVertical ? 'height' : 'width';
1563
+ var side = isVertical ? 'top' : 'left';
1564
+ var translate = isVertical ? 'translateY' : 'translateX';
1565
+ var altSide = isVertical ? 'left' : 'top';
1566
+ var opSide = isVertical ? 'bottom' : 'right';
1567
+ var arrowSize = getOuterSizes(arrow)[len];
1568
+
1569
+ //
1570
+ // extends keepTogether behavior making sure the popper and its reference have enough pixels in conjuction
1571
+ //
1572
+
1573
+ // top/left side
1574
+ if (reference[opSide] - arrowSize < popper[side]) {
1575
+ data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowSize);
1576
+ }
1577
+ // bottom/right side
1578
+ if (reference[side] + arrowSize > popper[opSide]) {
1579
+ data.offsets.popper[side] += reference[side] + arrowSize - popper[opSide];
1580
+ }
1581
+
1582
+ // compute center of the popper
1583
+ var center = reference[side] + (arrowOffset || reference[len] / 2 - arrowSize / 2);
1584
+
1585
+ var sideValue = center - popper[side];
1586
+
1587
+ // prevent arrow from being placed not contiguously to its popper
1588
+ sideValue = Math.max(Math.min(popper[len] - arrowSize - 8, sideValue), 8);
1589
+ arrowStyle[side] = sideValue;
1590
+ arrowStyle[altSide] = ''; // make sure to remove any old style from the arrow
1591
+
1592
+ data.offsets.arrow = arrowStyle;
1593
+ data.arrowElement = arrow;
1594
+
1595
+ return data;
1596
+ };
1597
+
1598
+ //
1599
+ // Helpers
1600
+ //
1601
+
1602
+ /**
1603
+ * Get the outer sizes of the given element (offset size + margins)
1604
+ * @function
1605
+ * @ignore
1606
+ * @argument {Element} element
1607
+ * @returns {Object} object containing width and height properties
1608
+ */
1609
+ function getOuterSizes(element) {
1610
+ // NOTE: 1 DOM access here
1611
+ var _display = element.style.display,
1612
+ _visibility = element.style.visibility;
1613
+ element.style.display = 'block';element.style.visibility = 'hidden';
1614
+ var calcWidthToForceRepaint = element.offsetWidth;
1615
+
1616
+ // original method
1617
+ var styles = root.getComputedStyle(element);
1618
+ var x = parseFloat(styles.marginTop) + parseFloat(styles.marginBottom);
1619
+ var y = parseFloat(styles.marginLeft) + parseFloat(styles.marginRight);
1620
+ var result = { width: element.offsetWidth + y, height: element.offsetHeight + x };
1621
+
1622
+ // reset element styles
1623
+ element.style.display = _display;element.style.visibility = _visibility;
1624
+ return result;
1625
+ }
1626
+
1627
+ /**
1628
+ * Get the opposite placement of the given one/
1629
+ * @function
1630
+ * @ignore
1631
+ * @argument {String} placement
1632
+ * @returns {String} flipped placement
1633
+ */
1634
+ function getOppositePlacement(placement) {
1635
+ var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };
1636
+ return placement.replace(/left|right|bottom|top/g, function (matched) {
1637
+ return hash[matched];
1638
+ });
1639
+ }
1640
+
1641
+ /**
1642
+ * Given the popper offsets, generate an output similar to getBoundingClientRect
1643
+ * @function
1644
+ * @ignore
1645
+ * @argument {Object} popperOffsets
1646
+ * @returns {Object} ClientRect like output
1647
+ */
1648
+ function getPopperClientRect(popperOffsets) {
1649
+ var offsets = Object.assign({}, popperOffsets);
1650
+ offsets.right = offsets.left + offsets.width;
1651
+ offsets.bottom = offsets.top + offsets.height;
1652
+ return offsets;
1653
+ }
1654
+
1655
+ /**
1656
+ * Given an array and the key to find, returns its index
1657
+ * @function
1658
+ * @ignore
1659
+ * @argument {Array} arr
1660
+ * @argument keyToFind
1661
+ * @returns index or null
1662
+ */
1663
+ function getArrayKeyIndex(arr, keyToFind) {
1664
+ var i = 0,
1665
+ key;
1666
+ for (key in arr) {
1667
+ if (arr[key] === keyToFind) {
1668
+ return i;
1669
+ }
1670
+ i++;
1671
+ }
1672
+ return null;
1673
+ }
1674
+
1675
+ /**
1676
+ * Get CSS computed property of the given element
1677
+ * @function
1678
+ * @ignore
1679
+ * @argument {Eement} element
1680
+ * @argument {String} property
1681
+ */
1682
+ function getStyleComputedProperty(element, property) {
1683
+ // NOTE: 1 DOM access here
1684
+ var css = root.getComputedStyle(element, null);
1685
+ return css[property];
1686
+ }
1687
+
1688
+ /**
1689
+ * Returns the offset parent of the given element
1690
+ * @function
1691
+ * @ignore
1692
+ * @argument {Element} element
1693
+ * @returns {Element} offset parent
1694
+ */
1695
+ function getOffsetParent(element) {
1696
+ // NOTE: 1 DOM access here
1697
+ var offsetParent = element.offsetParent;
1698
+ return offsetParent === root.document.body || !offsetParent ? root.document.documentElement : offsetParent;
1699
+ }
1700
+
1701
+ /**
1702
+ * Returns the scrolling parent of the given element
1703
+ * @function
1704
+ * @ignore
1705
+ * @argument {Element} element
1706
+ * @returns {Element} offset parent
1707
+ */
1708
+ function getScrollParent(element) {
1709
+ var parent = element.parentNode;
1710
+
1711
+ if (!parent) {
1712
+ return element;
1713
+ }
1714
+
1715
+ if (parent === root.document) {
1716
+ // Firefox puts the scrollTOp value on `documentElement` instead of `body`, we then check which of them is
1717
+ // greater than 0 and return the proper element
1718
+ if (root.document.body.scrollTop || root.document.body.scrollLeft) {
1719
+ return root.document.body;
1720
+ } else {
1721
+ return root.document.documentElement;
1722
+ }
1723
+ }
1724
+
1725
+ // Firefox want us to check `-x` and `-y` variations as well
1726
+ if (['scroll', 'auto'].indexOf(getStyleComputedProperty(parent, 'overflow')) !== -1 || ['scroll', 'auto'].indexOf(getStyleComputedProperty(parent, 'overflow-x')) !== -1 || ['scroll', 'auto'].indexOf(getStyleComputedProperty(parent, 'overflow-y')) !== -1) {
1727
+ // If the detected scrollParent is body, we perform an additional check on its parentNode
1728
+ // in this way we'll get body if the browser is Chrome-ish, or documentElement otherwise
1729
+ // fixes issue #65
1730
+ return parent;
1731
+ }
1732
+ return getScrollParent(element.parentNode);
1733
+ }
1734
+
1735
+ /**
1736
+ * Check if the given element is fixed or is inside a fixed parent
1737
+ * @function
1738
+ * @ignore
1739
+ * @argument {Element} element
1740
+ * @argument {Element} customContainer
1741
+ * @returns {Boolean} answer to "isFixed?"
1742
+ */
1743
+ function isFixed(element) {
1744
+ if (element === root.document.body) {
1745
+ return false;
1746
+ }
1747
+ if (getStyleComputedProperty(element, 'position') === 'fixed') {
1748
+ return true;
1749
+ }
1750
+ return element.parentNode ? isFixed(element.parentNode) : element;
1751
+ }
1752
+
1753
+ /**
1754
+ * Set the style to the given popper
1755
+ * @function
1756
+ * @ignore
1757
+ * @argument {Element} element - Element to apply the style to
1758
+ * @argument {Object} styles - Object with a list of properties and values which will be applied to the element
1759
+ */
1760
+ function setStyle(element, styles) {
1761
+ function is_numeric(n) {
1762
+ return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);
1763
+ }
1764
+ Object.keys(styles).forEach(function (prop) {
1765
+ var unit = '';
1766
+ // add unit if the value is numeric and is one of the following
1767
+ if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && is_numeric(styles[prop])) {
1768
+ unit = 'px';
1769
+ }
1770
+ element.style[prop] = styles[prop] + unit;
1771
+ });
1772
+ }
1773
+
1774
+ /**
1775
+ * Check if the given variable is a function
1776
+ * @function
1777
+ * @ignore
1778
+ * @argument {*} functionToCheck - variable to check
1779
+ * @returns {Boolean} answer to: is a function?
1780
+ */
1781
+ function isFunction(functionToCheck) {
1782
+ var getType = {};
1783
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
1784
+ }
1785
+
1786
+ /**
1787
+ * Get the position of the given element, relative to its offset parent
1788
+ * @function
1789
+ * @ignore
1790
+ * @param {Element} element
1791
+ * @return {Object} position - Coordinates of the element and its `scrollTop`
1792
+ */
1793
+ function getOffsetRect(element) {
1794
+ var elementRect = {
1795
+ width: element.offsetWidth,
1796
+ height: element.offsetHeight,
1797
+ left: element.offsetLeft,
1798
+ top: element.offsetTop
1799
+ };
1800
+
1801
+ elementRect.right = elementRect.left + elementRect.width;
1802
+ elementRect.bottom = elementRect.top + elementRect.height;
1803
+
1804
+ // position
1805
+ return elementRect;
1806
+ }
1807
+
1808
+ /**
1809
+ * Get bounding client rect of given element
1810
+ * @function
1811
+ * @ignore
1812
+ * @param {HTMLElement} element
1813
+ * @return {Object} client rect
1814
+ */
1815
+ function getBoundingClientRect(element) {
1816
+ var rect = element.getBoundingClientRect();
1817
+
1818
+ // whether the IE version is lower than 11
1819
+ var isIE = navigator.userAgent.indexOf("MSIE") != -1;
1820
+
1821
+ // fix ie document bounding top always 0 bug
1822
+ var rectTop = isIE && element.tagName === 'HTML' ? -element.scrollTop : rect.top;
1823
+
1824
+ return {
1825
+ left: rect.left,
1826
+ top: rectTop,
1827
+ right: rect.right,
1828
+ bottom: rect.bottom,
1829
+ width: rect.right - rect.left,
1830
+ height: rect.bottom - rectTop
1831
+ };
1832
+ }
1833
+
1834
+ /**
1835
+ * Given an element and one of its parents, return the offset
1836
+ * @function
1837
+ * @ignore
1838
+ * @param {HTMLElement} element
1839
+ * @param {HTMLElement} parent
1840
+ * @return {Object} rect
1841
+ */
1842
+ function getOffsetRectRelativeToCustomParent(element, parent, fixed) {
1843
+ var elementRect = getBoundingClientRect(element);
1844
+ var parentRect = getBoundingClientRect(parent);
1845
+
1846
+ if (fixed) {
1847
+ var scrollParent = getScrollParent(parent);
1848
+ parentRect.top += scrollParent.scrollTop;
1849
+ parentRect.bottom += scrollParent.scrollTop;
1850
+ parentRect.left += scrollParent.scrollLeft;
1851
+ parentRect.right += scrollParent.scrollLeft;
1852
+ }
1853
+
1854
+ var rect = {
1855
+ top: elementRect.top - parentRect.top,
1856
+ left: elementRect.left - parentRect.left,
1857
+ bottom: elementRect.top - parentRect.top + elementRect.height,
1858
+ right: elementRect.left - parentRect.left + elementRect.width,
1859
+ width: elementRect.width,
1860
+ height: elementRect.height
1861
+ };
1862
+ return rect;
1863
+ }
1864
+
1865
+ /**
1866
+ * Get the prefixed supported property name
1867
+ * @function
1868
+ * @ignore
1869
+ * @argument {String} property (camelCase)
1870
+ * @returns {String} prefixed property (camelCase)
1871
+ */
1872
+ function getSupportedPropertyName(property) {
1873
+ var prefixes = ['', 'ms', 'webkit', 'moz', 'o'];
1874
+
1875
+ for (var i = 0; i < prefixes.length; i++) {
1876
+ var toCheck = prefixes[i] ? prefixes[i] + property.charAt(0).toUpperCase() + property.slice(1) : property;
1877
+ if (typeof root.document.body.style[toCheck] !== 'undefined') {
1878
+ return toCheck;
1879
+ }
1880
+ }
1881
+ return null;
1882
+ }
1883
+
1884
+ /**
1885
+ * The Object.assign() method is used to copy the values of all enumerable own properties from one or more source
1886
+ * objects to a target object. It will return the target object.
1887
+ * This polyfill doesn't support symbol properties, since ES5 doesn't have symbols anyway
1888
+ * Source: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
1889
+ * @function
1890
+ * @ignore
1891
+ */
1892
+ if (!Object.assign) {
1893
+ Object.defineProperty(Object, 'assign', {
1894
+ enumerable: false,
1895
+ configurable: true,
1896
+ writable: true,
1897
+ value: function value(target) {
1898
+ if (target === undefined || target === null) {
1899
+ throw new TypeError('Cannot convert first argument to object');
1900
+ }
1901
+
1902
+ var to = Object(target);
1903
+ for (var i = 1; i < arguments.length; i++) {
1904
+ var nextSource = arguments[i];
1905
+ if (nextSource === undefined || nextSource === null) {
1906
+ continue;
1907
+ }
1908
+ nextSource = Object(nextSource);
1909
+
1910
+ var keysArray = Object.keys(nextSource);
1911
+ for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {
1912
+ var nextKey = keysArray[nextIndex];
1913
+ var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
1914
+ if (desc !== undefined && desc.enumerable) {
1915
+ to[nextKey] = nextSource[nextKey];
1916
+ }
1917
+ }
1918
+ }
1919
+ return to;
1920
+ }
1921
+ });
1922
+ }
1923
+
1924
+ return Popper;
1925
+ });
1926
+
1927
+ /***/ }),
1928
+
1929
+ /***/ 3:
1930
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1931
+
1932
+ "use strict";
1933
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
1934
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
1935
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
1936
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
1937
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
1938
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
1939
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
1940
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
1941
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
1942
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
1943
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
1944
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
1945
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
1946
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
1947
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
1948
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
1949
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
1950
+ /* unused harmony export looseEqual */
1951
+ /* unused harmony export arrayEquals */
1952
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
1953
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
1954
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
1955
+ /* unused harmony export objToArray */
1956
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
1957
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1958
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
1959
+ /* harmony import */ var element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
1960
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
1961
+
1962
+
1963
+
1964
+
1965
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
1966
+
1967
+ function noop() {};
1968
+
1969
+ function hasOwn(obj, key) {
1970
+ return hasOwnProperty.call(obj, key);
1971
+ };
1972
+
1973
+ function extend(to, _from) {
1974
+ for (var key in _from) {
1975
+ to[key] = _from[key];
1976
+ }
1977
+ return to;
1978
+ };
1979
+
1980
+ function toObject(arr) {
1981
+ var res = {};
1982
+ for (var i = 0; i < arr.length; i++) {
1983
+ if (arr[i]) {
1984
+ extend(res, arr[i]);
1985
+ }
1986
+ }
1987
+ return res;
1988
+ };
1989
+
1990
+ var getValueByPath = function getValueByPath(object, prop) {
1991
+ prop = prop || '';
1992
+ var paths = prop.split('.');
1993
+ var current = object;
1994
+ var result = null;
1995
+ for (var i = 0, j = paths.length; i < j; i++) {
1996
+ var path = paths[i];
1997
+ if (!current) break;
1998
+
1999
+ if (i === j - 1) {
2000
+ result = current[path];
2001
+ break;
2002
+ }
2003
+ current = current[path];
2004
+ }
2005
+ return result;
2006
+ };
2007
+
2008
+ function getPropByPath(obj, path, strict) {
2009
+ var tempObj = obj;
2010
+ path = path.replace(/\[(\w+)\]/g, '.$1');
2011
+ path = path.replace(/^\./, '');
2012
+
2013
+ var keyArr = path.split('.');
2014
+ var i = 0;
2015
+ for (var len = keyArr.length; i < len - 1; ++i) {
2016
+ if (!tempObj && !strict) break;
2017
+ var key = keyArr[i];
2018
+ if (key in tempObj) {
2019
+ tempObj = tempObj[key];
2020
+ } else {
2021
+ if (strict) {
2022
+ throw new Error('please transfer a valid prop path to form item!');
2023
+ }
2024
+ break;
2025
+ }
2026
+ }
2027
+ return {
2028
+ o: tempObj,
2029
+ k: keyArr[i],
2030
+ v: tempObj ? tempObj[keyArr[i]] : null
2031
+ };
2032
+ };
2033
+
2034
+ var generateId = function generateId() {
2035
+ return Math.floor(Math.random() * 10000);
2036
+ };
2037
+
2038
+ var valueEquals = function valueEquals(a, b) {
2039
+ // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
2040
+ if (a === b) return true;
2041
+ if (!(a instanceof Array)) return false;
2042
+ if (!(b instanceof Array)) return false;
2043
+ if (a.length !== b.length) return false;
2044
+ for (var i = 0; i !== a.length; ++i) {
2045
+ if (a[i] !== b[i]) return false;
2046
+ }
2047
+ return true;
2048
+ };
2049
+
2050
+ var escapeRegexpString = function escapeRegexpString() {
2051
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
2052
+ return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
2053
+ };
2054
+
2055
+ // TODO: use native Array.find, Array.findIndex when IE support is dropped
2056
+ var arrayFindIndex = function arrayFindIndex(arr, pred) {
2057
+ for (var i = 0; i !== arr.length; ++i) {
2058
+ if (pred(arr[i])) {
2059
+ return i;
2060
+ }
2061
+ }
2062
+ return -1;
2063
+ };
2064
+
2065
+ var arrayFind = function arrayFind(arr, pred) {
2066
+ var idx = arrayFindIndex(arr, pred);
2067
+ return idx !== -1 ? arr[idx] : undefined;
2068
+ };
2069
+
2070
+ // coerce truthy value to array
2071
+ var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
2072
+ if (Array.isArray(val)) {
2073
+ return val;
2074
+ } else if (val) {
2075
+ return [val];
2076
+ } else {
2077
+ return [];
2078
+ }
2079
+ };
2080
+
2081
+ var isIE = function isIE() {
2082
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
2083
+ };
2084
+
2085
+ var isEdge = function isEdge() {
2086
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
2087
+ };
2088
+
2089
+ var isFirefox = function isFirefox() {
2090
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
2091
+ };
2092
+
2093
+ var autoprefixer = function autoprefixer(style) {
2094
+ if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
2095
+ var rules = ['transform', 'transition', 'animation'];
2096
+ var prefixes = ['ms-', 'webkit-'];
2097
+ rules.forEach(function (rule) {
2098
+ var value = style[rule];
2099
+ if (rule && value) {
2100
+ prefixes.forEach(function (prefix) {
2101
+ style[prefix + rule] = value;
2102
+ });
2103
+ }
2104
+ });
2105
+ return style;
2106
+ };
2107
+
2108
+ var kebabCase = function kebabCase(str) {
2109
+ var hyphenateRE = /([^-])([A-Z])/g;
2110
+ return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
2111
+ };
2112
+
2113
+ var capitalize = function capitalize(str) {
2114
+ if (!Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isString */ "e"])(str)) return str;
2115
+ return str.charAt(0).toUpperCase() + str.slice(1);
2116
+ };
2117
+
2118
+ var looseEqual = function looseEqual(a, b) {
2119
+ var isObjectA = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(a);
2120
+ var isObjectB = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(b);
2121
+ if (isObjectA && isObjectB) {
2122
+ return JSON.stringify(a) === JSON.stringify(b);
2123
+ } else if (!isObjectA && !isObjectB) {
2124
+ return String(a) === String(b);
2125
+ } else {
2126
+ return false;
2127
+ }
2128
+ };
2129
+
2130
+ var arrayEquals = function arrayEquals(arrayA, arrayB) {
2131
+ arrayA = arrayA || [];
2132
+ arrayB = arrayB || [];
2133
+
2134
+ if (arrayA.length !== arrayB.length) {
2135
+ return false;
2136
+ }
2137
+
2138
+ for (var i = 0; i < arrayA.length; i++) {
2139
+ if (!looseEqual(arrayA[i], arrayB[i])) {
2140
+ return false;
2141
+ }
2142
+ }
2143
+
2144
+ return true;
2145
+ };
2146
+
2147
+ var isEqual = function isEqual(value1, value2) {
2148
+ if (Array.isArray(value1) && Array.isArray(value2)) {
2149
+ return arrayEquals(value1, value2);
2150
+ }
2151
+ return looseEqual(value1, value2);
2152
+ };
2153
+
2154
+ var isEmpty = function isEmpty(val) {
2155
+ // null or undefined
2156
+ if (val == null) return true;
2157
+
2158
+ if (typeof val === 'boolean') return false;
2159
+
2160
+ if (typeof val === 'number') return !val;
2161
+
2162
+ if (val instanceof Error) return val.message === '';
2163
+
2164
+ switch (Object.prototype.toString.call(val)) {
2165
+ // String or Array
2166
+ case '[object String]':
2167
+ case '[object Array]':
2168
+ return !val.length;
2169
+
2170
+ // Map or Set or File
2171
+ case '[object File]':
2172
+ case '[object Map]':
2173
+ case '[object Set]':
2174
+ {
2175
+ return !val.size;
2176
+ }
2177
+ // Plain Object
2178
+ case '[object Object]':
2179
+ {
2180
+ return !Object.keys(val).length;
2181
+ }
2182
+ }
2183
+
2184
+ return false;
2185
+ };
2186
+
2187
+ function rafThrottle(fn) {
2188
+ var locked = false;
2189
+ return function () {
2190
+ var _this = this;
2191
+
2192
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
2193
+ args[_key] = arguments[_key];
2194
+ }
2195
+
2196
+ if (locked) return;
2197
+ locked = true;
2198
+ window.requestAnimationFrame(function (_) {
2199
+ fn.apply(_this, args);
2200
+ locked = false;
2201
+ });
2202
+ };
2203
+ }
2204
+
2205
+ function objToArray(obj) {
2206
+ if (Array.isArray(obj)) {
2207
+ return obj;
2208
+ }
2209
+ return isEmpty(obj) ? [] : [obj];
2210
+ }
2211
+
2212
+ var isMac = function isMac() {
2213
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
2214
+ };
2215
+
2216
+ /***/ }),
2217
+
2218
+ /***/ 4:
2219
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2220
+
2221
+ "use strict";
2222
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
2223
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
2224
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
2225
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
2226
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
2227
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
2228
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2229
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
2230
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
2231
+
2232
+
2233
+
2234
+ function isString(obj) {
2235
+ return Object.prototype.toString.call(obj) === '[object String]';
2236
+ }
2237
+
2238
+ function isObject(obj) {
2239
+ return Object.prototype.toString.call(obj) === '[object Object]';
2240
+ }
2241
+
2242
+ function isHtmlElement(node) {
2243
+ return node && node.nodeType === Node.ELEMENT_NODE;
2244
+ }
2245
+
2246
+ /**
2247
+ * - Inspired:
2248
+ * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
2249
+ */
2250
+ var isFunction = function isFunction(functionToCheck) {
2251
+ var getType = {};
2252
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
2253
+ };
2254
+
2255
+ if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
2256
+ isFunction = function isFunction(obj) {
2257
+ return typeof obj === 'function' || false;
2258
+ };
2259
+ }
2260
+
2261
+
2262
+
2263
+ var isUndefined = function isUndefined(val) {
2264
+ return val === void 0;
2265
+ };
2266
+
2267
+ var isDefined = function isDefined(val) {
2268
+ return val !== undefined && val !== null;
2269
+ };
2270
+
2271
+ /***/ }),
2272
+
2273
+ /***/ 40:
91
2274
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
2275
 
93
2276
  "use strict";
94
2277
  // ESM COMPAT FLAG
95
2278
  __webpack_require__.r(__webpack_exports__);
96
2279
 
97
- // EXTERNAL MODULE: external "element-ui/lib/utils/vue-popper"
98
- var vue_popper_ = __webpack_require__(5);
99
- var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
2280
+ // EXTERNAL MODULE: ./src/utils/vue-popper.js
2281
+ var vue_popper = __webpack_require__(10);
100
2282
 
101
- // EXTERNAL MODULE: external "throttle-debounce/debounce"
102
- var debounce_ = __webpack_require__(19);
103
- var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
2283
+ // EXTERNAL MODULE: ./node_modules/throttle-debounce/debounce.js
2284
+ var debounce = __webpack_require__(16);
2285
+ var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce);
104
2286
 
105
- // EXTERNAL MODULE: external "element-ui/lib/utils/dom"
106
- var dom_ = __webpack_require__(2);
2287
+ // EXTERNAL MODULE: ./src/utils/dom.js
2288
+ var dom = __webpack_require__(1);
107
2289
 
108
- // EXTERNAL MODULE: external "element-ui/lib/utils/util"
109
- var util_ = __webpack_require__(3);
2290
+ // EXTERNAL MODULE: ./src/utils/util.js
2291
+ var util = __webpack_require__(3);
110
2292
 
111
2293
  // EXTERNAL MODULE: external "vue"
112
- var external_vue_ = __webpack_require__(7);
2294
+ var external_vue_ = __webpack_require__(0);
113
2295
  var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
114
2296
 
115
2297
  // CONCATENATED MODULE: ./packages/tooltip/src/main.js
@@ -122,7 +2304,7 @@ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
122
2304
  /* harmony default export */ var main = ({
123
2305
  name: 'ElTooltip',
124
2306
 
125
- mixins: [vue_popper_default.a],
2307
+ mixins: [vue_popper["a" /* default */]],
126
2308
 
127
2309
  props: {
128
2310
  openDelay: {
@@ -172,7 +2354,7 @@ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
172
2354
 
173
2355
  data: function data() {
174
2356
  return {
175
- tooltipId: 'el-tooltip-' + Object(util_["generateId"])(),
2357
+ tooltipId: 'el-tooltip-' + Object(util["g" /* generateId */])(),
176
2358
  timeoutPending: null,
177
2359
  focusing: false
178
2360
  };
@@ -250,9 +2432,9 @@ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
250
2432
  if (this.$el.nodeType === 1) {
251
2433
  this.$el.setAttribute('aria-describedby', this.tooltipId);
252
2434
  this.$el.setAttribute('tabindex', this.tabindex);
253
- Object(dom_["on"])(this.referenceElm, 'mouseenter', this.show);
254
- Object(dom_["on"])(this.referenceElm, 'mouseleave', this.hide);
255
- Object(dom_["on"])(this.referenceElm, 'focus', function () {
2435
+ Object(dom["g" /* on */])(this.referenceElm, 'mouseenter', this.show);
2436
+ Object(dom["g" /* on */])(this.referenceElm, 'mouseleave', this.hide);
2437
+ Object(dom["g" /* on */])(this.referenceElm, 'focus', function () {
256
2438
  if (!_this3.$slots.default || !_this3.$slots.default.length) {
257
2439
  _this3.handleFocus();
258
2440
  return;
@@ -264,8 +2446,8 @@ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
264
2446
  _this3.handleFocus();
265
2447
  }
266
2448
  });
267
- Object(dom_["on"])(this.referenceElm, 'blur', this.handleBlur);
268
- Object(dom_["on"])(this.referenceElm, 'click', this.removeFocusing);
2449
+ Object(dom["g" /* on */])(this.referenceElm, 'blur', this.handleBlur);
2450
+ Object(dom["g" /* on */])(this.referenceElm, 'click', this.removeFocusing);
269
2451
  }
270
2452
  // fix issue https://github.com/ElemeFE/element/issues/14424
271
2453
  if (this.value && this.popperVM) {
@@ -280,9 +2462,9 @@ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
280
2462
  watch: {
281
2463
  focusing: function focusing(val) {
282
2464
  if (val) {
283
- Object(dom_["addClass"])(this.referenceElm, 'focusing');
2465
+ Object(dom["a" /* addClass */])(this.referenceElm, 'focusing');
284
2466
  } else {
285
- Object(dom_["removeClass"])(this.referenceElm, 'focusing');
2467
+ Object(dom["i" /* removeClass */])(this.referenceElm, 'focusing');
286
2468
  }
287
2469
  }
288
2470
  },
@@ -367,11 +2549,11 @@ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
367
2549
  destroyed: function destroyed() {
368
2550
  var reference = this.referenceElm;
369
2551
  if (reference.nodeType === 1) {
370
- Object(dom_["off"])(reference, 'mouseenter', this.show);
371
- Object(dom_["off"])(reference, 'mouseleave', this.hide);
372
- Object(dom_["off"])(reference, 'focus', this.handleFocus);
373
- Object(dom_["off"])(reference, 'blur', this.handleBlur);
374
- Object(dom_["off"])(reference, 'click', this.removeFocusing);
2552
+ Object(dom["f" /* off */])(reference, 'mouseenter', this.show);
2553
+ Object(dom["f" /* off */])(reference, 'mouseleave', this.hide);
2554
+ Object(dom["f" /* off */])(reference, 'focus', this.handleFocus);
2555
+ Object(dom["f" /* off */])(reference, 'blur', this.handleBlur);
2556
+ Object(dom["f" /* off */])(reference, 'click', this.removeFocusing);
375
2557
  }
376
2558
  }
377
2559
  });
@@ -387,38 +2569,500 @@ main.install = function (Vue) {
387
2569
 
388
2570
  /***/ }),
389
2571
 
390
- /***/ 19:
391
- /***/ (function(module, exports) {
2572
+ /***/ 7:
2573
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2574
+
2575
+ "use strict";
2576
+ /* harmony default export */ __webpack_exports__["a"] = (function (target) {
2577
+ for (var i = 1, j = arguments.length; i < j; i++) {
2578
+ var source = arguments[i] || {};
2579
+ for (var prop in source) {
2580
+ if (source.hasOwnProperty(prop)) {
2581
+ var value = source[prop];
2582
+ if (value !== undefined) {
2583
+ target[prop] = value;
2584
+ }
2585
+ }
2586
+ }
2587
+ }
392
2588
 
393
- module.exports = require("throttle-debounce/debounce");
2589
+ return target;
2590
+ });;
394
2591
 
395
2592
  /***/ }),
396
2593
 
397
- /***/ 2:
398
- /***/ (function(module, exports) {
2594
+ /***/ 8:
2595
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
399
2596
 
400
- module.exports = require("element-ui/lib/utils/dom");
2597
+ "use strict";
2598
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2599
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
401
2600
 
402
- /***/ }),
403
2601
 
404
- /***/ 3:
405
- /***/ (function(module, exports) {
2602
+ var scrollBarWidth = void 0;
406
2603
 
407
- module.exports = require("element-ui/lib/utils/util");
2604
+ /* harmony default export */ __webpack_exports__["a"] = (function () {
2605
+ if (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer) return 0;
2606
+ if (scrollBarWidth !== undefined) return scrollBarWidth;
408
2607
 
409
- /***/ }),
2608
+ var outer = document.createElement('div');
2609
+ outer.className = 'el-scrollbar__wrap';
2610
+ outer.style.visibility = 'hidden';
2611
+ outer.style.width = '100px';
2612
+ outer.style.position = 'absolute';
2613
+ outer.style.top = '-9999px';
2614
+ document.body.appendChild(outer);
410
2615
 
411
- /***/ 5:
412
- /***/ (function(module, exports) {
2616
+ var widthNoScroll = outer.offsetWidth;
2617
+ outer.style.overflow = 'scroll';
2618
+
2619
+ var inner = document.createElement('div');
2620
+ inner.style.width = '100%';
2621
+ outer.appendChild(inner);
413
2622
 
414
- module.exports = require("element-ui/lib/utils/vue-popper");
2623
+ var widthWithScroll = inner.offsetWidth;
2624
+ outer.parentNode.removeChild(outer);
2625
+ scrollBarWidth = widthNoScroll - widthWithScroll;
2626
+
2627
+ return scrollBarWidth;
2628
+ });;
415
2629
 
416
2630
  /***/ }),
417
2631
 
418
- /***/ 7:
419
- /***/ (function(module, exports) {
2632
+ /***/ 9:
2633
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2634
+
2635
+ "use strict";
2636
+
2637
+ // EXPORTS
2638
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ popup_manager; });
2639
+
2640
+ // EXTERNAL MODULE: external "vue"
2641
+ var external_vue_ = __webpack_require__(0);
2642
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
2643
+
2644
+ // EXTERNAL MODULE: ./src/utils/merge.js
2645
+ var merge = __webpack_require__(7);
2646
+
2647
+ // EXTERNAL MODULE: ./src/utils/dom.js
2648
+ var utils_dom = __webpack_require__(1);
2649
+
2650
+ // CONCATENATED MODULE: ./src/utils/popup/popup-manager.js
2651
+
2652
+
2653
+
2654
+ var hasModal = false;
2655
+ var hasInitZIndex = false;
2656
+ var popup_manager_zIndex = void 0;
2657
+
2658
+ var popup_manager_getModal = function getModal() {
2659
+ if (external_vue_default.a.prototype.$isServer) return;
2660
+ var modalDom = PopupManager.modalDom;
2661
+ if (modalDom) {
2662
+ hasModal = true;
2663
+ } else {
2664
+ hasModal = false;
2665
+ modalDom = document.createElement('div');
2666
+ PopupManager.modalDom = modalDom;
2667
+
2668
+ modalDom.addEventListener('touchmove', function (event) {
2669
+ event.preventDefault();
2670
+ event.stopPropagation();
2671
+ });
2672
+
2673
+ modalDom.addEventListener('click', function () {
2674
+ PopupManager.doOnModalClick && PopupManager.doOnModalClick();
2675
+ });
2676
+ }
2677
+
2678
+ return modalDom;
2679
+ };
2680
+
2681
+ var instances = {};
2682
+
2683
+ var PopupManager = {
2684
+ modalFade: true,
2685
+
2686
+ getInstance: function getInstance(id) {
2687
+ return instances[id];
2688
+ },
2689
+
2690
+ register: function register(id, instance) {
2691
+ if (id && instance) {
2692
+ instances[id] = instance;
2693
+ }
2694
+ },
2695
+
2696
+ deregister: function deregister(id) {
2697
+ if (id) {
2698
+ instances[id] = null;
2699
+ delete instances[id];
2700
+ }
2701
+ },
2702
+
2703
+ nextZIndex: function nextZIndex() {
2704
+ return PopupManager.zIndex++;
2705
+ },
2706
+
2707
+ modalStack: [],
2708
+
2709
+ doOnModalClick: function doOnModalClick() {
2710
+ var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1];
2711
+ if (!topItem) return;
2712
+
2713
+ var instance = PopupManager.getInstance(topItem.id);
2714
+ if (instance && instance.closeOnClickModal) {
2715
+ instance.close();
2716
+ }
2717
+ },
2718
+
2719
+ openModal: function openModal(id, zIndex, dom, modalClass, modalFade) {
2720
+ if (external_vue_default.a.prototype.$isServer) return;
2721
+ if (!id || zIndex === undefined) return;
2722
+ this.modalFade = modalFade;
2723
+
2724
+ var modalStack = this.modalStack;
2725
+
2726
+ for (var i = 0, j = modalStack.length; i < j; i++) {
2727
+ var item = modalStack[i];
2728
+ if (item.id === id) {
2729
+ return;
2730
+ }
2731
+ }
2732
+
2733
+ var modalDom = popup_manager_getModal();
2734
+
2735
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal');
2736
+ if (this.modalFade && !hasModal) {
2737
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-enter');
2738
+ }
2739
+ if (modalClass) {
2740
+ var classArr = modalClass.trim().split(/\s+/);
2741
+ classArr.forEach(function (item) {
2742
+ return Object(utils_dom["a" /* addClass */])(modalDom, item);
2743
+ });
2744
+ }
2745
+ setTimeout(function () {
2746
+ Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-enter');
2747
+ }, 200);
2748
+
2749
+ if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
2750
+ dom.parentNode.appendChild(modalDom);
2751
+ } else {
2752
+ document.body.appendChild(modalDom);
2753
+ }
2754
+
2755
+ if (zIndex) {
2756
+ modalDom.style.zIndex = zIndex;
2757
+ }
2758
+ modalDom.tabIndex = 0;
2759
+ modalDom.style.display = '';
2760
+
2761
+ this.modalStack.push({ id: id, zIndex: zIndex, modalClass: modalClass });
2762
+ },
2763
+
2764
+ closeModal: function closeModal(id) {
2765
+ var modalStack = this.modalStack;
2766
+ var modalDom = popup_manager_getModal();
2767
+
2768
+ if (modalStack.length > 0) {
2769
+ var topItem = modalStack[modalStack.length - 1];
2770
+ if (topItem.id === id) {
2771
+ if (topItem.modalClass) {
2772
+ var classArr = topItem.modalClass.trim().split(/\s+/);
2773
+ classArr.forEach(function (item) {
2774
+ return Object(utils_dom["i" /* removeClass */])(modalDom, item);
2775
+ });
2776
+ }
2777
+
2778
+ modalStack.pop();
2779
+ if (modalStack.length > 0) {
2780
+ modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex;
2781
+ }
2782
+ } else {
2783
+ for (var i = modalStack.length - 1; i >= 0; i--) {
2784
+ if (modalStack[i].id === id) {
2785
+ modalStack.splice(i, 1);
2786
+ break;
2787
+ }
2788
+ }
2789
+ }
2790
+ }
2791
+
2792
+ if (modalStack.length === 0) {
2793
+ if (this.modalFade) {
2794
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-leave');
2795
+ }
2796
+ setTimeout(function () {
2797
+ if (modalStack.length === 0) {
2798
+ if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
2799
+ modalDom.style.display = 'none';
2800
+ PopupManager.modalDom = undefined;
2801
+ }
2802
+ Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-leave');
2803
+ }, 200);
2804
+ }
2805
+ }
2806
+ };
2807
+
2808
+ Object.defineProperty(PopupManager, 'zIndex', {
2809
+ configurable: true,
2810
+ get: function get() {
2811
+ if (!hasInitZIndex) {
2812
+ popup_manager_zIndex = popup_manager_zIndex || (external_vue_default.a.prototype.$ELEMENT || {}).zIndex || 2000;
2813
+ hasInitZIndex = true;
2814
+ }
2815
+ return popup_manager_zIndex;
2816
+ },
2817
+ set: function set(value) {
2818
+ popup_manager_zIndex = value;
2819
+ }
2820
+ });
2821
+
2822
+ var popup_manager_getTopPopup = function getTopPopup() {
2823
+ if (external_vue_default.a.prototype.$isServer) return;
2824
+ if (PopupManager.modalStack.length > 0) {
2825
+ var topPopup = PopupManager.modalStack[PopupManager.modalStack.length - 1];
2826
+ if (!topPopup) return;
2827
+ var instance = PopupManager.getInstance(topPopup.id);
2828
+
2829
+ return instance;
2830
+ }
2831
+ };
2832
+
2833
+ if (!external_vue_default.a.prototype.$isServer) {
2834
+ // handle `esc` key when the popup is shown
2835
+ window.addEventListener('keydown', function (event) {
2836
+ if (event.keyCode === 27) {
2837
+ var topPopup = popup_manager_getTopPopup();
2838
+
2839
+ if (topPopup && topPopup.closeOnPressEscape) {
2840
+ topPopup.handleClose ? topPopup.handleClose() : topPopup.handleAction ? topPopup.handleAction('cancel') : topPopup.close();
2841
+ }
2842
+ }
2843
+ });
2844
+ }
2845
+
2846
+ /* harmony default export */ var popup_manager = (PopupManager);
2847
+ // EXTERNAL MODULE: ./src/utils/scrollbar-width.js
2848
+ var scrollbar_width = __webpack_require__(8);
2849
+
2850
+ // CONCATENATED MODULE: ./src/utils/popup/index.js
2851
+
2852
+
2853
+
2854
+
2855
+
2856
+
2857
+ var idSeed = 1;
2858
+
2859
+ var scrollBarWidth = void 0;
2860
+
2861
+ /* harmony default export */ var popup = __webpack_exports__["b"] = ({
2862
+ props: {
2863
+ visible: {
2864
+ type: Boolean,
2865
+ default: false
2866
+ },
2867
+ openDelay: {},
2868
+ closeDelay: {},
2869
+ zIndex: {},
2870
+ modal: {
2871
+ type: Boolean,
2872
+ default: false
2873
+ },
2874
+ modalFade: {
2875
+ type: Boolean,
2876
+ default: true
2877
+ },
2878
+ modalClass: {},
2879
+ modalAppendToBody: {
2880
+ type: Boolean,
2881
+ default: false
2882
+ },
2883
+ lockScroll: {
2884
+ type: Boolean,
2885
+ default: true
2886
+ },
2887
+ closeOnPressEscape: {
2888
+ type: Boolean,
2889
+ default: false
2890
+ },
2891
+ closeOnClickModal: {
2892
+ type: Boolean,
2893
+ default: false
2894
+ }
2895
+ },
2896
+
2897
+ beforeMount: function beforeMount() {
2898
+ this._popupId = 'popup-' + idSeed++;
2899
+ popup_manager.register(this._popupId, this);
2900
+ },
2901
+ beforeDestroy: function beforeDestroy() {
2902
+ popup_manager.deregister(this._popupId);
2903
+ popup_manager.closeModal(this._popupId);
2904
+
2905
+ this.restoreBodyStyle();
2906
+ },
2907
+ data: function data() {
2908
+ return {
2909
+ opened: false,
2910
+ bodyPaddingRight: null,
2911
+ computedBodyPaddingRight: 0,
2912
+ withoutHiddenClass: true,
2913
+ rendered: false
2914
+ };
2915
+ },
2916
+
2917
+
2918
+ watch: {
2919
+ visible: function visible(val) {
2920
+ var _this = this;
2921
+
2922
+ if (val) {
2923
+ if (this._opening) return;
2924
+ if (!this.rendered) {
2925
+ this.rendered = true;
2926
+ external_vue_default.a.nextTick(function () {
2927
+ _this.open();
2928
+ });
2929
+ } else {
2930
+ this.open();
2931
+ }
2932
+ } else {
2933
+ this.close();
2934
+ }
2935
+ }
2936
+ },
2937
+
2938
+ methods: {
2939
+ open: function open(options) {
2940
+ var _this2 = this;
2941
+
2942
+ if (!this.rendered) {
2943
+ this.rendered = true;
2944
+ }
2945
+
2946
+ var props = Object(merge["a" /* default */])({}, this.$props || this, options);
2947
+
2948
+ if (this._closeTimer) {
2949
+ clearTimeout(this._closeTimer);
2950
+ this._closeTimer = null;
2951
+ }
2952
+ clearTimeout(this._openTimer);
2953
+
2954
+ var openDelay = Number(props.openDelay);
2955
+ if (openDelay > 0) {
2956
+ this._openTimer = setTimeout(function () {
2957
+ _this2._openTimer = null;
2958
+ _this2.doOpen(props);
2959
+ }, openDelay);
2960
+ } else {
2961
+ this.doOpen(props);
2962
+ }
2963
+ },
2964
+ doOpen: function doOpen(props) {
2965
+ if (this.$isServer) return;
2966
+ if (this.willOpen && !this.willOpen()) return;
2967
+ if (this.opened) return;
2968
+
2969
+ this._opening = true;
2970
+
2971
+ var dom = this.$el;
2972
+
2973
+ var modal = props.modal;
2974
+
2975
+ var zIndex = props.zIndex;
2976
+ if (zIndex) {
2977
+ popup_manager.zIndex = zIndex;
2978
+ }
2979
+
2980
+ if (modal) {
2981
+ if (this._closing) {
2982
+ popup_manager.closeModal(this._popupId);
2983
+ this._closing = false;
2984
+ }
2985
+ popup_manager.openModal(this._popupId, popup_manager.nextZIndex(), this.modalAppendToBody ? undefined : dom, props.modalClass, props.modalFade);
2986
+ if (props.lockScroll) {
2987
+ this.withoutHiddenClass = !Object(utils_dom["d" /* hasClass */])(document.body, 'el-popup-parent--hidden');
2988
+ if (this.withoutHiddenClass) {
2989
+ this.bodyPaddingRight = document.body.style.paddingRight;
2990
+ this.computedBodyPaddingRight = parseInt(Object(utils_dom["c" /* getStyle */])(document.body, 'paddingRight'), 10);
2991
+ }
2992
+ scrollBarWidth = Object(scrollbar_width["a" /* default */])();
2993
+ var bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
2994
+ var bodyOverflowY = Object(utils_dom["c" /* getStyle */])(document.body, 'overflowY');
2995
+ if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === 'scroll') && this.withoutHiddenClass) {
2996
+ document.body.style.paddingRight = this.computedBodyPaddingRight + scrollBarWidth + 'px';
2997
+ }
2998
+ Object(utils_dom["a" /* addClass */])(document.body, 'el-popup-parent--hidden');
2999
+ }
3000
+ }
3001
+
3002
+ if (getComputedStyle(dom).position === 'static') {
3003
+ dom.style.position = 'absolute';
3004
+ }
3005
+
3006
+ dom.style.zIndex = popup_manager.nextZIndex();
3007
+ this.opened = true;
3008
+
3009
+ this.onOpen && this.onOpen();
3010
+
3011
+ this.doAfterOpen();
3012
+ },
3013
+ doAfterOpen: function doAfterOpen() {
3014
+ this._opening = false;
3015
+ },
3016
+ close: function close() {
3017
+ var _this3 = this;
3018
+
3019
+ if (this.willClose && !this.willClose()) return;
3020
+
3021
+ if (this._openTimer !== null) {
3022
+ clearTimeout(this._openTimer);
3023
+ this._openTimer = null;
3024
+ }
3025
+ clearTimeout(this._closeTimer);
3026
+
3027
+ var closeDelay = Number(this.closeDelay);
3028
+
3029
+ if (closeDelay > 0) {
3030
+ this._closeTimer = setTimeout(function () {
3031
+ _this3._closeTimer = null;
3032
+ _this3.doClose();
3033
+ }, closeDelay);
3034
+ } else {
3035
+ this.doClose();
3036
+ }
3037
+ },
3038
+ doClose: function doClose() {
3039
+ this._closing = true;
3040
+
3041
+ this.onClose && this.onClose();
3042
+
3043
+ if (this.lockScroll) {
3044
+ setTimeout(this.restoreBodyStyle, 200);
3045
+ }
3046
+
3047
+ this.opened = false;
3048
+
3049
+ this.doAfterClose();
3050
+ },
3051
+ doAfterClose: function doAfterClose() {
3052
+ popup_manager.closeModal(this._popupId);
3053
+ this._closing = false;
3054
+ },
3055
+ restoreBodyStyle: function restoreBodyStyle() {
3056
+ if (this.modal && this.withoutHiddenClass) {
3057
+ document.body.style.paddingRight = this.bodyPaddingRight;
3058
+ Object(utils_dom["i" /* removeClass */])(document.body, 'el-popup-parent--hidden');
3059
+ }
3060
+ this.withoutHiddenClass = true;
3061
+ }
3062
+ }
3063
+ });
3064
+
420
3065
 
421
- module.exports = require("vue");
422
3066
 
423
3067
  /***/ })
424
3068