shepherdjs_rails 2.0.2 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* /*! shepherd.js 2.0
|
2
|
+
* /*! shepherd.js 2.1.0 * /
|
3
3
|
*
|
4
4
|
*/
|
5
5
|
(function webpackUniversalModuleDefinition(root, factory) {
|
@@ -166,7 +166,7 @@ module.exports = isObjectLike;
|
|
166
166
|
/***/ (function(module, exports, __webpack_require__) {
|
167
167
|
|
168
168
|
var baseGetTag = __webpack_require__(3),
|
169
|
-
isArray = __webpack_require__(
|
169
|
+
isArray = __webpack_require__(10),
|
170
170
|
isObjectLike = __webpack_require__(1);
|
171
171
|
|
172
172
|
/** `Object#toString` result references. */
|
@@ -232,173 +232,6 @@ module.exports = objectToString;
|
|
232
232
|
"use strict";
|
233
233
|
|
234
234
|
|
235
|
-
Object.defineProperty(exports, "__esModule", {
|
236
|
-
value: true
|
237
|
-
});
|
238
|
-
exports.Evented = undefined;
|
239
|
-
|
240
|
-
var _isUndefined2 = __webpack_require__(0);
|
241
|
-
|
242
|
-
var _isUndefined3 = _interopRequireDefault(_isUndefined2);
|
243
|
-
|
244
|
-
var _drop2 = __webpack_require__(19);
|
245
|
-
|
246
|
-
var _drop3 = _interopRequireDefault(_drop2);
|
247
|
-
|
248
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
249
|
-
|
250
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
251
|
-
|
252
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
253
|
-
|
254
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
255
|
-
|
256
|
-
var Evented =
|
257
|
-
/*#__PURE__*/
|
258
|
-
exports.Evented = function () {
|
259
|
-
function Evented() {
|
260
|
-
_classCallCheck(this, Evented);
|
261
|
-
}
|
262
|
-
|
263
|
-
_createClass(Evented, [{
|
264
|
-
key: "on",
|
265
|
-
value: function on(event, handler, ctx) {
|
266
|
-
var once = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3];
|
267
|
-
|
268
|
-
if ((0, _isUndefined3.default)(this.bindings)) {
|
269
|
-
this.bindings = {};
|
270
|
-
}
|
271
|
-
|
272
|
-
if ((0, _isUndefined3.default)(this.bindings[event])) {
|
273
|
-
this.bindings[event] = [];
|
274
|
-
}
|
275
|
-
|
276
|
-
this.bindings[event].push({
|
277
|
-
handler: handler,
|
278
|
-
ctx: ctx,
|
279
|
-
once: once
|
280
|
-
});
|
281
|
-
}
|
282
|
-
}, {
|
283
|
-
key: "once",
|
284
|
-
value: function once(event, handler, ctx) {
|
285
|
-
this.on(event, handler, ctx, true);
|
286
|
-
}
|
287
|
-
}, {
|
288
|
-
key: "off",
|
289
|
-
value: function off(event, handler) {
|
290
|
-
var _this = this;
|
291
|
-
|
292
|
-
if ((0, _isUndefined3.default)(this.bindings) || (0, _isUndefined3.default)(this.bindings[event])) {
|
293
|
-
return false;
|
294
|
-
}
|
295
|
-
|
296
|
-
if ((0, _isUndefined3.default)(handler)) {
|
297
|
-
delete this.bindings[event];
|
298
|
-
} else {
|
299
|
-
this.bindings[event].forEach(function (binding, index) {
|
300
|
-
if (binding.handler === handler) {
|
301
|
-
_this.bindings[event].splice(index, 1);
|
302
|
-
}
|
303
|
-
});
|
304
|
-
}
|
305
|
-
}
|
306
|
-
}, {
|
307
|
-
key: "trigger",
|
308
|
-
value: function trigger(event) {
|
309
|
-
var _this2 = this;
|
310
|
-
|
311
|
-
if (!(0, _isUndefined3.default)(this.bindings) && this.bindings[event]) {
|
312
|
-
var args = (0, _drop3.default)(arguments);
|
313
|
-
this.bindings[event].forEach(function (binding, index) {
|
314
|
-
var ctx = binding.ctx,
|
315
|
-
handler = binding.handler,
|
316
|
-
once = binding.once;
|
317
|
-
var context = ctx || _this2;
|
318
|
-
handler.apply(context, args);
|
319
|
-
|
320
|
-
if (once) {
|
321
|
-
_this2.bindings[event].splice(index, 1);
|
322
|
-
}
|
323
|
-
});
|
324
|
-
}
|
325
|
-
}
|
326
|
-
}]);
|
327
|
-
|
328
|
-
return Evented;
|
329
|
-
}();
|
330
|
-
|
331
|
-
/***/ }),
|
332
|
-
/* 5 */
|
333
|
-
/***/ (function(module, exports, __webpack_require__) {
|
334
|
-
|
335
|
-
var baseGetTag = __webpack_require__(3),
|
336
|
-
isObject = __webpack_require__(10);
|
337
|
-
|
338
|
-
/** `Object#toString` result references. */
|
339
|
-
var asyncTag = '[object AsyncFunction]',
|
340
|
-
funcTag = '[object Function]',
|
341
|
-
genTag = '[object GeneratorFunction]',
|
342
|
-
proxyTag = '[object Proxy]';
|
343
|
-
|
344
|
-
/**
|
345
|
-
* Checks if `value` is classified as a `Function` object.
|
346
|
-
*
|
347
|
-
* @static
|
348
|
-
* @memberOf _
|
349
|
-
* @since 0.1.0
|
350
|
-
* @category Lang
|
351
|
-
* @param {*} value The value to check.
|
352
|
-
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
353
|
-
* @example
|
354
|
-
*
|
355
|
-
* _.isFunction(_);
|
356
|
-
* // => true
|
357
|
-
*
|
358
|
-
* _.isFunction(/abc/);
|
359
|
-
* // => false
|
360
|
-
*/
|
361
|
-
function isFunction(value) {
|
362
|
-
if (!isObject(value)) {
|
363
|
-
return false;
|
364
|
-
}
|
365
|
-
// The use of `Object#toString` avoids issues with the `typeof` operator
|
366
|
-
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
367
|
-
var tag = baseGetTag(value);
|
368
|
-
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
369
|
-
}
|
370
|
-
|
371
|
-
module.exports = isFunction;
|
372
|
-
|
373
|
-
|
374
|
-
/***/ }),
|
375
|
-
/* 6 */
|
376
|
-
/***/ (function(module, exports) {
|
377
|
-
|
378
|
-
/**
|
379
|
-
* Creates a unary function that invokes `func` with its argument transformed.
|
380
|
-
*
|
381
|
-
* @private
|
382
|
-
* @param {Function} func The function to wrap.
|
383
|
-
* @param {Function} transform The argument transform.
|
384
|
-
* @returns {Function} Returns the new function.
|
385
|
-
*/
|
386
|
-
function overArg(func, transform) {
|
387
|
-
return function(arg) {
|
388
|
-
return func(transform(arg));
|
389
|
-
};
|
390
|
-
}
|
391
|
-
|
392
|
-
module.exports = overArg;
|
393
|
-
|
394
|
-
|
395
|
-
/***/ }),
|
396
|
-
/* 7 */
|
397
|
-
/***/ (function(module, exports, __webpack_require__) {
|
398
|
-
|
399
|
-
"use strict";
|
400
|
-
|
401
|
-
|
402
235
|
Object.defineProperty(exports, "__esModule", {
|
403
236
|
value: true
|
404
237
|
});
|
@@ -574,7 +407,7 @@ exports.classNames = classNames;
|
|
574
407
|
exports.toggleShepherdModalClass = toggleShepherdModalClass;
|
575
408
|
|
576
409
|
/***/ }),
|
577
|
-
/*
|
410
|
+
/* 5 */
|
578
411
|
/***/ (function(module, exports, __webpack_require__) {
|
579
412
|
|
580
413
|
"use strict";
|
@@ -583,47 +416,352 @@ exports.toggleShepherdModalClass = toggleShepherdModalClass;
|
|
583
416
|
Object.defineProperty(exports, "__esModule", {
|
584
417
|
value: true
|
585
418
|
});
|
586
|
-
exports.
|
419
|
+
exports.Evented = undefined;
|
587
420
|
|
588
421
|
var _isUndefined2 = __webpack_require__(0);
|
589
422
|
|
590
423
|
var _isUndefined3 = _interopRequireDefault(_isUndefined2);
|
591
424
|
|
592
|
-
var
|
425
|
+
var _drop2 = __webpack_require__(19);
|
593
426
|
|
594
|
-
var
|
427
|
+
var _drop3 = _interopRequireDefault(_drop2);
|
595
428
|
|
596
|
-
|
429
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
597
430
|
|
598
|
-
|
431
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
599
432
|
|
600
|
-
var
|
433
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
601
434
|
|
602
|
-
|
435
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
603
436
|
|
604
|
-
var
|
437
|
+
var Evented =
|
438
|
+
/*#__PURE__*/
|
439
|
+
exports.Evented = function () {
|
440
|
+
function Evented() {
|
441
|
+
_classCallCheck(this, Evented);
|
442
|
+
}
|
605
443
|
|
606
|
-
|
444
|
+
_createClass(Evented, [{
|
445
|
+
key: "on",
|
446
|
+
value: function on(event, handler, ctx) {
|
447
|
+
var once = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3];
|
607
448
|
|
608
|
-
|
449
|
+
if ((0, _isUndefined3.default)(this.bindings)) {
|
450
|
+
this.bindings = {};
|
451
|
+
}
|
609
452
|
|
610
|
-
|
453
|
+
if ((0, _isUndefined3.default)(this.bindings[event])) {
|
454
|
+
this.bindings[event] = [];
|
455
|
+
}
|
611
456
|
|
612
|
-
|
457
|
+
this.bindings[event].push({
|
458
|
+
handler: handler,
|
459
|
+
ctx: ctx,
|
460
|
+
once: once
|
461
|
+
});
|
462
|
+
}
|
463
|
+
}, {
|
464
|
+
key: "once",
|
465
|
+
value: function once(event, handler, ctx) {
|
466
|
+
this.on(event, handler, ctx, true);
|
467
|
+
}
|
468
|
+
}, {
|
469
|
+
key: "off",
|
470
|
+
value: function off(event, handler) {
|
471
|
+
var _this = this;
|
613
472
|
|
614
|
-
|
473
|
+
if ((0, _isUndefined3.default)(this.bindings) || (0, _isUndefined3.default)(this.bindings[event])) {
|
474
|
+
return false;
|
475
|
+
}
|
615
476
|
|
616
|
-
|
477
|
+
if ((0, _isUndefined3.default)(handler)) {
|
478
|
+
delete this.bindings[event];
|
479
|
+
} else {
|
480
|
+
this.bindings[event].forEach(function (binding, index) {
|
481
|
+
if (binding.handler === handler) {
|
482
|
+
_this.bindings[event].splice(index, 1);
|
483
|
+
}
|
484
|
+
});
|
485
|
+
}
|
486
|
+
}
|
487
|
+
}, {
|
488
|
+
key: "trigger",
|
489
|
+
value: function trigger(event) {
|
490
|
+
var _this2 = this;
|
617
491
|
|
618
|
-
|
492
|
+
if (!(0, _isUndefined3.default)(this.bindings) && this.bindings[event]) {
|
493
|
+
var args = (0, _drop3.default)(arguments);
|
494
|
+
this.bindings[event].forEach(function (binding, index) {
|
495
|
+
var ctx = binding.ctx,
|
496
|
+
handler = binding.handler,
|
497
|
+
once = binding.once;
|
498
|
+
var context = ctx || _this2;
|
499
|
+
handler.apply(context, args);
|
619
500
|
|
620
|
-
|
501
|
+
if (once) {
|
502
|
+
_this2.bindings[event].splice(index, 1);
|
503
|
+
}
|
504
|
+
});
|
505
|
+
}
|
506
|
+
}
|
507
|
+
}]);
|
621
508
|
|
622
|
-
|
509
|
+
return Evented;
|
510
|
+
}();
|
623
511
|
|
624
|
-
|
512
|
+
/***/ }),
|
513
|
+
/* 6 */
|
514
|
+
/***/ (function(module, exports, __webpack_require__) {
|
625
515
|
|
626
|
-
|
516
|
+
var baseGetTag = __webpack_require__(3),
|
517
|
+
isObject = __webpack_require__(11);
|
518
|
+
|
519
|
+
/** `Object#toString` result references. */
|
520
|
+
var asyncTag = '[object AsyncFunction]',
|
521
|
+
funcTag = '[object Function]',
|
522
|
+
genTag = '[object GeneratorFunction]',
|
523
|
+
proxyTag = '[object Proxy]';
|
524
|
+
|
525
|
+
/**
|
526
|
+
* Checks if `value` is classified as a `Function` object.
|
527
|
+
*
|
528
|
+
* @static
|
529
|
+
* @memberOf _
|
530
|
+
* @since 0.1.0
|
531
|
+
* @category Lang
|
532
|
+
* @param {*} value The value to check.
|
533
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
534
|
+
* @example
|
535
|
+
*
|
536
|
+
* _.isFunction(_);
|
537
|
+
* // => true
|
538
|
+
*
|
539
|
+
* _.isFunction(/abc/);
|
540
|
+
* // => false
|
541
|
+
*/
|
542
|
+
function isFunction(value) {
|
543
|
+
if (!isObject(value)) {
|
544
|
+
return false;
|
545
|
+
}
|
546
|
+
// The use of `Object#toString` avoids issues with the `typeof` operator
|
547
|
+
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
548
|
+
var tag = baseGetTag(value);
|
549
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
550
|
+
}
|
551
|
+
|
552
|
+
module.exports = isFunction;
|
553
|
+
|
554
|
+
|
555
|
+
/***/ }),
|
556
|
+
/* 7 */
|
557
|
+
/***/ (function(module, exports) {
|
558
|
+
|
559
|
+
/**
|
560
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
561
|
+
*
|
562
|
+
* @private
|
563
|
+
* @param {Function} func The function to wrap.
|
564
|
+
* @param {Function} transform The argument transform.
|
565
|
+
* @returns {Function} Returns the new function.
|
566
|
+
*/
|
567
|
+
function overArg(func, transform) {
|
568
|
+
return function(arg) {
|
569
|
+
return func(transform(arg));
|
570
|
+
};
|
571
|
+
}
|
572
|
+
|
573
|
+
module.exports = overArg;
|
574
|
+
|
575
|
+
|
576
|
+
/***/ }),
|
577
|
+
/* 8 */
|
578
|
+
/***/ (function(module, exports, __webpack_require__) {
|
579
|
+
|
580
|
+
"use strict";
|
581
|
+
|
582
|
+
|
583
|
+
Object.defineProperty(exports, "__esModule", {
|
584
|
+
value: true
|
585
|
+
});
|
586
|
+
exports.getElementForStep = exports.elementIsHidden = exports.cleanupStepEventListeners = exports.addStepEventListeners = undefined;
|
587
|
+
|
588
|
+
var _modal = __webpack_require__(4);
|
589
|
+
|
590
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
591
|
+
|
592
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
593
|
+
|
594
|
+
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
595
|
+
|
596
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
597
|
+
|
598
|
+
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
599
|
+
|
600
|
+
/**
|
601
|
+
* Helper method to check if element is hidden, since we cannot use :visible without jQuery
|
602
|
+
* @param {HTMLElement} element The element to check for visibility
|
603
|
+
* @returns {boolean} true if element is hidden
|
604
|
+
* @private
|
605
|
+
*/
|
606
|
+
function elementIsHidden(element) {
|
607
|
+
return element.offsetWidth === 0 && element.offsetHeight === 0;
|
608
|
+
}
|
609
|
+
/**
|
610
|
+
* Get the element from an option object
|
611
|
+
*
|
612
|
+
* @method getElementFromObject
|
613
|
+
* @param Object attachTo
|
614
|
+
* @returns {Element}
|
615
|
+
* @private
|
616
|
+
*/
|
617
|
+
|
618
|
+
|
619
|
+
function getElementFromObject(attachTo) {
|
620
|
+
var op = attachTo.element;
|
621
|
+
|
622
|
+
if (op instanceof HTMLElement) {
|
623
|
+
return op;
|
624
|
+
}
|
625
|
+
|
626
|
+
return document.querySelector(op);
|
627
|
+
}
|
628
|
+
/**
|
629
|
+
* Return the element for a step
|
630
|
+
*
|
631
|
+
* @method getElementForStep
|
632
|
+
* @param step step the step to get an element for
|
633
|
+
* @returns {Element} the element for this step
|
634
|
+
* @private
|
635
|
+
*/
|
636
|
+
|
637
|
+
|
638
|
+
function getElementForStep(step) {
|
639
|
+
var attachTo = step.options.attachTo;
|
640
|
+
|
641
|
+
if (!attachTo) {
|
642
|
+
return null;
|
643
|
+
}
|
644
|
+
|
645
|
+
var type = _typeof(attachTo);
|
646
|
+
|
647
|
+
var element;
|
648
|
+
|
649
|
+
if (type === 'string') {
|
650
|
+
element = getElementFromString(attachTo);
|
651
|
+
} else if (type === 'object') {
|
652
|
+
element = getElementFromObject(attachTo);
|
653
|
+
} else {
|
654
|
+
/* istanbul ignore next: cannot test undefined attachTo, but it does work! */
|
655
|
+
element = null;
|
656
|
+
}
|
657
|
+
|
658
|
+
return element;
|
659
|
+
}
|
660
|
+
/**
|
661
|
+
* Get the element from an option string
|
662
|
+
*
|
663
|
+
* @method getElementFromString
|
664
|
+
* @param element the string in the step configuration
|
665
|
+
* @returns {Element} the element from the string
|
666
|
+
* @private
|
667
|
+
*/
|
668
|
+
|
669
|
+
|
670
|
+
function getElementFromString(element) {
|
671
|
+
var _element$split = element.split(' '),
|
672
|
+
_element$split2 = _slicedToArray(_element$split, 1),
|
673
|
+
selector = _element$split2[0];
|
674
|
+
|
675
|
+
return document.querySelector(selector);
|
676
|
+
}
|
677
|
+
|
678
|
+
function addStepEventListeners() {
|
679
|
+
if (typeof this._onScreenChange === 'function') {
|
680
|
+
window.removeEventListener('resize', this._onScreenChange, false);
|
681
|
+
window.removeEventListener('scroll', this._onScreenChange, false);
|
682
|
+
}
|
683
|
+
|
684
|
+
window.addEventListener('resize', this._onScreenChange, false);
|
685
|
+
window.addEventListener('scroll', this._onScreenChange, false);
|
686
|
+
var overlay = document.querySelector("#".concat(_modal.elementIds.modalOverlay)); // Prevents window from moving on touch.
|
687
|
+
|
688
|
+
window.addEventListener('touchmove', _modal.preventModalBodyTouch, {
|
689
|
+
passive: false
|
690
|
+
}); // Allows content to move on touch.
|
691
|
+
|
692
|
+
if (overlay) {
|
693
|
+
overlay.addEventListener('touchmove', _modal.preventModalOverlayTouch, false);
|
694
|
+
}
|
695
|
+
}
|
696
|
+
/**
|
697
|
+
* Remove resize and scroll event listeners
|
698
|
+
*/
|
699
|
+
|
700
|
+
|
701
|
+
function cleanupStepEventListeners() {
|
702
|
+
if (typeof this._onScreenChange === 'function') {
|
703
|
+
window.removeEventListener('resize', this._onScreenChange, false);
|
704
|
+
window.removeEventListener('scroll', this._onScreenChange, false);
|
705
|
+
this._onScreenChange = null;
|
706
|
+
}
|
707
|
+
}
|
708
|
+
|
709
|
+
exports.addStepEventListeners = addStepEventListeners;
|
710
|
+
exports.cleanupStepEventListeners = cleanupStepEventListeners;
|
711
|
+
exports.elementIsHidden = elementIsHidden;
|
712
|
+
exports.getElementForStep = getElementForStep;
|
713
|
+
|
714
|
+
/***/ }),
|
715
|
+
/* 9 */
|
716
|
+
/***/ (function(module, exports, __webpack_require__) {
|
717
|
+
|
718
|
+
"use strict";
|
719
|
+
|
720
|
+
|
721
|
+
Object.defineProperty(exports, "__esModule", {
|
722
|
+
value: true
|
723
|
+
});
|
724
|
+
exports.Step = undefined;
|
725
|
+
|
726
|
+
var _isUndefined2 = __webpack_require__(0);
|
727
|
+
|
728
|
+
var _isUndefined3 = _interopRequireDefault(_isUndefined2);
|
729
|
+
|
730
|
+
var _isString2 = __webpack_require__(2);
|
731
|
+
|
732
|
+
var _isString3 = _interopRequireDefault(_isString2);
|
733
|
+
|
734
|
+
var _isFunction2 = __webpack_require__(6);
|
735
|
+
|
736
|
+
var _isFunction3 = _interopRequireDefault(_isFunction2);
|
737
|
+
|
738
|
+
var _isEmpty2 = __webpack_require__(12);
|
739
|
+
|
740
|
+
var _isEmpty3 = _interopRequireDefault(_isEmpty2);
|
741
|
+
|
742
|
+
var _isElement2 = __webpack_require__(30);
|
743
|
+
|
744
|
+
var _isElement3 = _interopRequireDefault(_isElement2);
|
745
|
+
|
746
|
+
var _forOwn2 = __webpack_require__(13);
|
747
|
+
|
748
|
+
var _forOwn3 = _interopRequireDefault(_forOwn2);
|
749
|
+
|
750
|
+
var _evented = __webpack_require__(5);
|
751
|
+
|
752
|
+
__webpack_require__(38);
|
753
|
+
|
754
|
+
var _bind = __webpack_require__(14);
|
755
|
+
|
756
|
+
var _utils = __webpack_require__(15);
|
757
|
+
|
758
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
759
|
+
|
760
|
+
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
761
|
+
|
762
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
763
|
+
|
764
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
627
765
|
|
628
766
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
629
767
|
|
@@ -916,6 +1054,7 @@ exports.Step = function (_Evented) {
|
|
916
1054
|
}, {
|
917
1055
|
key: "hide",
|
918
1056
|
value: function hide() {
|
1057
|
+
this.tour.modal.hide();
|
919
1058
|
this.trigger('before-hide');
|
920
1059
|
document.body.removeAttribute('data-shepherd-step');
|
921
1060
|
|
@@ -1061,7 +1200,7 @@ exports.Step = function (_Evented) {
|
|
1061
1200
|
}(_evented.Evented);
|
1062
1201
|
|
1063
1202
|
/***/ }),
|
1064
|
-
/*
|
1203
|
+
/* 10 */
|
1065
1204
|
/***/ (function(module, exports) {
|
1066
1205
|
|
1067
1206
|
/**
|
@@ -1093,7 +1232,7 @@ module.exports = isArray;
|
|
1093
1232
|
|
1094
1233
|
|
1095
1234
|
/***/ }),
|
1096
|
-
/*
|
1235
|
+
/* 11 */
|
1097
1236
|
/***/ (function(module, exports) {
|
1098
1237
|
|
1099
1238
|
/**
|
@@ -1130,13 +1269,13 @@ module.exports = isObject;
|
|
1130
1269
|
|
1131
1270
|
|
1132
1271
|
/***/ }),
|
1133
|
-
/*
|
1272
|
+
/* 12 */
|
1134
1273
|
/***/ (function(module, exports, __webpack_require__) {
|
1135
1274
|
|
1136
1275
|
var baseKeys = __webpack_require__(22),
|
1137
1276
|
getTag = __webpack_require__(23),
|
1138
1277
|
isArguments = __webpack_require__(24),
|
1139
|
-
isArray = __webpack_require__(
|
1278
|
+
isArray = __webpack_require__(10),
|
1140
1279
|
isArrayLike = __webpack_require__(25),
|
1141
1280
|
isBuffer = __webpack_require__(27),
|
1142
1281
|
isPrototype = __webpack_require__(28),
|
@@ -1213,7 +1352,7 @@ module.exports = isEmpty;
|
|
1213
1352
|
|
1214
1353
|
|
1215
1354
|
/***/ }),
|
1216
|
-
/*
|
1355
|
+
/* 13 */
|
1217
1356
|
/***/ (function(module, exports, __webpack_require__) {
|
1218
1357
|
|
1219
1358
|
var baseForOwn = __webpack_require__(33),
|
@@ -1255,7 +1394,7 @@ module.exports = forOwn;
|
|
1255
1394
|
|
1256
1395
|
|
1257
1396
|
/***/ }),
|
1258
|
-
/*
|
1397
|
+
/* 14 */
|
1259
1398
|
/***/ (function(module, exports, __webpack_require__) {
|
1260
1399
|
|
1261
1400
|
"use strict";
|
@@ -1273,7 +1412,7 @@ var _isString2 = __webpack_require__(2);
|
|
1273
1412
|
|
1274
1413
|
var _isString3 = _interopRequireDefault(_isString2);
|
1275
1414
|
|
1276
|
-
var _forOwn2 = __webpack_require__(
|
1415
|
+
var _forOwn2 = __webpack_require__(13);
|
1277
1416
|
|
1278
1417
|
var _forOwn3 = _interopRequireDefault(_forOwn2);
|
1279
1418
|
|
@@ -1282,7 +1421,7 @@ exports.bindButtonEvents = bindButtonEvents;
|
|
1282
1421
|
exports.bindCancelLink = bindCancelLink;
|
1283
1422
|
exports.bindMethods = bindMethods;
|
1284
1423
|
|
1285
|
-
var _utils = __webpack_require__(
|
1424
|
+
var _utils = __webpack_require__(15);
|
1286
1425
|
|
1287
1426
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
1288
1427
|
|
@@ -1395,7 +1534,7 @@ function bindMethods(methods) {
|
|
1395
1534
|
}
|
1396
1535
|
|
1397
1536
|
/***/ }),
|
1398
|
-
/*
|
1537
|
+
/* 15 */
|
1399
1538
|
/***/ (function(module, exports, __webpack_require__) {
|
1400
1539
|
|
1401
1540
|
"use strict";
|
@@ -1427,7 +1566,7 @@ exports.parseShorthand = parseShorthand;
|
|
1427
1566
|
exports.setupTooltip = setupTooltip;
|
1428
1567
|
exports.parseAttachTo = parseAttachTo;
|
1429
1568
|
|
1430
|
-
var _tippy = __webpack_require__(
|
1569
|
+
var _tippy = __webpack_require__(16);
|
1431
1570
|
|
1432
1571
|
var _tippy2 = _interopRequireDefault(_tippy);
|
1433
1572
|
|
@@ -1626,16 +1765,16 @@ function _makeCenteredTippy() {
|
|
1626
1765
|
}
|
1627
1766
|
|
1628
1767
|
/***/ }),
|
1629
|
-
/*
|
1768
|
+
/* 16 */
|
1630
1769
|
/***/ (function(module, exports, __webpack_require__) {
|
1631
1770
|
|
1632
1771
|
/* WEBPACK VAR INJECTION */(function(global) {(function(e,t){ true?module.exports=t():undefined})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var r=e.ownerDocument.defaultView,a=r.getComputedStyle(e,null);return t?a[t]:a}function r(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function a(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var p=t(e),o=p.overflow,i=p.overflowX,n=p.overflowY;return /(auto|scroll|overlay)/.test(o+n+i)?e:a(r(e))}function p(e){return 11===e?ke:10===e?Ee:ke||Ee}function o(e){if(!e)return document.documentElement;for(var r=p(10)?document.body:null,a=e.offsetParent||null;a===r&&e.nextElementSibling;)a=(e=e.nextElementSibling).offsetParent;var i=a&&a.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TH','TD','TABLE'].indexOf(a.nodeName)&&'static'===t(a,'position')?o(a):a:e?e.ownerDocument.documentElement:document.documentElement}function n(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||o(e.firstElementChild)===e)}function s(e){return null===e.parentNode?e:s(e.parentNode)}function l(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,a=r?e:t,p=r?t:e,i=document.createRange();i.setStart(a,0),i.setEnd(p,0);var d=i.commonAncestorContainer;if(e!==d&&t!==d||a.contains(p))return n(d)?d:o(d);var m=s(e);return m.host?l(m.host,t):l(e,s(t).host)}function d(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',r='top'===t?'scrollTop':'scrollLeft',a=e.nodeName;if('BODY'===a||'HTML'===a){var p=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||p;return o[r]}return e[r]}function m(e,t){var r=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2],a=d(t,'top'),p=d(t,'left'),o=r?-1:1;return e.top+=a*o,e.bottom+=a*o,e.left+=p*o,e.right+=p*o,e}function c(e,t){var r='x'===t?'Left':'Top',a='Left'===r?'Right':'Bottom';return parseFloat(e['border'+r+'Width'],10)+parseFloat(e['border'+a+'Width'],10)}function f(e,t,r,a){return ae(t['offset'+e],t['scroll'+e],r['client'+e],r['offset'+e],r['scroll'+e],p(10)?parseInt(r['offset'+e])+parseInt(a['margin'+('Height'===e?'Top':'Left')])+parseInt(a['margin'+('Height'===e?'Bottom':'Right')]):0)}function h(e){var t=e.body,r=e.documentElement,a=p(10)&&getComputedStyle(r);return{height:f('Height',t,r,a),width:f('Width',t,r,a)}}function b(e){return Te({},e,{right:e.left+e.width,bottom:e.top+e.height})}function u(e){var r={};try{if(p(10)){r=e.getBoundingClientRect();var a=d(e,'top'),o=d(e,'left');r.top+=a,r.left+=o,r.bottom+=a,r.right+=o}else r=e.getBoundingClientRect()}catch(t){}var i={left:r.left,top:r.top,width:r.right-r.left,height:r.bottom-r.top},n='HTML'===e.nodeName?h(e.ownerDocument):{},s=n.width||e.clientWidth||i.right-i.left,l=n.height||e.clientHeight||i.bottom-i.top,m=e.offsetWidth-s,f=e.offsetHeight-l;if(m||f){var y=t(e);m-=c(y,'x'),f-=c(y,'y'),i.width-=m,i.height-=f}return b(i)}function y(e,r){var o=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2],i=p(10),n='HTML'===r.nodeName,s=u(e),l=u(r),d=a(e),c=t(r),f=parseFloat(c.borderTopWidth,10),h=parseFloat(c.borderLeftWidth,10);o&&n&&(l.top=ae(l.top,0),l.left=ae(l.left,0));var y=b({top:s.top-l.top-f,left:s.left-l.left-h,width:s.width,height:s.height});if(y.marginTop=0,y.marginLeft=0,!i&&n){var g=parseFloat(c.marginTop,10),x=parseFloat(c.marginLeft,10);y.top-=f-g,y.bottom-=f-g,y.left-=h-x,y.right-=h-x,y.marginTop=g,y.marginLeft=x}return(i&&!o?r.contains(d):r===d&&'BODY'!==d.nodeName)&&(y=m(y,r)),y}function g(e){var t=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1],r=e.ownerDocument.documentElement,a=y(e,r),p=ae(r.clientWidth,window.innerWidth||0),o=ae(r.clientHeight,window.innerHeight||0),i=t?0:d(r),n=t?0:d(r,'left'),s={top:i-a.top+a.marginTop,left:n-a.left+a.marginLeft,width:p,height:o};return b(s)}function x(e){var a=e.nodeName;return'BODY'!==a&&'HTML'!==a&&('fixed'===t(e,'position')||x(r(e)))}function w(e){if(!e||!e.parentElement||p())return document.documentElement;for(var r=e.parentElement;r&&'none'===t(r,'transform');)r=r.parentElement;return r||document.documentElement}function v(e,t,p,o){var i=!!(4<arguments.length&&void 0!==arguments[4])&&arguments[4],n={top:0,left:0},s=i?w(e):l(e,t);if('viewport'===o)n=g(s,i);else{var d;'scrollParent'===o?(d=a(r(t)),'BODY'===d.nodeName&&(d=e.ownerDocument.documentElement)):'window'===o?d=e.ownerDocument.documentElement:d=o;var m=y(d,s,i);if('HTML'===d.nodeName&&!x(s)){var c=h(e.ownerDocument),f=c.height,b=c.width;n.top+=m.top-m.marginTop,n.bottom=f+m.top,n.left+=m.left-m.marginLeft,n.right=b+m.left}else n=m}p=p||0;var u='number'==typeof p;return n.left+=u?p:p.left||0,n.top+=u?p:p.top||0,n.right-=u?p:p.right||0,n.bottom-=u?p:p.bottom||0,n}function k(e){var t=e.width,r=e.height;return t*r}function E(e,t,r,a,p){var o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var i=v(r,a,o,p),n={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},s=Object.keys(n).map(function(e){return Te({key:e},n[e],{area:k(n[e])})}).sort(function(e,t){return t.area-e.area}),l=s.filter(function(e){var t=e.width,a=e.height;return t>=r.clientWidth&&a>=r.clientHeight}),d=0<l.length?l[0].key:s[0].key,m=e.split('-')[1];return d+(m?'-'+m:'')}function O(e,t,r){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,p=a?w(t):l(t,r);return y(r,p,a)}function C(e){var t=e.ownerDocument.defaultView,r=t.getComputedStyle(e),a=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),p=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),o={width:e.offsetWidth+p,height:e.offsetHeight+a};return o}function L(e){var t={left:'right',right:'left',bottom:'top',top:'bottom'};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function T(e,t,r){r=r.split('-')[0];var a=C(e),p={width:a.width,height:a.height},o=-1!==['right','left'].indexOf(r),i=o?'top':'left',n=o?'left':'top',s=o?'height':'width',l=o?'width':'height';return p[i]=t[i]+t[s]/2-a[s]/2,p[n]=r===n?t[n]-a[l]:t[L(n)],p}function A(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Y(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===r});var a=A(e,function(e){return e[t]===r});return e.indexOf(a)}function S(t,r,a){var p=void 0===a?t:t.slice(0,Y(t,'name',a));return p.forEach(function(t){t['function']&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var a=t['function']||t.fn;t.enabled&&e(a)&&(r.offsets.popper=b(r.offsets.popper),r.offsets.reference=b(r.offsets.reference),r=a(r,t))}),r}function P(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=O(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=E(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=T(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?'fixed':'absolute',e=S(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function D(e,t){return e.some(function(e){var r=e.name,a=e.enabled;return a&&r===t})}function X(e){for(var t=[!1,'ms','Webkit','Moz','O'],r=e.charAt(0).toUpperCase()+e.slice(1),a=0;a<t.length;a++){var p=t[a],o=p?''+p+r:e;if('undefined'!=typeof document.body.style[o])return o}return null}function I(){return this.state.isDestroyed=!0,D(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.position='',this.popper.style.top='',this.popper.style.left='',this.popper.style.right='',this.popper.style.bottom='',this.popper.style.willChange='',this.popper.style[X('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function N(e){var t=e.ownerDocument;return t?t.defaultView:window}function H(e,t,r,p){var o='BODY'===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,r,{passive:!0}),o||H(a(i.parentNode),t,r,p),p.push(i)}function R(e,t,r,p){r.updateBound=p,N(e).addEventListener('resize',r.updateBound,{passive:!0});var o=a(e);return H(o,'scroll',r.updateBound,r.scrollParents),r.scrollElement=o,r.eventsEnabled=!0,r}function W(){this.state.eventsEnabled||(this.state=R(this.reference,this.options,this.state,this.scheduleUpdate))}function B(e,t){return N(e).removeEventListener('resize',t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener('scroll',t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function M(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=B(this.reference,this.state))}function z(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function _(e,t){Object.keys(t).forEach(function(r){var a='';-1!==['width','height','top','right','bottom','left'].indexOf(r)&&z(t[r])&&(a='px'),e.style[r]=t[r]+a})}function F(e,t){Object.keys(t).forEach(function(r){var a=t[r];!1===a?e.removeAttribute(r):e.setAttribute(r,t[r])})}function U(e,t){var r=e.offsets,a=r.popper,p=r.reference,o=re,i=function(e){return e},n=o(a.width),s=o(p.width),l=-1!==['left','right'].indexOf(e.placement),d=-1!==e.placement.indexOf('-'),m=t?l||d||s%2==n%2?o:te:i,c=t?o:i;return{left:m(1==s%2&&1==n%2&&!d&&t?a.left-1:a.left),top:c(a.top),bottom:c(a.bottom),right:m(a.right)}}function V(e,t,r){var a=A(e,function(e){var r=e.name;return r===t}),p=!!a&&e.some(function(e){return e.name===r&&e.enabled&&e.order<a.order});if(!p){var o='`'+t+'`';console.warn('`'+r+'`'+' modifier is required by '+o+' modifier in order to work, be sure to include it before '+o+'!')}return p}function q(e){return'end'===e?'start':'start'===e?'end':e}function j(e){var t=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1],r=Se.indexOf(e),a=Se.slice(r+1).concat(Se.slice(0,r));return t?a.reverse():a}function K(e,t,r,a){var p=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+p[1],i=p[2];if(!o)return e;if(0===i.indexOf('%')){var n;switch(i){case'%p':n=r;break;case'%':case'%r':default:n=a;}var s=b(n);return s[t]/100*o}if('vh'===i||'vw'===i){var l;return l='vh'===i?ae(document.documentElement.clientHeight,window.innerHeight||0):ae(document.documentElement.clientWidth,window.innerWidth||0),l/100*o}return o}function G(e,t,r,a){var p=[0,0],o=-1!==['right','left'].indexOf(a),i=e.split(/(\+|\-)/).map(function(e){return e.trim()}),n=i.indexOf(A(i,function(e){return-1!==e.search(/,|\s/)}));i[n]&&-1===i[n].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var s=/\s*,\s*|\s+/,l=-1===n?[i]:[i.slice(0,n).concat([i[n].split(s)[0]]),[i[n].split(s)[1]].concat(i.slice(n+1))];return l=l.map(function(e,a){var p=(1===a?!o:o)?'height':'width',i=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return K(e,p,t,r)})}),l.forEach(function(e,t){e.forEach(function(r,a){z(r)&&(p[t]+=r*('-'===e[a-1]?-1:1))})}),p}function J(e,t){var r=t.offset,a=e.placement,p=e.offsets,o=p.popper,i=p.reference,n=a.split('-')[0],s=void 0;return s=z(+r)?[+r,0]:G(r,o,i,n),'left'===n?(o.top+=s[0],o.left-=s[1]):'right'===n?(o.top+=s[0],o.left+=s[1]):'top'===n?(o.left+=s[0],o.top-=s[1]):'bottom'===n&&(o.left+=s[0],o.top+=s[1]),e.popper=o,e}function Z(){document.addEventListener('click',Yt,!0),document.addEventListener('touchstart',Lt,{passive:!0}),window.addEventListener('blur',St),window.addEventListener('resize',Pt),!ye&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',Lt)}function $(e,t){function r(){yt(function(){z=!1})}function a(){X=new MutationObserver(function(){q.popperInstance.update()}),X.observe(U,{childList:!0,subtree:!0,characterData:!0})}function p(e){var t=N=e,r=t.clientX,a=t.clientY;if(q.popperInstance){var p=xt(q.popper),o=q.popperChildren.arrow?20:5,i='top'===p||'bottom'===p,n='left'===p||'right'===p,s=i?ae(o,r):r,l=n?ae(o,a):a;i&&s>o&&(s=ee(r,window.innerWidth-o)),n&&l>o&&(l=ee(a,window.innerHeight-o));var d=q.reference.getBoundingClientRect(),m=q.props.followCursor,c='horizontal'===m,f='vertical'===m;q.popperInstance.reference={getBoundingClientRect:function(){return{width:0,height:0,top:c?d.top:l,bottom:c?d.bottom:l,left:f?d.left:s,right:f?d.right:s}},clientWidth:0,clientHeight:0},q.popperInstance.scheduleUpdate()}}function o(e){var t=pt(e.target,q.props.target);t&&!t._tippy&&($(t,ie({},q.props,{target:'',showOnInit:!0})),i(e))}function i(e){if(T(),!q.state.isVisible){if(q.props.target)return o(e);if(W=!0,q.props.wait)return q.props.wait(q,e);x()&&document.addEventListener('mousemove',p);var t=Ve(q.props.delay,0,ne.delay);t?H=setTimeout(function(){Y()},t):Y()}}function n(){if(T(),!q.state.isVisible)return s();W=!1;var e=Ve(q.props.delay,1,ne.delay);e?R=setTimeout(function(){q.state.isVisible&&S()},e):S()}function s(){document.removeEventListener('mousemove',p),N=null}function l(){document.body.removeEventListener('mouseleave',n),document.removeEventListener('mousemove',_)}function d(e){!q.state.isEnabled||y(e)||(!q.state.isVisible&&(I=e),'click'===e.type&&!1!==q.props.hideOnClick&&q.state.isVisible?n():i(e))}function m(e){var t=ot(e.target,function(e){return e._tippy}),r=pt(e.target,Xe.POPPER)===q.popper,a=t===q.reference;r||a||ut(xt(q.popper),q.popper.getBoundingClientRect(),e,q.props)&&(l(),n())}function c(e){return y(e)?void 0:q.props.interactive?(document.body.addEventListener('mouseleave',n),void document.addEventListener('mousemove',_)):void n()}function f(e){if(e.target===q.reference){if(q.props.interactive){if(!e.relatedTarget)return;if(pt(e.relatedTarget,Xe.POPPER))return}n()}}function h(e){pt(e.target,q.props.target)&&i(e)}function b(e){pt(e.target,q.props.target)&&n()}function y(e){var t=-1<e.type.indexOf('touch'),r=ye&&Ct&&q.props.touchHold&&!t,a=Ct&&!q.props.touchHold&&t;return r||a}function u(){var e=q.popperChildren.tooltip,t=q.props.popperOptions,r=Xe['round'===q.props.arrowType?'ROUND_ARROW':'ARROW'],p=e.querySelector(r),o=ie({placement:q.props.placement},t||{},{modifiers:ie({},t?t.modifiers:{},{arrow:ie({element:r},t&&t.modifiers?t.modifiers.arrow:{}),flip:ie({enabled:q.props.flip,padding:q.props.distance+5,behavior:q.props.flipBehavior},t&&t.modifiers?t.modifiers.flip:{}),offset:ie({offset:q.props.offset},t&&t.modifiers?t.modifiers.offset:{})}),onCreate:function(){e.style[xt(q.popper)]=gt(q.props.distance,ne.distance),p&&q.props.arrowTransform&&ft(p,q.props.arrowTransform)},onUpdate:function(){var t=e.style;t.top='',t.bottom='',t.left='',t.right='',t[xt(q.popper)]=gt(q.props.distance,ne.distance),p&&q.props.arrowTransform&&ft(p,q.props.arrowTransform)}});return X||a(),new De(q.reference,q.popper,o)}function g(e){q.popperInstance?!x()&&(q.popperInstance.scheduleUpdate(),q.props.livePlacement&&q.popperInstance.enableEventListeners()):(q.popperInstance=u(),(!q.props.livePlacement||x())&&q.popperInstance.disableEventListeners()),q.popperInstance.reference=q.reference;var t=q.popperChildren.arrow;if(x()){t&&(t.style.margin='0');var r=Ve(q.props.delay,0,ne.delay);I.type&&p(r&&N?N:I)}else t&&(t.style.margin='');bt(q.popperInstance,e),q.props.appendTo.contains(q.popper)||(q.props.appendTo.appendChild(q.popper),q.props.onMount(q),q.state.isMounted=!0)}function x(){return q.props.followCursor&&!Ct&&'focus'!==I.type}function w(){We([q.popper],he?0:q.props.updateDuration);(function e(){q.popperInstance&&q.popperInstance.scheduleUpdate(),q.state.isMounted?requestAnimationFrame(e):We([q.popper],0)})()}function v(e,t){E(e,function(){!q.state.isVisible&&q.props.appendTo.contains(q.popper)&&t()})}function k(e,t){E(e,t)}function E(e,t){if(0===e)return t();var r=q.popperChildren.tooltip,a=function a(p){p.target===r&&(vt(r,'remove',a),t())};vt(r,'remove',B),vt(r,'add',a),B=a}function O(e,t,r){q.reference.addEventListener(e,t),r.push({eventType:e,handler:t})}function C(){M=q.props.trigger.trim().split(' ').reduce(function(e,t){return'manual'===t?e:(q.props.target?'mouseenter'===t?(O('mouseover',h,e),O('mouseout',b,e)):'focus'===t?(O('focusin',h,e),O('focusout',b,e)):'click'===t?O(t,h,e):void 0:(O(t,d,e),q.props.touchHold&&(O('touchstart',d,e),O('touchend',c,e)),'mouseenter'===t?O('mouseleave',c,e):'focus'===t?O(he?'focusout':'blur',f,e):void 0),e)},[])}function L(){M.forEach(function(e){var t=e.eventType,r=e.handler;q.reference.removeEventListener(t,r)})}function T(){clearTimeout(H),clearTimeout(R)}function A(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};Et(e,ne);var t=q.props,r=wt(q.reference,ie({},q.props,e,{performance:!0}));r.performance=Ot(e,'performance')?e.performance:t.performance,q.props=r,(Ot(e,'trigger')||Ot(e,'touchHold'))&&(L(),C()),Ot(e,'interactiveDebounce')&&(l(),_=kt(m,e.interactiveDebounce)),Qe(q.popper,t,r),q.popperChildren=Be(q.popper),q.popperInstance&&le.some(function(t){return Ot(e,t)})&&(q.popperInstance.destroy(),q.popperInstance=u(),!q.state.isVisible&&q.popperInstance.disableEventListeners(),q.props.followCursor&&N&&p(N))}function Y(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Ve(q.props.duration,0,ne.duration[0]);return q.state.isDestroyed||!q.state.isEnabled||Ct&&!q.props.touch?void 0:q.reference.isVirtual||document.documentElement.contains(q.reference)?q.reference.hasAttribute('disabled')?void 0:z?void(z=!1):void(!1===q.props.onShow(q)||(q.popper.style.visibility='visible',q.state.isVisible=!0,We([q.popper,q.popperChildren.tooltip,q.popperChildren.backdrop],0),g(function(){q.state.isVisible&&(!x()&&q.popperInstance.update(),We([q.popperChildren.tooltip,q.popperChildren.backdrop,q.popperChildren.content],e),q.popperChildren.backdrop&&(q.popperChildren.content.style.transitionDelay=re(e/6)+'ms'),q.props.interactive&&q.reference.classList.add('tippy-active'),q.props.sticky&&w(),ht([q.popperChildren.tooltip,q.popperChildren.backdrop,q.popperChildren.content],'visible'),k(e,function(){0===q.props.updateDuration&&q.popperChildren.tooltip.classList.add('tippy-notransition'),q.props.interactive&&-1<['focus','click'].indexOf(I.type)&&it(q.popper),q.reference.setAttribute('aria-describedby',q.popper.id),q.props.onShown(q),q.state.isShown=!0}))}))):P()}function S(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Ve(q.props.duration,1,ne.duration[1]);q.state.isDestroyed||!q.state.isEnabled||!1===q.props.onHide(q)||(0===q.props.updateDuration&&q.popperChildren.tooltip.classList.remove('tippy-notransition'),q.props.interactive&&q.reference.classList.remove('tippy-active'),q.popper.style.visibility='hidden',q.state.isVisible=!1,q.state.isShown=!1,We([q.popperChildren.tooltip,q.popperChildren.backdrop,q.popperChildren.content],e),ht([q.popperChildren.tooltip,q.popperChildren.backdrop,q.popperChildren.content],'hidden'),q.props.interactive&&!z&&-1<['focus','click'].indexOf(I.type)&&('focus'===I.type&&(z=!0),it(q.reference)),v(e,function(){W||s(),q.reference.removeAttribute('aria-describedby'),q.popperInstance.disableEventListeners(),q.props.appendTo.removeChild(q.popper),q.state.isMounted=!1,q.props.onHidden(q)}))}function P(e){q.state.isDestroyed||(q.state.isMounted&&S(0),L(),q.reference.removeEventListener('click',r),delete q.reference._tippy,q.props.target&&e&&Ne(q.reference.querySelectorAll(q.props.target)).forEach(function(e){return e._tippy&&e._tippy.destroy()}),q.popperInstance&&q.popperInstance.destroy(),X&&X.disconnect(),q.state.isDestroyed=!0)}var D=wt(e,t);if(!D.multiple&&e._tippy)return null;var X=null,I={},N=null,H=0,R=0,W=!1,B=function(){},M=[],z=!1,_=0<D.interactiveDebounce?kt(m,D.interactiveDebounce):m,F=Dt++,U=$e(F,D);U.addEventListener('mouseenter',function(e){q.props.interactive&&q.state.isVisible&&'mouseenter'===I.type&&i(e)}),U.addEventListener('mouseleave',function(e){q.props.interactive&&'mouseenter'===I.type&&0===q.props.interactiveDebounce&&ut(xt(U),U.getBoundingClientRect(),e,q.props)&&n()});var V=Be(U),q={id:F,reference:e,popper:U,popperChildren:V,popperInstance:null,props:D,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},clearDelayTimeouts:T,set:A,setContent:function(e){A({content:e})},show:Y,hide:S,enable:function(){q.state.isEnabled=!0},disable:function(){q.state.isEnabled=!1},destroy:P};return C(),e.addEventListener('click',r),D.lazy||(q.popperInstance=u(),q.popperInstance.disableEventListeners()),D.showOnInit&&i(),!D.a11y||D.target||Re(e)||e.setAttribute('tabindex','0'),e._tippy=q,U._tippy=q,q}function Q(e,t,r){Et(t,ne),Xt||(Z(),Xt=!0);var a=ie({},ne,t);Me(e)&&rt(e);var p=Fe(e),o=p[0],i=(r&&o?[o]:p).reduce(function(e,t){var r=t&&$(t,a);return r&&e.push(r),e},[]);return{targets:e,props:a,instances:i,destroyAll:function(){this.instances.forEach(function(e){e.destroy()}),this.instances=[]}}}for(var ee=Math.min,te=Math.floor,re=Math.round,ae=Math.max,pe='.tippy-iOS{cursor:pointer!important}.tippy-notransition{transition:none!important}.tippy-popper{-webkit-perspective:700px;perspective:700px;z-index:9999;outline:0;transition-timing-function:cubic-bezier(.165,.84,.44,1);pointer-events:none;line-height:1.4;max-width:calc(100% - 10px)}.tippy-popper[x-placement^=top] .tippy-backdrop{border-radius:40% 40% 0 0}.tippy-popper[x-placement^=top] .tippy-roundarrow{bottom:-8px;-webkit-transform-origin:50% 0;transform-origin:50% 0}.tippy-popper[x-placement^=top] .tippy-roundarrow svg{position:absolute;left:0;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.tippy-popper[x-placement^=top] .tippy-arrow{border-top:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;bottom:-7px;margin:0 6px;-webkit-transform-origin:50% 0;transform-origin:50% 0}.tippy-popper[x-placement^=top] .tippy-backdrop{-webkit-transform-origin:0 25%;transform-origin:0 25%}.tippy-popper[x-placement^=top] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-55%);transform:scale(1) translate(-50%,-55%)}.tippy-popper[x-placement^=top] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.2) translate(-50%,-45%);transform:scale(.2) translate(-50%,-45%);opacity:0}.tippy-popper[x-placement^=top] [data-animation=shift-toward][data-state=visible]{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateY(-20px);transform:translateY(-20px)}.tippy-popper[x-placement^=top] [data-animation=perspective]{-webkit-transform-origin:bottom;transform-origin:bottom}.tippy-popper[x-placement^=top] [data-animation=perspective][data-state=visible]{-webkit-transform:translateY(-10px) rotateX(0);transform:translateY(-10px) rotateX(0)}.tippy-popper[x-placement^=top] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) rotateX(60deg);transform:translateY(0) rotateX(60deg)}.tippy-popper[x-placement^=top] [data-animation=fade][data-state=visible]{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-away][data-state=visible]{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=top] [data-animation=scale][data-state=visible]{-webkit-transform:translateY(-10px) scale(1);transform:translateY(-10px) scale(1)}.tippy-popper[x-placement^=top] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) scale(.5);transform:translateY(0) scale(.5)}.tippy-popper[x-placement^=bottom] .tippy-backdrop{border-radius:0 0 30% 30%}.tippy-popper[x-placement^=bottom] .tippy-roundarrow{top:-8px;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.tippy-popper[x-placement^=bottom] .tippy-roundarrow svg{position:absolute;left:0;-webkit-transform:rotate(0);transform:rotate(0)}.tippy-popper[x-placement^=bottom] .tippy-arrow{border-bottom:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;top:-7px;margin:0 6px;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.tippy-popper[x-placement^=bottom] .tippy-backdrop{-webkit-transform-origin:0 -50%;transform-origin:0 -50%}.tippy-popper[x-placement^=bottom] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-45%);transform:scale(1) translate(-50%,-45%)}.tippy-popper[x-placement^=bottom] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.2) translate(-50%);transform:scale(.2) translate(-50%);opacity:0}.tippy-popper[x-placement^=bottom] [data-animation=shift-toward][data-state=visible]{-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateY(20px);transform:translateY(20px)}.tippy-popper[x-placement^=bottom] [data-animation=perspective]{-webkit-transform-origin:top;transform-origin:top}.tippy-popper[x-placement^=bottom] [data-animation=perspective][data-state=visible]{-webkit-transform:translateY(10px) rotateX(0);transform:translateY(10px) rotateX(0)}.tippy-popper[x-placement^=bottom] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) rotateX(-60deg);transform:translateY(0) rotateX(-60deg)}.tippy-popper[x-placement^=bottom] [data-animation=fade][data-state=visible]{-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-away][data-state=visible]{-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=bottom] [data-animation=scale][data-state=visible]{-webkit-transform:translateY(10px) scale(1);transform:translateY(10px) scale(1)}.tippy-popper[x-placement^=bottom] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) scale(.5);transform:translateY(0) scale(.5)}.tippy-popper[x-placement^=left] .tippy-backdrop{border-radius:50% 0 0 50%}.tippy-popper[x-placement^=left] .tippy-roundarrow{right:-16px;-webkit-transform-origin:33.33333333% 50%;transform-origin:33.33333333% 50%}.tippy-popper[x-placement^=left] .tippy-roundarrow svg{position:absolute;left:0;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.tippy-popper[x-placement^=left] .tippy-arrow{border-left:8px solid #333;border-top:8px solid transparent;border-bottom:8px solid transparent;right:-7px;margin:3px 0;-webkit-transform-origin:0 50%;transform-origin:0 50%}.tippy-popper[x-placement^=left] .tippy-backdrop{-webkit-transform-origin:50% 0;transform-origin:50% 0}.tippy-popper[x-placement^=left] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%)}.tippy-popper[x-placement^=left] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.2) translate(-75%,-50%);transform:scale(.2) translate(-75%,-50%);opacity:0}.tippy-popper[x-placement^=left] [data-animation=shift-toward][data-state=visible]{-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateX(-20px);transform:translateX(-20px)}.tippy-popper[x-placement^=left] [data-animation=perspective]{-webkit-transform-origin:right;transform-origin:right}.tippy-popper[x-placement^=left] [data-animation=perspective][data-state=visible]{-webkit-transform:translateX(-10px) rotateY(0);transform:translateX(-10px) rotateY(0)}.tippy-popper[x-placement^=left] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) rotateY(-60deg);transform:translateX(0) rotateY(-60deg)}.tippy-popper[x-placement^=left] [data-animation=fade][data-state=visible]{-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-away][data-state=visible]{-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateX(0);transform:translateX(0)}.tippy-popper[x-placement^=left] [data-animation=scale][data-state=visible]{-webkit-transform:translateX(-10px) scale(1);transform:translateX(-10px) scale(1)}.tippy-popper[x-placement^=left] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) scale(.5);transform:translateX(0) scale(.5)}.tippy-popper[x-placement^=right] .tippy-backdrop{border-radius:0 50% 50% 0}.tippy-popper[x-placement^=right] .tippy-roundarrow{left:-16px;-webkit-transform-origin:66.66666666% 50%;transform-origin:66.66666666% 50%}.tippy-popper[x-placement^=right] .tippy-roundarrow svg{position:absolute;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.tippy-popper[x-placement^=right] .tippy-arrow{border-right:8px solid #333;border-top:8px solid transparent;border-bottom:8px solid transparent;left:-7px;margin:3px 0;-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.tippy-popper[x-placement^=right] .tippy-backdrop{-webkit-transform-origin:-50% 0;transform-origin:-50% 0}.tippy-popper[x-placement^=right] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%)}.tippy-popper[x-placement^=right] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.2) translate(-25%,-50%);transform:scale(.2) translate(-25%,-50%);opacity:0}.tippy-popper[x-placement^=right] [data-animation=shift-toward][data-state=visible]{-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateX(20px);transform:translateX(20px)}.tippy-popper[x-placement^=right] [data-animation=perspective]{-webkit-transform-origin:left;transform-origin:left}.tippy-popper[x-placement^=right] [data-animation=perspective][data-state=visible]{-webkit-transform:translateX(10px) rotateY(0);transform:translateX(10px) rotateY(0)}.tippy-popper[x-placement^=right] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) rotateY(60deg);transform:translateX(0) rotateY(60deg)}.tippy-popper[x-placement^=right] [data-animation=fade][data-state=visible]{-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-away][data-state=visible]{-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateX(0);transform:translateX(0)}.tippy-popper[x-placement^=right] [data-animation=scale][data-state=visible]{-webkit-transform:translateX(10px) scale(1);transform:translateX(10px) scale(1)}.tippy-popper[x-placement^=right] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) scale(.5);transform:translateX(0) scale(.5)}.tippy-tooltip{position:relative;color:#fff;border-radius:4px;font-size:.9rem;padding:.3rem .6rem;max-width:350px;text-align:center;will-change:transform;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#333}.tippy-tooltip[data-size=small]{padding:.2rem .4rem;font-size:.75rem}.tippy-tooltip[data-size=large]{padding:.4rem .8rem;font-size:1rem}.tippy-tooltip[data-animatefill]{overflow:hidden;background-color:transparent}.tippy-tooltip[data-interactive],.tippy-tooltip[data-interactive] path{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.53,2,.36,.85)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow,.tippy-roundarrow{position:absolute;width:0;height:0}.tippy-roundarrow{width:24px;height:8px;fill:#333;pointer-events:none}.tippy-backdrop{position:absolute;will-change:transform;background-color:#333;border-radius:50%;width:calc(110% + 2rem);left:50%;top:50%;z-index:-1;transition:all cubic-bezier(.46,.1,.52,.98);-webkit-backface-visibility:hidden;backface-visibility:hidden}.tippy-backdrop:after{content:"";float:left;padding-top:100%}.tippy-backdrop+.tippy-content{transition-property:opacity;will-change:opacity}.tippy-backdrop+.tippy-content[data-state=visible]{opacity:1}.tippy-backdrop+.tippy-content[data-state=hidden]{opacity:0}',oe='3.3.0',ie=Object.assign||function(e){for(var t,r=1;r<arguments.length;r++)for(var a in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},ne={a11y:!0,allowHTML:!0,animateFill:!0,animation:'shift-away',appendTo:function(){return document.body},arrow:!1,arrowTransform:'',arrowType:'sharp',content:'',delay:[0,20],distance:10,duration:[325,275],flip:!0,flipBehavior:'flip',followCursor:!1,hideOnClick:!0,inertia:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,lazy:!0,livePlacement:!0,maxWidth:'',multiple:!1,offset:0,onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},performance:!1,placement:'top',popperOptions:{},shouldPopperHideOnBlur:function(){return!0},showOnInit:!1,size:'regular',sticky:!1,target:'',theme:'dark',touch:!0,touchHold:!1,trigger:'mouseenter focus',updateDuration:200,wait:null,zIndex:9999},se=function(e){ne=ie({},ne,e)},le=['arrowType','distance','flip','flipBehavior','offset','placement','popperOptions'],de='undefined'!=typeof window,me=de?navigator:{},ce=de?window:{},fe=('MutationObserver'in ce),he=/MSIE |Trident\//.test(me.userAgent),be=/iPhone|iPad|iPod/.test(me.platform)&&!ce.MSStream,ye=('ontouchstart'in ce),ue='undefined'!=typeof window&&'undefined'!=typeof document,ge=['Edge','Trident','Firefox'],xe=0,we=0;we<ge.length;we+=1)if(ue&&0<=navigator.userAgent.indexOf(ge[we])){xe=1;break}var i=ue&&window.Promise,ve=i?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},xe))}},ke=ue&&!!(window.MSInputMethodContext&&document.documentMode),Ee=ue&&/MSIE 10/.test(navigator.userAgent),Oe=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},Ce=function(){function e(e,t){for(var r,a=0;a<t.length;a++)r=t[a],r.enumerable=r.enumerable||!1,r.configurable=!0,'value'in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}return function(t,r,a){return r&&e(t.prototype,r),a&&e(t,a),t}}(),Le=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},Te=Object.assign||function(e){for(var t,r=1;r<arguments.length;r++)for(var a in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Ae=ue&&/Firefox/i.test(navigator.userAgent),Ye=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'],Se=Ye.slice(3),Pe={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},De=function(){function t(r,a){var p=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Oe(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(p.update)},this.update=ve(this.update.bind(this)),this.options=Te({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=r&&r.jquery?r[0]:r,this.popper=a&&a.jquery?a[0]:a,this.options.modifiers={},Object.keys(Te({},t.Defaults.modifiers,o.modifiers)).forEach(function(e){p.options.modifiers[e]=Te({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return Te({name:e},p.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(p.reference,p.popper,p.options,t,p.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return Ce(t,[{key:'update',value:function(){return P.call(this)}},{key:'destroy',value:function(){return I.call(this)}},{key:'enableEventListeners',value:function(){return W.call(this)}},{key:'disableEventListeners',value:function(){return M.call(this)}}]),t}();De.Utils=('undefined'==typeof window?global:window).PopperUtils,De.placements=Ye,De.Defaults={placement:'bottom',positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,r=t.split('-')[0],a=t.split('-')[1];if(a){var p=e.offsets,o=p.reference,i=p.popper,n=-1!==['bottom','top'].indexOf(r),s=n?'left':'top',l=n?'width':'height',d={start:Le({},s,o[s]),end:Le({},s,o[s]+o[l]-i[l])};e.offsets.popper=Te({},i,d[a])}return e}},offset:{order:200,enabled:!0,fn:J,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var r=t.boundariesElement||o(e.instance.popper);e.instance.reference===r&&(r=o(r));var a=X('transform'),p=e.instance.popper.style,i=p.top,n=p.left,s=p[a];p.top='',p.left='',p[a]='';var l=v(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);p.top=i,p.left=n,p[a]=s,t.boundaries=l;var d=t.priority,m=e.offsets.popper,c={primary:function(e){var r=m[e];return m[e]<l[e]&&!t.escapeWithReference&&(r=ae(m[e],l[e])),Le({},e,r)},secondary:function(e){var r='right'===e?'left':'top',a=m[r];return m[e]>l[e]&&!t.escapeWithReference&&(a=ee(m[r],l[e]-('right'===e?m.width:m.height))),Le({},r,a)}};return d.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';m=Te({},m,c[t](e))}),e.offsets.popper=m,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,r=t.popper,a=t.reference,p=e.placement.split('-')[0],o=te,i=-1!==['top','bottom'].indexOf(p),n=i?'right':'bottom',s=i?'left':'top',l=i?'width':'height';return r[n]<o(a[s])&&(e.offsets.popper[s]=o(a[s])-r[l]),r[s]>o(a[n])&&(e.offsets.popper[s]=o(a[n])),e}},arrow:{order:500,enabled:!0,fn:function(e,r){var a;if(!V(e.instance.modifiers,'arrow','keepTogether'))return e;var p=r.element;if('string'==typeof p){if(p=e.instance.popper.querySelector(p),!p)return e;}else if(!e.instance.popper.contains(p))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var o=e.placement.split('-')[0],i=e.offsets,n=i.popper,s=i.reference,l=-1!==['left','right'].indexOf(o),d=l?'height':'width',m=l?'Top':'Left',c=m.toLowerCase(),f=l?'left':'top',h=l?'bottom':'right',y=C(p)[d];s[h]-y<n[c]&&(e.offsets.popper[c]-=n[c]-(s[h]-y)),s[c]+y>n[h]&&(e.offsets.popper[c]+=s[c]+y-n[h]),e.offsets.popper=b(e.offsets.popper);var u=s[c]+s[d]/2-y/2,g=t(e.instance.popper),x=parseFloat(g['margin'+m],10),w=parseFloat(g['border'+m+'Width'],10),v=u-e.offsets.popper[c]-x-w;return v=ae(ee(n[d]-y,v),0),e.arrowElement=p,e.offsets.arrow=(a={},Le(a,c,re(v)),Le(a,f,''),a),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(D(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var r=v(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),a=e.placement.split('-')[0],p=L(a),o=e.placement.split('-')[1]||'',i=[];switch(t.behavior){case Pe.FLIP:i=[a,p];break;case Pe.CLOCKWISE:i=j(a);break;case Pe.COUNTERCLOCKWISE:i=j(a,!0);break;default:i=t.behavior;}return i.forEach(function(n,s){if(a!==n||i.length===s+1)return e;a=e.placement.split('-')[0],p=L(a);var l=e.offsets.popper,d=e.offsets.reference,m=te,c='left'===a&&m(l.right)>m(d.left)||'right'===a&&m(l.left)<m(d.right)||'top'===a&&m(l.bottom)>m(d.top)||'bottom'===a&&m(l.top)<m(d.bottom),f=m(l.left)<m(r.left),h=m(l.right)>m(r.right),b=m(l.top)<m(r.top),y=m(l.bottom)>m(r.bottom),u='left'===a&&f||'right'===a&&h||'top'===a&&b||'bottom'===a&&y,g=-1!==['top','bottom'].indexOf(a),x=!!t.flipVariations&&(g&&'start'===o&&f||g&&'end'===o&&h||!g&&'start'===o&&b||!g&&'end'===o&&y);(c||u||x)&&(e.flipped=!0,(c||u)&&(a=i[s+1]),x&&(o=q(o)),e.placement=a+(o?'-'+o:''),e.offsets.popper=Te({},e.offsets.popper,T(e.instance.popper,e.offsets.reference,e.placement)),e=S(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,r=t.split('-')[0],a=e.offsets,p=a.popper,o=a.reference,i=-1!==['left','right'].indexOf(r),n=-1===['top','left'].indexOf(r);return p[i?'left':'top']=o[r]-(n?p[i?'width':'height']:0),e.placement=L(t),e.offsets.popper=b(p),e}},hide:{order:800,enabled:!0,fn:function(e){if(!V(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,r=A(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(!0===e.hide)return e;e.hide=!0,e.attributes['x-out-of-boundaries']=''}else{if(!1===e.hide)return e;e.hide=!1,e.attributes['x-out-of-boundaries']=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var r=t.x,a=t.y,p=e.offsets.popper,i=A(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==i&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var n=void 0===i?t.gpuAcceleration:i,s=o(e.instance.popper),l=u(s),d={position:p.position},m=U(e,2>window.devicePixelRatio||!Ae),c='bottom'===r?'top':'bottom',f='right'===a?'left':'right',h=X('transform'),b=void 0,y=void 0;if(y='bottom'==c?'HTML'===s.nodeName?-s.clientHeight+m.bottom:-l.height+m.bottom:m.top,b='right'==f?'HTML'===s.nodeName?-s.clientWidth+m.right:-l.width+m.right:m.left,n&&h)d[h]='translate3d('+b+'px, '+y+'px, 0)',d[c]=0,d[f]=0,d.willChange='transform';else{var g='bottom'==c?-1:1,x='right'==f?-1:1;d[c]=y*g,d[f]=b*x,d.willChange=c+', '+f}var w={"x-placement":e.placement};return e.attributes=Te({},w,e.attributes),e.styles=Te({},d,e.styles),e.arrowStyles=Te({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return _(e.instance.popper,e.styles),F(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&_(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,r,a,p){var o=O(p,t,e,r.positionFixed),i=E(r.placement,o,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute('x-placement',i),_(t,{position:r.positionFixed?'fixed':'absolute'}),r},gpuAcceleration:void 0}}};var Xe={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow'},Ie={x:!0},Ne=function(e){return[].slice.call(e)},He=function(e,t){t.content instanceof Element?(_e(e,''),e.appendChild(t.content)):e[t.allowHTML?'innerHTML':'textContent']=t.content},Re=function(e){return!(e instanceof Element)||at.call(e,'a[href],area[href],button,details,input,textarea,select,iframe,[tabindex]')&&!e.hasAttribute('disabled')},We=function(e,t){e.filter(Boolean).forEach(function(e){e.style.transitionDuration=t+'ms'})},Be=function(e){var t=function(t){return e.querySelector(t)};return{tooltip:t(Xe.TOOLTIP),backdrop:t(Xe.BACKDROP),content:t(Xe.CONTENT),arrow:t(Xe.ARROW)||t(Xe.ROUND_ARROW)}},Me=function(e){return'[object Object]'==={}.toString.call(e)},ze=function(){return document.createElement('div')},_e=function(e,t){e[Ie.x&&'innerHTML']=t instanceof Element?t[Ie.x&&'innerHTML']:t},Fe=function(e){if(e instanceof Element||Me(e))return[e];if(e instanceof NodeList)return Ne(e);if(Array.isArray(e))return e;try{return Ne(document.querySelectorAll(e))}catch(t){return[]}},Ue=function(e){return!isNaN(e)&&!isNaN(parseFloat(e))},Ve=function(e,t,r){if(Array.isArray(e)){var a=e[t];return null==a?r:a}return e},qe=function(e){var t=ze();return'round'===e?(t.className='tippy-roundarrow',_e(t,'<svg viewBox="0 0 24 8" xmlns="http://www.w3.org/2000/svg"><path d="M3 8s2.021-.015 5.253-4.218C9.584 2.051 10.797 1.007 12 1c1.203-.007 2.416 1.035 3.761 2.782C19.012 8.005 21 8 21 8H3z"/></svg>')):t.className='tippy-arrow',t},je=function(){var e=ze();return e.className='tippy-backdrop',e.setAttribute('data-state','hidden'),e},Ke=function(e,t){e.setAttribute('tabindex','-1'),t.setAttribute('data-interactive','')},Ge=function(e,t){e.removeAttribute('tabindex'),t.removeAttribute('data-interactive')},Je=function(e){e.setAttribute('data-inertia','')},Ze=function(e){e.removeAttribute('data-inertia')},$e=function(e,t){var r=ze();r.className='tippy-popper',r.setAttribute('role','tooltip'),r.id='tippy-'+e,r.style.zIndex=t.zIndex;var a=ze();a.className='tippy-tooltip',a.style.maxWidth=t.maxWidth+('number'==typeof t.maxWidth?'px':''),a.setAttribute('data-size',t.size),a.setAttribute('data-animation',t.animation),a.setAttribute('data-state','hidden'),t.theme.split(' ').forEach(function(e){a.classList.add(e+'-theme')});var p=ze();return p.className='tippy-content',p.setAttribute('data-state','hidden'),t.interactive&&Ke(r,a),t.arrow&&a.appendChild(qe(t.arrowType)),t.animateFill&&(a.appendChild(je()),a.setAttribute('data-animatefill','')),t.inertia&&a.setAttribute('data-inertia',''),He(p,t),a.appendChild(p),r.appendChild(a),r.addEventListener('focusout',function(t){t.relatedTarget&&r._tippy&&!ot(t.relatedTarget,function(e){return e===r})&&t.relatedTarget!==r._tippy.reference&&r._tippy.props.shouldPopperHideOnBlur(t)&&r._tippy.hide()}),r},Qe=function(e,t,r){var a=Be(e),p=a.tooltip,o=a.content,i=a.backdrop,n=a.arrow;e.style.zIndex=r.zIndex,p.setAttribute('data-size',r.size),p.setAttribute('data-animation',r.animation),p.style.maxWidth=r.maxWidth+('number'==typeof r.maxWidth?'px':''),t.content!==r.content&&He(o,r),!t.animateFill&&r.animateFill?(p.appendChild(je()),p.setAttribute('data-animatefill','')):t.animateFill&&!r.animateFill&&(p.removeChild(i),p.removeAttribute('data-animatefill')),!t.arrow&&r.arrow?p.appendChild(qe(r.arrowType)):t.arrow&&!r.arrow&&p.removeChild(n),t.arrow&&r.arrow&&t.arrowType!==r.arrowType&&p.replaceChild(qe(r.arrowType),n),!t.interactive&&r.interactive?Ke(e,p):t.interactive&&!r.interactive&&Ge(e,p),!t.inertia&&r.inertia?Je(p):t.inertia&&!r.inertia&&Ze(p),t.theme!==r.theme&&(t.theme.split(' ').forEach(function(e){p.classList.remove(e+'-theme')}),r.theme.split(' ').forEach(function(e){p.classList.add(e+'-theme')}))},et=function(e){Ne(document.querySelectorAll(Xe.POPPER)).forEach(function(t){var r=t._tippy;r&&!0===r.props.hideOnClick&&(!e||t!==e.popper)&&r.hide()})},tt=function(e){return Object.keys(ne).reduce(function(t,r){var a=(e.getAttribute('data-tippy-'+r)||'').trim();return a?(t[r]='content'===r?a:'true'===a||'false'!==a&&(Ue(a)?+a:'['===a[0]||'{'===a[0]?JSON.parse(a):a),t):t},{})},rt=function(e){var t={isVirtual:!0,attributes:e.attributes||{},setAttribute:function(t,r){e.attributes[t]=r},getAttribute:function(t){return e.attributes[t]},removeAttribute:function(t){delete e.attributes[t]},hasAttribute:function(t){return t in e.attributes},addEventListener:function(){},removeEventListener:function(){},classList:{classNames:{},add:function(t){e.classList.classNames[t]=!0},remove:function(t){delete e.classList.classNames[t]},contains:function(t){return t in e.classList.classNames}}};for(var r in t)e[r]=t[r];return e},at=function(){if(de){var t=Element.prototype;return t.matches||t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector}}(),pt=function(e,t){return(Element.prototype.closest||function(e){for(var t=this;t;){if(at.call(t,e))return t;t=t.parentElement}}).call(e,t)},ot=function(e,t){for(;e;){if(t(e))return e;e=e.parentElement}},it=function(e){var t=window.scrollX||window.pageXOffset,r=window.scrollY||window.pageYOffset;e.focus(),scroll(t,r)},nt=function(e){void e.offsetHeight},st=function(e,t){return(t?e:{X:'Y',Y:'X'}[e])||''},lt=function(e,t,r,p){var o=t[0],i=t[1];if(!o&&!i)return'';var n={scale:function(){return i?r?o+', '+i:i+', '+o:''+o}(),translate:function(){return i?r?p?o+'px, '+-i+'px':o+'px, '+i+'px':p?-i+'px, '+o+'px':i+'px, '+o+'px':p?-o+'px':o+'px'}()};return n[e]},dt=function(e,t){var r=e.match(new RegExp(t+'([XY])'));return r?r[1]:''},mt=function(e,t){var r=e.match(t);return r?r[1].split(',').map(parseFloat):[]},ct={translate:/translateX?Y?\(([^)]+)\)/,scale:/scaleX?Y?\(([^)]+)\)/},ft=function(e,t){var r=xt(pt(e,Xe.POPPER)),a='top'===r||'bottom'===r,p='right'===r||'bottom'===r,o={translate:{axis:dt(t,'translate'),numbers:mt(t,ct.translate)},scale:{axis:dt(t,'scale'),numbers:mt(t,ct.scale)}},i=t.replace(ct.translate,'translate'+st(o.translate.axis,a)+'('+lt('translate',o.translate.numbers,a,p)+')').replace(ct.scale,'scale'+st(o.scale.axis,a)+'('+lt('scale',o.scale.numbers,a,p)+')');e.style['undefined'==typeof document.body.style.transform?'webkitTransform':'transform']=i},ht=function(e,t){e.filter(Boolean).forEach(function(e){e.setAttribute('data-state',t)})},bt=function(e,t){var r=e.popper,a=e.options,p=a.onCreate,o=a.onUpdate;a.onCreate=a.onUpdate=function(){nt(r),t(),o(),a.onCreate=p,a.onUpdate=o}},yt=function(e){setTimeout(e,1)},ut=function(e,t,r,a){if(!e)return!0;var p=r.clientX,o=r.clientY,i=a.interactiveBorder,n=a.distance,s=t.top-o>('top'===e?i+n:i),l=o-t.bottom>('bottom'===e?i+n:i),d=t.left-p>('left'===e?i+n:i),m=p-t.right>('right'===e?i+n:i);return s||l||d||m},gt=function(e,t){return-(e-t)+'px'},xt=function(e){var t=e.getAttribute('x-placement');return t?t.split('-')[0]:''},wt=function(e,t){var r=ie({},t,t.performance?{}:tt(e));return r.arrow&&(r.animateFill=!1),'function'==typeof r.appendTo&&(r.appendTo=t.appendTo(e)),'function'==typeof r.content&&(r.content=t.content(e)),r},vt=function(e,t,r){e[t+'EventListener']('transitionend',r)},kt=function(e,t){var r;return function(){var a=this,p=arguments;clearTimeout(r),r=setTimeout(function(){return e.apply(a,p)},t)}},Et=function(e,t){for(var r in e||{})if(!(r in t))throw Error('[tippy]: `'+r+'` is not a valid option')},Ot=function(e,t){return{}.hasOwnProperty.call(e,t)},Ct=!1,Lt=function(){Ct||(Ct=!0,be&&document.body.classList.add('tippy-iOS'),window.performance&&document.addEventListener('mousemove',At))},Tt=0,At=function e(){var t=performance.now();20>t-Tt&&(Ct=!1,document.removeEventListener('mousemove',e),!be&&document.body.classList.remove('tippy-iOS')),Tt=t},Yt=function(e){var t=e.target;if(!(t instanceof Element))return et();var r=pt(t,Xe.POPPER);if(!(r&&r._tippy&&r._tippy.props.interactive)){var a=ot(t,function(e){return e._tippy&&e._tippy.reference===e});if(a){var p=a._tippy,o=-1<p.props.trigger.indexOf('click');if(Ct||o)return et(p);if(!0!==p.props.hideOnClick||o)return;p.clearDelayTimeouts()}et()}},St=function(){var e=document,t=e.activeElement;t&&t.blur&&t._tippy&&t.blur()},Pt=function(){Ne(document.querySelectorAll(Xe.POPPER)).forEach(function(e){var t=e._tippy;t.props.livePlacement||t.popperInstance.scheduleUpdate()})},Dt=1,Xt=!1;Q.version=oe,Q.defaults=ne,Q.one=function(e,t){return Q(e,t,!0).instances[0]},Q.setDefaults=function(e){se(e),Q.defaults=ne},Q.disableAnimations=function(){Q.setDefaults({duration:0,updateDuration:0,animateFill:!1})},Q.hideAllPoppers=et,Q.useCapture=function(){};return de&&setTimeout(function(){Ne(document.querySelectorAll('[data-tippy]')).forEach(function(e){var t=e.getAttribute('data-tippy');t&&Q(e,{content:t})})}),function(e){if(fe){var t=document.createElement('style');t.type='text/css',t.textContent=e,document.head.insertBefore(t,document.head.firstChild)}}(pe),Q});
|
1633
1772
|
//# sourceMappingURL=tippy.all.min.js.map
|
1634
1773
|
|
1635
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
1774
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(17)))
|
1636
1775
|
|
1637
1776
|
/***/ }),
|
1638
|
-
/*
|
1777
|
+
/* 17 */
|
1639
1778
|
/***/ (function(module, exports) {
|
1640
1779
|
|
1641
1780
|
var g;
|
@@ -1661,143 +1800,7 @@ module.exports = g;
|
|
1661
1800
|
|
1662
1801
|
|
1663
1802
|
/***/ }),
|
1664
|
-
/*
|
1665
|
-
/***/ (function(module, exports, __webpack_require__) {
|
1666
|
-
|
1667
|
-
"use strict";
|
1668
|
-
|
1669
|
-
|
1670
|
-
Object.defineProperty(exports, "__esModule", {
|
1671
|
-
value: true
|
1672
|
-
});
|
1673
|
-
exports.getElementForStep = exports.elementIsHidden = exports.cleanupStepEventListeners = exports.addStepEventListeners = undefined;
|
1674
|
-
|
1675
|
-
var _modal = __webpack_require__(7);
|
1676
|
-
|
1677
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
1678
|
-
|
1679
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
1680
|
-
|
1681
|
-
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
1682
|
-
|
1683
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
1684
|
-
|
1685
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
1686
|
-
|
1687
|
-
/**
|
1688
|
-
* Helper method to check if element is hidden, since we cannot use :visible without jQuery
|
1689
|
-
* @param {HTMLElement} element The element to check for visibility
|
1690
|
-
* @returns {boolean} true if element is hidden
|
1691
|
-
* @private
|
1692
|
-
*/
|
1693
|
-
function elementIsHidden(element) {
|
1694
|
-
return element.offsetWidth === 0 && element.offsetHeight === 0;
|
1695
|
-
}
|
1696
|
-
/**
|
1697
|
-
* Get the element from an option object
|
1698
|
-
*
|
1699
|
-
* @method getElementFromObject
|
1700
|
-
* @param Object attachTo
|
1701
|
-
* @returns {Element}
|
1702
|
-
* @private
|
1703
|
-
*/
|
1704
|
-
|
1705
|
-
|
1706
|
-
function getElementFromObject(attachTo) {
|
1707
|
-
var op = attachTo.element;
|
1708
|
-
|
1709
|
-
if (op instanceof HTMLElement) {
|
1710
|
-
return op;
|
1711
|
-
}
|
1712
|
-
|
1713
|
-
return document.querySelector(op);
|
1714
|
-
}
|
1715
|
-
/**
|
1716
|
-
* Return the element for a step
|
1717
|
-
*
|
1718
|
-
* @method getElementForStep
|
1719
|
-
* @param step step the step to get an element for
|
1720
|
-
* @returns {Element} the element for this step
|
1721
|
-
* @private
|
1722
|
-
*/
|
1723
|
-
|
1724
|
-
|
1725
|
-
function getElementForStep(step) {
|
1726
|
-
var attachTo = step.options.attachTo;
|
1727
|
-
|
1728
|
-
if (!attachTo) {
|
1729
|
-
return null;
|
1730
|
-
}
|
1731
|
-
|
1732
|
-
var type = _typeof(attachTo);
|
1733
|
-
|
1734
|
-
var element;
|
1735
|
-
|
1736
|
-
if (type === 'string') {
|
1737
|
-
element = getElementFromString(attachTo);
|
1738
|
-
} else if (type === 'object') {
|
1739
|
-
element = getElementFromObject(attachTo);
|
1740
|
-
} else {
|
1741
|
-
/* istanbul ignore next: cannot test undefined attachTo, but it does work! */
|
1742
|
-
element = null;
|
1743
|
-
}
|
1744
|
-
|
1745
|
-
return element;
|
1746
|
-
}
|
1747
|
-
/**
|
1748
|
-
* Get the element from an option string
|
1749
|
-
*
|
1750
|
-
* @method getElementFromString
|
1751
|
-
* @param element the string in the step configuration
|
1752
|
-
* @returns {Element} the element from the string
|
1753
|
-
* @private
|
1754
|
-
*/
|
1755
|
-
|
1756
|
-
|
1757
|
-
function getElementFromString(element) {
|
1758
|
-
var _element$split = element.split(' '),
|
1759
|
-
_element$split2 = _slicedToArray(_element$split, 1),
|
1760
|
-
selector = _element$split2[0];
|
1761
|
-
|
1762
|
-
return document.querySelector(selector);
|
1763
|
-
}
|
1764
|
-
|
1765
|
-
function addStepEventListeners() {
|
1766
|
-
if (typeof this._onScreenChange === 'function') {
|
1767
|
-
window.removeEventListener('resize', this._onScreenChange, false);
|
1768
|
-
window.removeEventListener('scroll', this._onScreenChange, false);
|
1769
|
-
}
|
1770
|
-
|
1771
|
-
window.addEventListener('resize', this._onScreenChange, false);
|
1772
|
-
window.addEventListener('scroll', this._onScreenChange, false);
|
1773
|
-
var overlay = document.querySelector("#".concat(_modal.elementIds.modalOverlay)); // Prevents window from moving on touch.
|
1774
|
-
|
1775
|
-
window.addEventListener('touchmove', _modal.preventModalBodyTouch, false); // Allows content to move on touch.
|
1776
|
-
|
1777
|
-
if (overlay) {
|
1778
|
-
overlay.addEventListener('touchmove', _modal.preventModalOverlayTouch, false);
|
1779
|
-
}
|
1780
|
-
}
|
1781
|
-
/**
|
1782
|
-
* Remove resize and scroll event listeners
|
1783
|
-
*/
|
1784
|
-
|
1785
|
-
|
1786
|
-
function cleanupStepEventListeners() {
|
1787
|
-
if (typeof this._onScreenChange === 'function') {
|
1788
|
-
window.removeEventListener('resize', this._onScreenChange, false);
|
1789
|
-
window.removeEventListener('scroll', this._onScreenChange, false);
|
1790
|
-
this._onScreenChange = null;
|
1791
|
-
}
|
1792
|
-
}
|
1793
|
-
|
1794
|
-
exports.addStepEventListeners = addStepEventListeners;
|
1795
|
-
exports.cleanupStepEventListeners = cleanupStepEventListeners;
|
1796
|
-
exports.elementIsHidden = elementIsHidden;
|
1797
|
-
exports.getElementForStep = getElementForStep;
|
1798
|
-
|
1799
|
-
/***/ }),
|
1800
|
-
/* 18 */
|
1803
|
+
/* 18 */
|
1801
1804
|
/***/ (function(module, exports, __webpack_require__) {
|
1802
1805
|
|
1803
1806
|
"use strict";
|
@@ -1807,9 +1810,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
1807
1810
|
value: true
|
1808
1811
|
});
|
1809
1812
|
|
1810
|
-
var _evented = __webpack_require__(
|
1813
|
+
var _evented = __webpack_require__(5);
|
1811
1814
|
|
1812
|
-
var _step = __webpack_require__(
|
1815
|
+
var _step = __webpack_require__(9);
|
1813
1816
|
|
1814
1817
|
var _tour = __webpack_require__(47);
|
1815
1818
|
|
@@ -1933,7 +1936,7 @@ module.exports = identity;
|
|
1933
1936
|
/* 22 */
|
1934
1937
|
/***/ (function(module, exports, __webpack_require__) {
|
1935
1938
|
|
1936
|
-
var overArg = __webpack_require__(
|
1939
|
+
var overArg = __webpack_require__(7);
|
1937
1940
|
|
1938
1941
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
1939
1942
|
var nativeKeys = overArg(Object.keys, Object);
|
@@ -1997,7 +2000,7 @@ module.exports = stubFalse;
|
|
1997
2000
|
/* 25 */
|
1998
2001
|
/***/ (function(module, exports, __webpack_require__) {
|
1999
2002
|
|
2000
|
-
var isFunction = __webpack_require__(
|
2003
|
+
var isFunction = __webpack_require__(6),
|
2001
2004
|
isLength = __webpack_require__(26);
|
2002
2005
|
|
2003
2006
|
/**
|
@@ -2248,7 +2251,7 @@ module.exports = isPlainObject;
|
|
2248
2251
|
/* 32 */
|
2249
2252
|
/***/ (function(module, exports, __webpack_require__) {
|
2250
2253
|
|
2251
|
-
var overArg = __webpack_require__(
|
2254
|
+
var overArg = __webpack_require__(7);
|
2252
2255
|
|
2253
2256
|
/** Built-in value references. */
|
2254
2257
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
@@ -2335,7 +2338,7 @@ module.exports = createBaseFor;
|
|
2335
2338
|
/* 36 */
|
2336
2339
|
/***/ (function(module, exports, __webpack_require__) {
|
2337
2340
|
|
2338
|
-
var overArg = __webpack_require__(
|
2341
|
+
var overArg = __webpack_require__(7);
|
2339
2342
|
|
2340
2343
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
2341
2344
|
var nativeKeys = overArg(Object.keys, Object);
|
@@ -2609,11 +2612,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
2609
2612
|
});
|
2610
2613
|
exports.Shepherd = exports.Tour = undefined;
|
2611
2614
|
|
2612
|
-
var
|
2613
|
-
|
2614
|
-
var _debounce3 = _interopRequireDefault(_debounce2);
|
2615
|
-
|
2616
|
-
var _isEmpty2 = __webpack_require__(11);
|
2615
|
+
var _isEmpty2 = __webpack_require__(12);
|
2617
2616
|
|
2618
2617
|
var _isEmpty3 = _interopRequireDefault(_isEmpty2);
|
2619
2618
|
|
@@ -2625,31 +2624,33 @@ var _isString2 = __webpack_require__(2);
|
|
2625
2624
|
|
2626
2625
|
var _isString3 = _interopRequireDefault(_isString2);
|
2627
2626
|
|
2628
|
-
var _isNumber2 = __webpack_require__(
|
2627
|
+
var _isNumber2 = __webpack_require__(48);
|
2629
2628
|
|
2630
2629
|
var _isNumber3 = _interopRequireDefault(_isNumber2);
|
2631
2630
|
|
2632
|
-
var _isFunction2 = __webpack_require__(
|
2631
|
+
var _isFunction2 = __webpack_require__(6);
|
2633
2632
|
|
2634
2633
|
var _isFunction3 = _interopRequireDefault(_isFunction2);
|
2635
2634
|
|
2636
|
-
var _evented = __webpack_require__(
|
2635
|
+
var _evented = __webpack_require__(5);
|
2636
|
+
|
2637
|
+
var _modal = __webpack_require__(49);
|
2637
2638
|
|
2638
|
-
var _step = __webpack_require__(
|
2639
|
+
var _step = __webpack_require__(9);
|
2639
2640
|
|
2640
|
-
var _bind = __webpack_require__(
|
2641
|
+
var _bind = __webpack_require__(14);
|
2641
2642
|
|
2642
|
-
var _tippy = __webpack_require__(
|
2643
|
+
var _tippy = __webpack_require__(16);
|
2643
2644
|
|
2644
2645
|
var _tippy2 = _interopRequireDefault(_tippy);
|
2645
2646
|
|
2646
|
-
var _tooltipDefaults = __webpack_require__(
|
2647
|
+
var _tooltipDefaults = __webpack_require__(62);
|
2647
2648
|
|
2648
|
-
var _cleanup = __webpack_require__(
|
2649
|
+
var _cleanup = __webpack_require__(63);
|
2649
2650
|
|
2650
|
-
var _dom = __webpack_require__(
|
2651
|
+
var _dom = __webpack_require__(8);
|
2651
2652
|
|
2652
|
-
var
|
2653
|
+
var _modal2 = __webpack_require__(4);
|
2653
2654
|
|
2654
2655
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2655
2656
|
|
@@ -2731,6 +2732,7 @@ exports.Tour = function (_Evented) {
|
|
2731
2732
|
});
|
2732
2733
|
})(event);
|
2733
2734
|
});
|
2735
|
+
_this.modal = new _modal.Modal(options);
|
2734
2736
|
|
2735
2737
|
_this._setTooltipDefaults();
|
2736
2738
|
|
@@ -2824,9 +2826,7 @@ exports.Tour = function (_Evented) {
|
|
2824
2826
|
_dom.cleanupStepEventListeners.call(this);
|
2825
2827
|
|
2826
2828
|
(0, _cleanup.cleanupSteps)(this.tourObject);
|
2827
|
-
|
2828
|
-
_cleanup.cleanupModal.call(this);
|
2829
|
-
|
2829
|
+
this.modal.cleanup();
|
2830
2830
|
this.trigger(event);
|
2831
2831
|
Shepherd.activeTour = null;
|
2832
2832
|
|
@@ -2869,8 +2869,6 @@ exports.Tour = function (_Evented) {
|
|
2869
2869
|
var currentStep = this.getCurrentStep();
|
2870
2870
|
|
2871
2871
|
if (currentStep) {
|
2872
|
-
this._hideModalOverlay();
|
2873
|
-
|
2874
2872
|
return currentStep.hide();
|
2875
2873
|
}
|
2876
2874
|
}
|
@@ -2947,7 +2945,7 @@ exports.Tour = function (_Evented) {
|
|
2947
2945
|
}, {
|
2948
2946
|
key: "beforeShowStep",
|
2949
2947
|
value: function beforeShowStep(step) {
|
2950
|
-
this.
|
2948
|
+
this.modal.setupForStep(step);
|
2951
2949
|
|
2952
2950
|
this._styleTargetElementForStep(step);
|
2953
2951
|
}
|
@@ -2993,8 +2991,6 @@ exports.Tour = function (_Evented) {
|
|
2993
2991
|
|
2994
2992
|
this._setupActiveTour();
|
2995
2993
|
|
2996
|
-
this._initModalOverlay();
|
2997
|
-
|
2998
2994
|
_dom.addStepEventListeners.call(this);
|
2999
2995
|
|
3000
2996
|
this.next();
|
@@ -3014,22 +3010,6 @@ exports.Tour = function (_Evented) {
|
|
3014
3010
|
});
|
3015
3011
|
Shepherd.activeTour = this;
|
3016
3012
|
}
|
3017
|
-
/**
|
3018
|
-
*
|
3019
|
-
*/
|
3020
|
-
|
3021
|
-
}, {
|
3022
|
-
key: "_initModalOverlay",
|
3023
|
-
value: function _initModalOverlay() {
|
3024
|
-
if (!this._modalOverlayElem) {
|
3025
|
-
this._modalOverlayElem = (0, _modal.createModalOverlay)();
|
3026
|
-
this._modalOverlayOpening = (0, _modal.getModalMaskOpening)(this._modalOverlayElem); // don't show yet -- each step will control that
|
3027
|
-
|
3028
|
-
this._hideModalOverlay();
|
3029
|
-
|
3030
|
-
document.body.appendChild(this._modalOverlayElem);
|
3031
|
-
}
|
3032
|
-
}
|
3033
3013
|
/**
|
3034
3014
|
* Modulates the styles of the passed step's target element, based on the step's options and
|
3035
3015
|
* the tour's `modal` option, to visually emphasize the element
|
@@ -3047,7 +3027,7 @@ exports.Tour = function (_Evented) {
|
|
3047
3027
|
return;
|
3048
3028
|
}
|
3049
3029
|
|
3050
|
-
(0,
|
3030
|
+
(0, _modal2.toggleShepherdModalClass)(targetElement);
|
3051
3031
|
|
3052
3032
|
if (step.options.highlightClass) {
|
3053
3033
|
targetElement.classList.add(step.options.highlightClass);
|
@@ -3057,70 +3037,6 @@ exports.Tour = function (_Evented) {
|
|
3057
3037
|
targetElement.style.pointerEvents = 'none';
|
3058
3038
|
}
|
3059
3039
|
}
|
3060
|
-
/**
|
3061
|
-
* If modal is enabled, setup the svg mask opening and modal overlay for the step
|
3062
|
-
* @param step
|
3063
|
-
* @private
|
3064
|
-
*/
|
3065
|
-
|
3066
|
-
}, {
|
3067
|
-
key: "_setupModalForStep",
|
3068
|
-
value: function _setupModalForStep(step) {
|
3069
|
-
if (this.options.useModalOverlay) {
|
3070
|
-
this._styleModalOpeningForStep(step);
|
3071
|
-
|
3072
|
-
this._showModalOverlay();
|
3073
|
-
} else {
|
3074
|
-
this._hideModalOverlay();
|
3075
|
-
}
|
3076
|
-
}
|
3077
|
-
}, {
|
3078
|
-
key: "_styleModalOpeningForStep",
|
3079
|
-
value: function _styleModalOpeningForStep(step) {
|
3080
|
-
var modalOverlayOpening = this._modalOverlayOpening;
|
3081
|
-
var targetElement = (0, _dom.getElementForStep)(step);
|
3082
|
-
|
3083
|
-
if (targetElement) {
|
3084
|
-
(0, _modal.positionModalOpening)(targetElement, modalOverlayOpening);
|
3085
|
-
this._onScreenChange = (0, _debounce3.default)(_modal.positionModalOpening.bind(this, targetElement, modalOverlayOpening), 0, {
|
3086
|
-
leading: false,
|
3087
|
-
trailing: true // see https://lodash.com/docs/#debounce
|
3088
|
-
|
3089
|
-
});
|
3090
|
-
|
3091
|
-
_dom.addStepEventListeners.call(this);
|
3092
|
-
} else {
|
3093
|
-
(0, _modal.closeModalOpening)(this._modalOverlayOpening);
|
3094
|
-
}
|
3095
|
-
}
|
3096
|
-
/**
|
3097
|
-
* Show the modal overlay
|
3098
|
-
* @private
|
3099
|
-
*/
|
3100
|
-
|
3101
|
-
}, {
|
3102
|
-
key: "_showModalOverlay",
|
3103
|
-
value: function _showModalOverlay() {
|
3104
|
-
document.body.classList.add(_modal.classNames.isVisible);
|
3105
|
-
|
3106
|
-
if (this._modalOverlayElem) {
|
3107
|
-
this._modalOverlayElem.style.display = 'block';
|
3108
|
-
}
|
3109
|
-
}
|
3110
|
-
/**
|
3111
|
-
* Hide the modal overlay
|
3112
|
-
* @private
|
3113
|
-
*/
|
3114
|
-
|
3115
|
-
}, {
|
3116
|
-
key: "_hideModalOverlay",
|
3117
|
-
value: function _hideModalOverlay() {
|
3118
|
-
document.body.classList.remove(_modal.classNames.isVisible);
|
3119
|
-
|
3120
|
-
if (this._modalOverlayElem) {
|
3121
|
-
this._modalOverlayElem.style.display = 'none';
|
3122
|
-
}
|
3123
|
-
}
|
3124
3040
|
/**
|
3125
3041
|
* Called when `showOn` evaluates to false, to skip the step
|
3126
3042
|
* @param {Step} step The step to skip
|
@@ -3181,60 +3097,451 @@ exports.Shepherd = Shepherd;
|
|
3181
3097
|
/* 48 */
|
3182
3098
|
/***/ (function(module, exports, __webpack_require__) {
|
3183
3099
|
|
3184
|
-
var
|
3185
|
-
|
3186
|
-
toNumber = __webpack_require__(52);
|
3187
|
-
|
3188
|
-
/** Error message constants. */
|
3189
|
-
var FUNC_ERROR_TEXT = 'Expected a function';
|
3100
|
+
var baseGetTag = __webpack_require__(3),
|
3101
|
+
isObjectLike = __webpack_require__(1);
|
3190
3102
|
|
3191
|
-
|
3192
|
-
var
|
3193
|
-
nativeMin = Math.min;
|
3103
|
+
/** `Object#toString` result references. */
|
3104
|
+
var numberTag = '[object Number]';
|
3194
3105
|
|
3195
3106
|
/**
|
3196
|
-
*
|
3197
|
-
* milliseconds have elapsed since the last time the debounced function was
|
3198
|
-
* invoked. The debounced function comes with a `cancel` method to cancel
|
3199
|
-
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
3200
|
-
* Provide `options` to indicate whether `func` should be invoked on the
|
3201
|
-
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
3202
|
-
* with the last arguments provided to the debounced function. Subsequent
|
3203
|
-
* calls to the debounced function return the result of the last `func`
|
3204
|
-
* invocation.
|
3205
|
-
*
|
3206
|
-
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
3207
|
-
* invoked on the trailing edge of the timeout only if the debounced function
|
3208
|
-
* is invoked more than once during the `wait` timeout.
|
3209
|
-
*
|
3210
|
-
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
3211
|
-
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
3107
|
+
* Checks if `value` is classified as a `Number` primitive or object.
|
3212
3108
|
*
|
3213
|
-
*
|
3214
|
-
*
|
3109
|
+
* **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
|
3110
|
+
* classified as numbers, use the `_.isFinite` method.
|
3215
3111
|
*
|
3216
3112
|
* @static
|
3217
3113
|
* @memberOf _
|
3218
3114
|
* @since 0.1.0
|
3219
|
-
* @category
|
3220
|
-
* @param {
|
3221
|
-
* @
|
3222
|
-
* @param {Object} [options={}] The options object.
|
3223
|
-
* @param {boolean} [options.leading=false]
|
3224
|
-
* Specify invoking on the leading edge of the timeout.
|
3225
|
-
* @param {number} [options.maxWait]
|
3226
|
-
* The maximum time `func` is allowed to be delayed before it's invoked.
|
3227
|
-
* @param {boolean} [options.trailing=true]
|
3228
|
-
* Specify invoking on the trailing edge of the timeout.
|
3229
|
-
* @returns {Function} Returns the new debounced function.
|
3115
|
+
* @category Lang
|
3116
|
+
* @param {*} value The value to check.
|
3117
|
+
* @returns {boolean} Returns `true` if `value` is a number, else `false`.
|
3230
3118
|
* @example
|
3231
3119
|
*
|
3232
|
-
*
|
3233
|
-
*
|
3120
|
+
* _.isNumber(3);
|
3121
|
+
* // => true
|
3234
3122
|
*
|
3235
|
-
*
|
3236
|
-
*
|
3237
|
-
*
|
3123
|
+
* _.isNumber(Number.MIN_VALUE);
|
3124
|
+
* // => true
|
3125
|
+
*
|
3126
|
+
* _.isNumber(Infinity);
|
3127
|
+
* // => true
|
3128
|
+
*
|
3129
|
+
* _.isNumber('3');
|
3130
|
+
* // => false
|
3131
|
+
*/
|
3132
|
+
function isNumber(value) {
|
3133
|
+
return typeof value == 'number' ||
|
3134
|
+
(isObjectLike(value) && baseGetTag(value) == numberTag);
|
3135
|
+
}
|
3136
|
+
|
3137
|
+
module.exports = isNumber;
|
3138
|
+
|
3139
|
+
|
3140
|
+
/***/ }),
|
3141
|
+
/* 49 */
|
3142
|
+
/***/ (function(module, exports, __webpack_require__) {
|
3143
|
+
|
3144
|
+
"use strict";
|
3145
|
+
|
3146
|
+
|
3147
|
+
Object.defineProperty(exports, "__esModule", {
|
3148
|
+
value: true
|
3149
|
+
});
|
3150
|
+
exports.Modal = undefined;
|
3151
|
+
|
3152
|
+
var _defer2 = __webpack_require__(50);
|
3153
|
+
|
3154
|
+
var _defer3 = _interopRequireDefault(_defer2);
|
3155
|
+
|
3156
|
+
var _debounce2 = __webpack_require__(57);
|
3157
|
+
|
3158
|
+
var _debounce3 = _interopRequireDefault(_debounce2);
|
3159
|
+
|
3160
|
+
var _modal = __webpack_require__(4);
|
3161
|
+
|
3162
|
+
var _dom = __webpack_require__(8);
|
3163
|
+
|
3164
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
3165
|
+
|
3166
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
3167
|
+
|
3168
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
3169
|
+
|
3170
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
3171
|
+
|
3172
|
+
var Modal =
|
3173
|
+
/*#__PURE__*/
|
3174
|
+
exports.Modal = function () {
|
3175
|
+
function Modal(options) {
|
3176
|
+
_classCallCheck(this, Modal);
|
3177
|
+
|
3178
|
+
if (!this._modalOverlayElem) {
|
3179
|
+
this._modalOverlayElem = (0, _modal.createModalOverlay)();
|
3180
|
+
this._modalOverlayOpening = (0, _modal.getModalMaskOpening)(this._modalOverlayElem); // don't show yet -- each step will control that
|
3181
|
+
|
3182
|
+
this.hide();
|
3183
|
+
document.body.appendChild(this._modalOverlayElem);
|
3184
|
+
}
|
3185
|
+
|
3186
|
+
this.options = options;
|
3187
|
+
return this;
|
3188
|
+
}
|
3189
|
+
/**
|
3190
|
+
* Removes svg mask from modal overlay and removes classes for modal being visible
|
3191
|
+
*/
|
3192
|
+
|
3193
|
+
|
3194
|
+
_createClass(Modal, [{
|
3195
|
+
key: "cleanup",
|
3196
|
+
value: function cleanup() {
|
3197
|
+
var _this = this;
|
3198
|
+
|
3199
|
+
(0, _defer3.default)(function () {
|
3200
|
+
var element = _this._modalOverlayElem;
|
3201
|
+
|
3202
|
+
if (element && element instanceof SVGElement) {
|
3203
|
+
element.parentNode.removeChild(element);
|
3204
|
+
}
|
3205
|
+
|
3206
|
+
_this._modalOverlayElem = null;
|
3207
|
+
document.body.classList.remove(_modal.classNames.isVisible);
|
3208
|
+
});
|
3209
|
+
}
|
3210
|
+
/**
|
3211
|
+
* Hide the modal overlay
|
3212
|
+
*/
|
3213
|
+
|
3214
|
+
}, {
|
3215
|
+
key: "hide",
|
3216
|
+
value: function hide() {
|
3217
|
+
document.body.classList.remove(_modal.classNames.isVisible);
|
3218
|
+
|
3219
|
+
if (this._modalOverlayElem) {
|
3220
|
+
this._modalOverlayElem.style.display = 'none';
|
3221
|
+
}
|
3222
|
+
}
|
3223
|
+
/**
|
3224
|
+
* If modal is enabled, setup the svg mask opening and modal overlay for the step
|
3225
|
+
* @param step
|
3226
|
+
*/
|
3227
|
+
|
3228
|
+
}, {
|
3229
|
+
key: "setupForStep",
|
3230
|
+
value: function setupForStep(step) {
|
3231
|
+
if (this.options.useModalOverlay) {
|
3232
|
+
this._styleForStep(step);
|
3233
|
+
|
3234
|
+
this.show();
|
3235
|
+
} else {
|
3236
|
+
this.hide();
|
3237
|
+
}
|
3238
|
+
}
|
3239
|
+
/**
|
3240
|
+
* Show the modal overlay
|
3241
|
+
*/
|
3242
|
+
|
3243
|
+
}, {
|
3244
|
+
key: "show",
|
3245
|
+
value: function show() {
|
3246
|
+
document.body.classList.add(_modal.classNames.isVisible);
|
3247
|
+
|
3248
|
+
if (this._modalOverlayElem) {
|
3249
|
+
this._modalOverlayElem.style.display = 'block';
|
3250
|
+
}
|
3251
|
+
}
|
3252
|
+
/**
|
3253
|
+
* Style the modal for the step
|
3254
|
+
* @param {Step} step The step to style the opening for
|
3255
|
+
* @private
|
3256
|
+
*/
|
3257
|
+
|
3258
|
+
}, {
|
3259
|
+
key: "_styleForStep",
|
3260
|
+
value: function _styleForStep(step) {
|
3261
|
+
var modalOverlayOpening = this._modalOverlayOpening;
|
3262
|
+
var targetElement = (0, _dom.getElementForStep)(step);
|
3263
|
+
|
3264
|
+
if (targetElement) {
|
3265
|
+
(0, _modal.positionModalOpening)(targetElement, modalOverlayOpening);
|
3266
|
+
this._onScreenChange = (0, _debounce3.default)(_modal.positionModalOpening.bind(this, targetElement, modalOverlayOpening), 0, {
|
3267
|
+
leading: false,
|
3268
|
+
trailing: true // see https://lodash.com/docs/#debounce
|
3269
|
+
|
3270
|
+
});
|
3271
|
+
|
3272
|
+
_dom.addStepEventListeners.call(this);
|
3273
|
+
} else {
|
3274
|
+
(0, _modal.closeModalOpening)(this._modalOverlayOpening);
|
3275
|
+
}
|
3276
|
+
}
|
3277
|
+
}]);
|
3278
|
+
|
3279
|
+
return Modal;
|
3280
|
+
}();
|
3281
|
+
|
3282
|
+
/***/ }),
|
3283
|
+
/* 50 */
|
3284
|
+
/***/ (function(module, exports, __webpack_require__) {
|
3285
|
+
|
3286
|
+
var baseDelay = __webpack_require__(51),
|
3287
|
+
baseRest = __webpack_require__(52);
|
3288
|
+
|
3289
|
+
/**
|
3290
|
+
* Defers invoking the `func` until the current call stack has cleared. Any
|
3291
|
+
* additional arguments are provided to `func` when it's invoked.
|
3292
|
+
*
|
3293
|
+
* @static
|
3294
|
+
* @memberOf _
|
3295
|
+
* @since 0.1.0
|
3296
|
+
* @category Function
|
3297
|
+
* @param {Function} func The function to defer.
|
3298
|
+
* @param {...*} [args] The arguments to invoke `func` with.
|
3299
|
+
* @returns {number} Returns the timer id.
|
3300
|
+
* @example
|
3301
|
+
*
|
3302
|
+
* _.defer(function(text) {
|
3303
|
+
* console.log(text);
|
3304
|
+
* }, 'deferred');
|
3305
|
+
* // => Logs 'deferred' after one millisecond.
|
3306
|
+
*/
|
3307
|
+
var defer = baseRest(function(func, args) {
|
3308
|
+
return baseDelay(func, 1, args);
|
3309
|
+
});
|
3310
|
+
|
3311
|
+
module.exports = defer;
|
3312
|
+
|
3313
|
+
|
3314
|
+
/***/ }),
|
3315
|
+
/* 51 */
|
3316
|
+
/***/ (function(module, exports) {
|
3317
|
+
|
3318
|
+
/** Error message constants. */
|
3319
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
3320
|
+
|
3321
|
+
/**
|
3322
|
+
* The base implementation of `_.delay` and `_.defer` which accepts `args`
|
3323
|
+
* to provide to `func`.
|
3324
|
+
*
|
3325
|
+
* @private
|
3326
|
+
* @param {Function} func The function to delay.
|
3327
|
+
* @param {number} wait The number of milliseconds to delay invocation.
|
3328
|
+
* @param {Array} args The arguments to provide to `func`.
|
3329
|
+
* @returns {number|Object} Returns the timer id or timeout object.
|
3330
|
+
*/
|
3331
|
+
function baseDelay(func, wait, args) {
|
3332
|
+
if (typeof func != 'function') {
|
3333
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
3334
|
+
}
|
3335
|
+
return setTimeout(function() { func.apply(undefined, args); }, wait);
|
3336
|
+
}
|
3337
|
+
|
3338
|
+
module.exports = baseDelay;
|
3339
|
+
|
3340
|
+
|
3341
|
+
/***/ }),
|
3342
|
+
/* 52 */
|
3343
|
+
/***/ (function(module, exports, __webpack_require__) {
|
3344
|
+
|
3345
|
+
var identity = __webpack_require__(53),
|
3346
|
+
overRest = __webpack_require__(54),
|
3347
|
+
setToString = __webpack_require__(56);
|
3348
|
+
|
3349
|
+
/**
|
3350
|
+
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
3351
|
+
*
|
3352
|
+
* @private
|
3353
|
+
* @param {Function} func The function to apply a rest parameter to.
|
3354
|
+
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
3355
|
+
* @returns {Function} Returns the new function.
|
3356
|
+
*/
|
3357
|
+
function baseRest(func, start) {
|
3358
|
+
return setToString(overRest(func, start, identity), func + '');
|
3359
|
+
}
|
3360
|
+
|
3361
|
+
module.exports = baseRest;
|
3362
|
+
|
3363
|
+
|
3364
|
+
/***/ }),
|
3365
|
+
/* 53 */
|
3366
|
+
/***/ (function(module, exports) {
|
3367
|
+
|
3368
|
+
/**
|
3369
|
+
* This method returns the first argument it receives.
|
3370
|
+
*
|
3371
|
+
* @static
|
3372
|
+
* @since 0.1.0
|
3373
|
+
* @memberOf _
|
3374
|
+
* @category Util
|
3375
|
+
* @param {*} value Any value.
|
3376
|
+
* @returns {*} Returns `value`.
|
3377
|
+
* @example
|
3378
|
+
*
|
3379
|
+
* var object = { 'a': 1 };
|
3380
|
+
*
|
3381
|
+
* console.log(_.identity(object) === object);
|
3382
|
+
* // => true
|
3383
|
+
*/
|
3384
|
+
function identity(value) {
|
3385
|
+
return value;
|
3386
|
+
}
|
3387
|
+
|
3388
|
+
module.exports = identity;
|
3389
|
+
|
3390
|
+
|
3391
|
+
/***/ }),
|
3392
|
+
/* 54 */
|
3393
|
+
/***/ (function(module, exports, __webpack_require__) {
|
3394
|
+
|
3395
|
+
var apply = __webpack_require__(55);
|
3396
|
+
|
3397
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
3398
|
+
var nativeMax = Math.max;
|
3399
|
+
|
3400
|
+
/**
|
3401
|
+
* A specialized version of `baseRest` which transforms the rest array.
|
3402
|
+
*
|
3403
|
+
* @private
|
3404
|
+
* @param {Function} func The function to apply a rest parameter to.
|
3405
|
+
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
3406
|
+
* @param {Function} transform The rest array transform.
|
3407
|
+
* @returns {Function} Returns the new function.
|
3408
|
+
*/
|
3409
|
+
function overRest(func, start, transform) {
|
3410
|
+
start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
|
3411
|
+
return function() {
|
3412
|
+
var args = arguments,
|
3413
|
+
index = -1,
|
3414
|
+
length = nativeMax(args.length - start, 0),
|
3415
|
+
array = Array(length);
|
3416
|
+
|
3417
|
+
while (++index < length) {
|
3418
|
+
array[index] = args[start + index];
|
3419
|
+
}
|
3420
|
+
index = -1;
|
3421
|
+
var otherArgs = Array(start + 1);
|
3422
|
+
while (++index < start) {
|
3423
|
+
otherArgs[index] = args[index];
|
3424
|
+
}
|
3425
|
+
otherArgs[start] = transform(array);
|
3426
|
+
return apply(func, this, otherArgs);
|
3427
|
+
};
|
3428
|
+
}
|
3429
|
+
|
3430
|
+
module.exports = overRest;
|
3431
|
+
|
3432
|
+
|
3433
|
+
/***/ }),
|
3434
|
+
/* 55 */
|
3435
|
+
/***/ (function(module, exports) {
|
3436
|
+
|
3437
|
+
/**
|
3438
|
+
* A faster alternative to `Function#apply`, this function invokes `func`
|
3439
|
+
* with the `this` binding of `thisArg` and the arguments of `args`.
|
3440
|
+
*
|
3441
|
+
* @private
|
3442
|
+
* @param {Function} func The function to invoke.
|
3443
|
+
* @param {*} thisArg The `this` binding of `func`.
|
3444
|
+
* @param {Array} args The arguments to invoke `func` with.
|
3445
|
+
* @returns {*} Returns the result of `func`.
|
3446
|
+
*/
|
3447
|
+
function apply(func, thisArg, args) {
|
3448
|
+
switch (args.length) {
|
3449
|
+
case 0: return func.call(thisArg);
|
3450
|
+
case 1: return func.call(thisArg, args[0]);
|
3451
|
+
case 2: return func.call(thisArg, args[0], args[1]);
|
3452
|
+
case 3: return func.call(thisArg, args[0], args[1], args[2]);
|
3453
|
+
}
|
3454
|
+
return func.apply(thisArg, args);
|
3455
|
+
}
|
3456
|
+
|
3457
|
+
module.exports = apply;
|
3458
|
+
|
3459
|
+
|
3460
|
+
/***/ }),
|
3461
|
+
/* 56 */
|
3462
|
+
/***/ (function(module, exports) {
|
3463
|
+
|
3464
|
+
/**
|
3465
|
+
* This method returns the first argument it receives.
|
3466
|
+
*
|
3467
|
+
* @static
|
3468
|
+
* @since 0.1.0
|
3469
|
+
* @memberOf _
|
3470
|
+
* @category Util
|
3471
|
+
* @param {*} value Any value.
|
3472
|
+
* @returns {*} Returns `value`.
|
3473
|
+
* @example
|
3474
|
+
*
|
3475
|
+
* var object = { 'a': 1 };
|
3476
|
+
*
|
3477
|
+
* console.log(_.identity(object) === object);
|
3478
|
+
* // => true
|
3479
|
+
*/
|
3480
|
+
function identity(value) {
|
3481
|
+
return value;
|
3482
|
+
}
|
3483
|
+
|
3484
|
+
module.exports = identity;
|
3485
|
+
|
3486
|
+
|
3487
|
+
/***/ }),
|
3488
|
+
/* 57 */
|
3489
|
+
/***/ (function(module, exports, __webpack_require__) {
|
3490
|
+
|
3491
|
+
var isObject = __webpack_require__(11),
|
3492
|
+
now = __webpack_require__(58),
|
3493
|
+
toNumber = __webpack_require__(61);
|
3494
|
+
|
3495
|
+
/** Error message constants. */
|
3496
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
3497
|
+
|
3498
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
3499
|
+
var nativeMax = Math.max,
|
3500
|
+
nativeMin = Math.min;
|
3501
|
+
|
3502
|
+
/**
|
3503
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
3504
|
+
* milliseconds have elapsed since the last time the debounced function was
|
3505
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
3506
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
3507
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
3508
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
3509
|
+
* with the last arguments provided to the debounced function. Subsequent
|
3510
|
+
* calls to the debounced function return the result of the last `func`
|
3511
|
+
* invocation.
|
3512
|
+
*
|
3513
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
3514
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
3515
|
+
* is invoked more than once during the `wait` timeout.
|
3516
|
+
*
|
3517
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
3518
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
3519
|
+
*
|
3520
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
3521
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
3522
|
+
*
|
3523
|
+
* @static
|
3524
|
+
* @memberOf _
|
3525
|
+
* @since 0.1.0
|
3526
|
+
* @category Function
|
3527
|
+
* @param {Function} func The function to debounce.
|
3528
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
3529
|
+
* @param {Object} [options={}] The options object.
|
3530
|
+
* @param {boolean} [options.leading=false]
|
3531
|
+
* Specify invoking on the leading edge of the timeout.
|
3532
|
+
* @param {number} [options.maxWait]
|
3533
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
3534
|
+
* @param {boolean} [options.trailing=true]
|
3535
|
+
* Specify invoking on the trailing edge of the timeout.
|
3536
|
+
* @returns {Function} Returns the new debounced function.
|
3537
|
+
* @example
|
3538
|
+
*
|
3539
|
+
* // Avoid costly calculations while the window size is in flux.
|
3540
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
3541
|
+
*
|
3542
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
3543
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
3544
|
+
* 'leading': true,
|
3238
3545
|
* 'trailing': false
|
3239
3546
|
* }));
|
3240
3547
|
*
|
@@ -3374,10 +3681,10 @@ module.exports = debounce;
|
|
3374
3681
|
|
3375
3682
|
|
3376
3683
|
/***/ }),
|
3377
|
-
/*
|
3684
|
+
/* 58 */
|
3378
3685
|
/***/ (function(module, exports, __webpack_require__) {
|
3379
3686
|
|
3380
|
-
var root = __webpack_require__(
|
3687
|
+
var root = __webpack_require__(59);
|
3381
3688
|
|
3382
3689
|
/**
|
3383
3690
|
* Gets the timestamp of the number of milliseconds that have elapsed since
|
@@ -3403,10 +3710,10 @@ module.exports = now;
|
|
3403
3710
|
|
3404
3711
|
|
3405
3712
|
/***/ }),
|
3406
|
-
/*
|
3713
|
+
/* 59 */
|
3407
3714
|
/***/ (function(module, exports, __webpack_require__) {
|
3408
3715
|
|
3409
|
-
var freeGlobal = __webpack_require__(
|
3716
|
+
var freeGlobal = __webpack_require__(60);
|
3410
3717
|
|
3411
3718
|
/** Detect free variable `self`. */
|
3412
3719
|
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
@@ -3418,7 +3725,7 @@ module.exports = root;
|
|
3418
3725
|
|
3419
3726
|
|
3420
3727
|
/***/ }),
|
3421
|
-
/*
|
3728
|
+
/* 60 */
|
3422
3729
|
/***/ (function(module, exports, __webpack_require__) {
|
3423
3730
|
|
3424
3731
|
/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
|
@@ -3426,81 +3733,37 @@ var freeGlobal = typeof global == 'object' && global && global.Object === Object
|
|
3426
3733
|
|
3427
3734
|
module.exports = freeGlobal;
|
3428
3735
|
|
3429
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
3430
|
-
|
3431
|
-
/***/ }),
|
3432
|
-
/*
|
3433
|
-
/***/ (function(module, exports) {
|
3434
|
-
|
3435
|
-
/**
|
3436
|
-
* This method returns the first argument it receives.
|
3437
|
-
*
|
3438
|
-
* @static
|
3439
|
-
* @since 0.1.0
|
3440
|
-
* @memberOf _
|
3441
|
-
* @category Util
|
3442
|
-
* @param {*} value Any value.
|
3443
|
-
* @returns {*} Returns `value`.
|
3444
|
-
* @example
|
3445
|
-
*
|
3446
|
-
* var object = { 'a': 1 };
|
3447
|
-
*
|
3448
|
-
* console.log(_.identity(object) === object);
|
3449
|
-
* // => true
|
3450
|
-
*/
|
3451
|
-
function identity(value) {
|
3452
|
-
return value;
|
3453
|
-
}
|
3454
|
-
|
3455
|
-
module.exports = identity;
|
3456
|
-
|
3457
|
-
|
3458
|
-
/***/ }),
|
3459
|
-
/* 53 */
|
3460
|
-
/***/ (function(module, exports, __webpack_require__) {
|
3461
|
-
|
3462
|
-
var baseGetTag = __webpack_require__(3),
|
3463
|
-
isObjectLike = __webpack_require__(1);
|
3464
|
-
|
3465
|
-
/** `Object#toString` result references. */
|
3466
|
-
var numberTag = '[object Number]';
|
3736
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(17)))
|
3737
|
+
|
3738
|
+
/***/ }),
|
3739
|
+
/* 61 */
|
3740
|
+
/***/ (function(module, exports) {
|
3467
3741
|
|
3468
3742
|
/**
|
3469
|
-
*
|
3470
|
-
*
|
3471
|
-
* **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
|
3472
|
-
* classified as numbers, use the `_.isFinite` method.
|
3743
|
+
* This method returns the first argument it receives.
|
3473
3744
|
*
|
3474
3745
|
* @static
|
3475
|
-
* @memberOf _
|
3476
3746
|
* @since 0.1.0
|
3477
|
-
* @
|
3478
|
-
* @
|
3479
|
-
* @
|
3747
|
+
* @memberOf _
|
3748
|
+
* @category Util
|
3749
|
+
* @param {*} value Any value.
|
3750
|
+
* @returns {*} Returns `value`.
|
3480
3751
|
* @example
|
3481
3752
|
*
|
3482
|
-
*
|
3483
|
-
* // => true
|
3484
|
-
*
|
3485
|
-
* _.isNumber(Number.MIN_VALUE);
|
3486
|
-
* // => true
|
3753
|
+
* var object = { 'a': 1 };
|
3487
3754
|
*
|
3488
|
-
* _.
|
3755
|
+
* console.log(_.identity(object) === object);
|
3489
3756
|
* // => true
|
3490
|
-
*
|
3491
|
-
* _.isNumber('3');
|
3492
|
-
* // => false
|
3493
3757
|
*/
|
3494
|
-
function
|
3495
|
-
return
|
3496
|
-
(isObjectLike(value) && baseGetTag(value) == numberTag);
|
3758
|
+
function identity(value) {
|
3759
|
+
return value;
|
3497
3760
|
}
|
3498
3761
|
|
3499
|
-
module.exports =
|
3762
|
+
module.exports = identity;
|
3500
3763
|
|
3501
3764
|
|
3502
3765
|
/***/ }),
|
3503
|
-
/*
|
3766
|
+
/* 62 */
|
3504
3767
|
/***/ (function(module, exports, __webpack_require__) {
|
3505
3768
|
|
3506
3769
|
"use strict";
|
@@ -3527,7 +3790,7 @@ var defaults = exports.defaults = {
|
|
3527
3790
|
};
|
3528
3791
|
|
3529
3792
|
/***/ }),
|
3530
|
-
/*
|
3793
|
+
/* 63 */
|
3531
3794
|
/***/ (function(module, exports, __webpack_require__) {
|
3532
3795
|
|
3533
3796
|
"use strict";
|
@@ -3536,44 +3799,17 @@ var defaults = exports.defaults = {
|
|
3536
3799
|
Object.defineProperty(exports, "__esModule", {
|
3537
3800
|
value: true
|
3538
3801
|
});
|
3539
|
-
|
3540
|
-
var _defer2 = __webpack_require__(56);
|
3541
|
-
|
3542
|
-
var _defer3 = _interopRequireDefault(_defer2);
|
3543
|
-
|
3544
|
-
exports.cleanupModal = cleanupModal;
|
3545
3802
|
exports.cleanupSteps = cleanupSteps;
|
3546
3803
|
exports.cleanupStepEventListeners = cleanupStepEventListeners;
|
3547
3804
|
|
3548
|
-
var _modal = __webpack_require__(
|
3549
|
-
|
3550
|
-
var _dom = __webpack_require__(17);
|
3551
|
-
|
3552
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
3553
|
-
|
3554
|
-
/**
|
3555
|
-
* Removes svg mask from modal overlay and removes classes for modal being visible
|
3556
|
-
*/
|
3557
|
-
function cleanupModal() {
|
3558
|
-
var _this = this;
|
3559
|
-
|
3560
|
-
(0, _defer3.default)(function () {
|
3561
|
-
var element = _this._modalOverlayElem;
|
3805
|
+
var _modal = __webpack_require__(4);
|
3562
3806
|
|
3563
|
-
|
3564
|
-
element.parentNode.removeChild(element);
|
3565
|
-
}
|
3807
|
+
var _dom = __webpack_require__(8);
|
3566
3808
|
|
3567
|
-
_this._modalOverlayElem = null;
|
3568
|
-
document.body.classList.remove(_modal.classNames.isVisible);
|
3569
|
-
});
|
3570
|
-
}
|
3571
3809
|
/**
|
3572
3810
|
* Cleanup the steps and set pointerEvents back to 'auto'
|
3573
3811
|
* @param tour The tour object
|
3574
3812
|
*/
|
3575
|
-
|
3576
|
-
|
3577
3813
|
function cleanupSteps(tour) {
|
3578
3814
|
if (tour) {
|
3579
3815
|
var steps = tour.steps;
|
@@ -3602,211 +3838,6 @@ function cleanupStepEventListeners() {
|
|
3602
3838
|
}
|
3603
3839
|
}
|
3604
3840
|
|
3605
|
-
/***/ }),
|
3606
|
-
/* 56 */
|
3607
|
-
/***/ (function(module, exports, __webpack_require__) {
|
3608
|
-
|
3609
|
-
var baseDelay = __webpack_require__(57),
|
3610
|
-
baseRest = __webpack_require__(58);
|
3611
|
-
|
3612
|
-
/**
|
3613
|
-
* Defers invoking the `func` until the current call stack has cleared. Any
|
3614
|
-
* additional arguments are provided to `func` when it's invoked.
|
3615
|
-
*
|
3616
|
-
* @static
|
3617
|
-
* @memberOf _
|
3618
|
-
* @since 0.1.0
|
3619
|
-
* @category Function
|
3620
|
-
* @param {Function} func The function to defer.
|
3621
|
-
* @param {...*} [args] The arguments to invoke `func` with.
|
3622
|
-
* @returns {number} Returns the timer id.
|
3623
|
-
* @example
|
3624
|
-
*
|
3625
|
-
* _.defer(function(text) {
|
3626
|
-
* console.log(text);
|
3627
|
-
* }, 'deferred');
|
3628
|
-
* // => Logs 'deferred' after one millisecond.
|
3629
|
-
*/
|
3630
|
-
var defer = baseRest(function(func, args) {
|
3631
|
-
return baseDelay(func, 1, args);
|
3632
|
-
});
|
3633
|
-
|
3634
|
-
module.exports = defer;
|
3635
|
-
|
3636
|
-
|
3637
|
-
/***/ }),
|
3638
|
-
/* 57 */
|
3639
|
-
/***/ (function(module, exports) {
|
3640
|
-
|
3641
|
-
/** Error message constants. */
|
3642
|
-
var FUNC_ERROR_TEXT = 'Expected a function';
|
3643
|
-
|
3644
|
-
/**
|
3645
|
-
* The base implementation of `_.delay` and `_.defer` which accepts `args`
|
3646
|
-
* to provide to `func`.
|
3647
|
-
*
|
3648
|
-
* @private
|
3649
|
-
* @param {Function} func The function to delay.
|
3650
|
-
* @param {number} wait The number of milliseconds to delay invocation.
|
3651
|
-
* @param {Array} args The arguments to provide to `func`.
|
3652
|
-
* @returns {number|Object} Returns the timer id or timeout object.
|
3653
|
-
*/
|
3654
|
-
function baseDelay(func, wait, args) {
|
3655
|
-
if (typeof func != 'function') {
|
3656
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
3657
|
-
}
|
3658
|
-
return setTimeout(function() { func.apply(undefined, args); }, wait);
|
3659
|
-
}
|
3660
|
-
|
3661
|
-
module.exports = baseDelay;
|
3662
|
-
|
3663
|
-
|
3664
|
-
/***/ }),
|
3665
|
-
/* 58 */
|
3666
|
-
/***/ (function(module, exports, __webpack_require__) {
|
3667
|
-
|
3668
|
-
var identity = __webpack_require__(59),
|
3669
|
-
overRest = __webpack_require__(60),
|
3670
|
-
setToString = __webpack_require__(62);
|
3671
|
-
|
3672
|
-
/**
|
3673
|
-
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
3674
|
-
*
|
3675
|
-
* @private
|
3676
|
-
* @param {Function} func The function to apply a rest parameter to.
|
3677
|
-
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
3678
|
-
* @returns {Function} Returns the new function.
|
3679
|
-
*/
|
3680
|
-
function baseRest(func, start) {
|
3681
|
-
return setToString(overRest(func, start, identity), func + '');
|
3682
|
-
}
|
3683
|
-
|
3684
|
-
module.exports = baseRest;
|
3685
|
-
|
3686
|
-
|
3687
|
-
/***/ }),
|
3688
|
-
/* 59 */
|
3689
|
-
/***/ (function(module, exports) {
|
3690
|
-
|
3691
|
-
/**
|
3692
|
-
* This method returns the first argument it receives.
|
3693
|
-
*
|
3694
|
-
* @static
|
3695
|
-
* @since 0.1.0
|
3696
|
-
* @memberOf _
|
3697
|
-
* @category Util
|
3698
|
-
* @param {*} value Any value.
|
3699
|
-
* @returns {*} Returns `value`.
|
3700
|
-
* @example
|
3701
|
-
*
|
3702
|
-
* var object = { 'a': 1 };
|
3703
|
-
*
|
3704
|
-
* console.log(_.identity(object) === object);
|
3705
|
-
* // => true
|
3706
|
-
*/
|
3707
|
-
function identity(value) {
|
3708
|
-
return value;
|
3709
|
-
}
|
3710
|
-
|
3711
|
-
module.exports = identity;
|
3712
|
-
|
3713
|
-
|
3714
|
-
/***/ }),
|
3715
|
-
/* 60 */
|
3716
|
-
/***/ (function(module, exports, __webpack_require__) {
|
3717
|
-
|
3718
|
-
var apply = __webpack_require__(61);
|
3719
|
-
|
3720
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
3721
|
-
var nativeMax = Math.max;
|
3722
|
-
|
3723
|
-
/**
|
3724
|
-
* A specialized version of `baseRest` which transforms the rest array.
|
3725
|
-
*
|
3726
|
-
* @private
|
3727
|
-
* @param {Function} func The function to apply a rest parameter to.
|
3728
|
-
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
3729
|
-
* @param {Function} transform The rest array transform.
|
3730
|
-
* @returns {Function} Returns the new function.
|
3731
|
-
*/
|
3732
|
-
function overRest(func, start, transform) {
|
3733
|
-
start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
|
3734
|
-
return function() {
|
3735
|
-
var args = arguments,
|
3736
|
-
index = -1,
|
3737
|
-
length = nativeMax(args.length - start, 0),
|
3738
|
-
array = Array(length);
|
3739
|
-
|
3740
|
-
while (++index < length) {
|
3741
|
-
array[index] = args[start + index];
|
3742
|
-
}
|
3743
|
-
index = -1;
|
3744
|
-
var otherArgs = Array(start + 1);
|
3745
|
-
while (++index < start) {
|
3746
|
-
otherArgs[index] = args[index];
|
3747
|
-
}
|
3748
|
-
otherArgs[start] = transform(array);
|
3749
|
-
return apply(func, this, otherArgs);
|
3750
|
-
};
|
3751
|
-
}
|
3752
|
-
|
3753
|
-
module.exports = overRest;
|
3754
|
-
|
3755
|
-
|
3756
|
-
/***/ }),
|
3757
|
-
/* 61 */
|
3758
|
-
/***/ (function(module, exports) {
|
3759
|
-
|
3760
|
-
/**
|
3761
|
-
* A faster alternative to `Function#apply`, this function invokes `func`
|
3762
|
-
* with the `this` binding of `thisArg` and the arguments of `args`.
|
3763
|
-
*
|
3764
|
-
* @private
|
3765
|
-
* @param {Function} func The function to invoke.
|
3766
|
-
* @param {*} thisArg The `this` binding of `func`.
|
3767
|
-
* @param {Array} args The arguments to invoke `func` with.
|
3768
|
-
* @returns {*} Returns the result of `func`.
|
3769
|
-
*/
|
3770
|
-
function apply(func, thisArg, args) {
|
3771
|
-
switch (args.length) {
|
3772
|
-
case 0: return func.call(thisArg);
|
3773
|
-
case 1: return func.call(thisArg, args[0]);
|
3774
|
-
case 2: return func.call(thisArg, args[0], args[1]);
|
3775
|
-
case 3: return func.call(thisArg, args[0], args[1], args[2]);
|
3776
|
-
}
|
3777
|
-
return func.apply(thisArg, args);
|
3778
|
-
}
|
3779
|
-
|
3780
|
-
module.exports = apply;
|
3781
|
-
|
3782
|
-
|
3783
|
-
/***/ }),
|
3784
|
-
/* 62 */
|
3785
|
-
/***/ (function(module, exports) {
|
3786
|
-
|
3787
|
-
/**
|
3788
|
-
* This method returns the first argument it receives.
|
3789
|
-
*
|
3790
|
-
* @static
|
3791
|
-
* @since 0.1.0
|
3792
|
-
* @memberOf _
|
3793
|
-
* @category Util
|
3794
|
-
* @param {*} value Any value.
|
3795
|
-
* @returns {*} Returns `value`.
|
3796
|
-
* @example
|
3797
|
-
*
|
3798
|
-
* var object = { 'a': 1 };
|
3799
|
-
*
|
3800
|
-
* console.log(_.identity(object) === object);
|
3801
|
-
* // => true
|
3802
|
-
*/
|
3803
|
-
function identity(value) {
|
3804
|
-
return value;
|
3805
|
-
}
|
3806
|
-
|
3807
|
-
module.exports = identity;
|
3808
|
-
|
3809
|
-
|
3810
3841
|
/***/ })
|
3811
3842
|
/******/ ]);
|
3812
3843
|
});
|