cloudinary-video-player 2.0.2-edge.2 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chapters.js +6 -509
- package/dist/chapters.light.js +6 -509
- package/dist/chapters.light.min.js +1 -1
- package/dist/chapters.min.js +1 -1
- package/dist/cld-video-player.css +1161 -0
- package/dist/cld-video-player.js +120 -84
- package/dist/cld-video-player.light.css +1161 -0
- package/dist/cld-video-player.light.js +120 -84
- package/dist/cld-video-player.light.min.css +1 -1
- package/dist/cld-video-player.light.min.js +1 -1
- package/dist/cld-video-player.min.css +1 -1
- package/dist/cld-video-player.min.js +1 -1
- package/dist/ima.js +6 -611
- package/dist/ima.light.js +6 -620
- package/dist/ima.light.min.js +1 -1
- package/dist/ima.min.js +1 -1
- package/dist/interaction-areas.js +6 -516
- package/dist/interaction-areas.light.js +6 -516
- package/dist/interaction-areas.light.min.js +1 -1
- package/dist/interaction-areas.min.js +1 -1
- package/dist/node_modules_lodash_throttle_js.js +449 -0
- package/dist/node_modules_lodash_throttle_js.light.js +449 -0
- package/dist/playlist.js +130 -549
- package/dist/playlist.light.js +130 -549
- package/dist/playlist.light.min.js +1 -1
- package/dist/playlist.min.js +1 -1
- package/dist/recommendations-overlay.js +6 -617
- package/dist/recommendations-overlay.light.js +6 -617
- package/dist/recommendations-overlay.light.min.js +1 -1
- package/dist/recommendations-overlay.min.js +1 -1
- package/dist/shoppable.js +7 -742
- package/dist/shoppable.light.js +7 -742
- package/dist/shoppable.light.min.js +1 -1
- package/dist/shoppable.min.js +1 -1
- package/lib/all.js +1 -1
- package/lib/chapters.js +1 -1
- package/lib/cld-video-player.js +1 -1
- package/lib/cld-video-player.min.css +10 -1
- package/lib/ima.js +1 -1
- package/lib/interaction-areas.js +1 -1
- package/lib/playlist.js +1 -1
- package/lib/recommendations-overlay.js +1 -1
- package/lib/shoppable.js +1 -1
- package/lib/videoPlayer.js +1 -1
- package/lib/videoPlayerWithProfile.js +1 -1
- package/package.json +1 -2
- package/dist/473.light.min.js +0 -2
- package/dist/473.min.js +0 -2
- package/dist/node_modules_css-loader_dist_runtime_api_js-node_modules_css-loader_dist_runtime_sourceMaps_j-64c8cd.js +0 -530
- package/dist/node_modules_css-loader_dist_runtime_api_js-node_modules_css-loader_dist_runtime_sourceMaps_j-64c8cd.light.js +0 -530
- package/lib/473.js +0 -2
- package/lib/all.min.css +0 -12
- package/lib/videoPlayer.min.css +0 -12
- package/lib/videoPlayerWithProfile.min.css +0 -12
|
@@ -131,7 +131,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131
131
|
/* harmony import */ var _utils_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/dom */ "./utils/dom.js");
|
|
132
132
|
/* harmony import */ var _video_player_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../video-player.utils */ "./video-player.utils.js");
|
|
133
133
|
/* harmony import */ var _utils_consts__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../utils/consts */ "./utils/consts.js");
|
|
134
|
-
/* harmony import */ var
|
|
134
|
+
/* harmony import */ var _interaction_areas_scss__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./interaction-areas.scss */ "./plugins/interaction-areas/interaction-areas.scss");
|
|
135
135
|
|
|
136
136
|
|
|
137
137
|
|
|
@@ -600,364 +600,6 @@ const setInteractionAreasContainerSize = (videojs, videoElement) => {
|
|
|
600
600
|
interactionAreasContainer.style.height = videoElement.clientWidth < width ? "".concat(videoElement.clientWidth / videoAspectRatio, "px") : '100%';
|
|
601
601
|
};
|
|
602
602
|
|
|
603
|
-
/***/ }),
|
|
604
|
-
|
|
605
|
-
/***/ "../node_modules/css-loader/dist/cjs.js!../node_modules/sass-loader/dist/cjs.js!./plugins/interaction-areas/interaction-areas.scss?style-loader":
|
|
606
|
-
/*!******************************************************************************************************************************************************!*\
|
|
607
|
-
!*** ../node_modules/css-loader/dist/cjs.js!../node_modules/sass-loader/dist/cjs.js!./plugins/interaction-areas/interaction-areas.scss?style-loader ***!
|
|
608
|
-
\******************************************************************************************************************************************************/
|
|
609
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
610
|
-
|
|
611
|
-
"use strict";
|
|
612
|
-
__webpack_require__.r(__webpack_exports__);
|
|
613
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
614
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
615
|
-
/* harmony export */ });
|
|
616
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/sourceMaps.js */ "../node_modules/css-loader/dist/runtime/sourceMaps.js");
|
|
617
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
618
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "../node_modules/css-loader/dist/runtime/api.js");
|
|
619
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
620
|
-
// Imports
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
624
|
-
// Module
|
|
625
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.cld-video-player.vjs-user-active .interaction-areas-container {
|
|
626
|
-
display: block;
|
|
627
|
-
}
|
|
628
|
-
.cld-video-player.interaction-areas .vjs-big-play-button {
|
|
629
|
-
display: none !important;
|
|
630
|
-
}
|
|
631
|
-
.cld-video-player .interaction-areas-container {
|
|
632
|
-
position: absolute;
|
|
633
|
-
width: 100%;
|
|
634
|
-
height: 100%;
|
|
635
|
-
top: 50%;
|
|
636
|
-
left: 50%;
|
|
637
|
-
transform: translate(-50%, -50%);
|
|
638
|
-
display: none;
|
|
639
|
-
z-index: 1;
|
|
640
|
-
}
|
|
641
|
-
.cld-video-player .interaction-areas-container:hover {
|
|
642
|
-
display: block;
|
|
643
|
-
}
|
|
644
|
-
.cld-video-player .interaction-areas-container .go-back-button,
|
|
645
|
-
.cld-video-player .interaction-areas-container .vp-ia-item {
|
|
646
|
-
position: absolute;
|
|
647
|
-
cursor: pointer;
|
|
648
|
-
}
|
|
649
|
-
.cld-video-player .interaction-areas-container .go-back-button {
|
|
650
|
-
top: 0;
|
|
651
|
-
left: 0;
|
|
652
|
-
width: 100%;
|
|
653
|
-
height: 100%;
|
|
654
|
-
}
|
|
655
|
-
.cld-video-player .interaction-areas-container .vp-ia-item {
|
|
656
|
-
display: inline-flex;
|
|
657
|
-
align-items: center;
|
|
658
|
-
justify-content: center;
|
|
659
|
-
transition: top, left, width, height;
|
|
660
|
-
transition-timing-function: linear;
|
|
661
|
-
}
|
|
662
|
-
.cld-video-player .interaction-areas-container .vp-ia-item.theme-shadowed .vp-ia-marker-shadow {
|
|
663
|
-
opacity: 0.24;
|
|
664
|
-
}
|
|
665
|
-
.cld-video-player .interaction-areas-container .vp-ia-item.theme-pulsing .vp-ia-marker-shadow {
|
|
666
|
-
-webkit-animation: pulsing-animation 1.3s ease-out;
|
|
667
|
-
-webkit-animation-iteration-count: infinite;
|
|
668
|
-
border: solid 2px;
|
|
669
|
-
opacity: 0;
|
|
670
|
-
}
|
|
671
|
-
.cld-video-player .interaction-areas-container .vp-ia-item:hover .vp-ia-marker-main:before {
|
|
672
|
-
content: "";
|
|
673
|
-
width: 20px;
|
|
674
|
-
height: 20px;
|
|
675
|
-
border: solid 2px rgba(0, 0, 0, 0.25);
|
|
676
|
-
}
|
|
677
|
-
.cld-video-player .interaction-areas-container .vp-ia-item .vp-ia-area-marker {
|
|
678
|
-
position: relative;
|
|
679
|
-
width: 20px;
|
|
680
|
-
height: 20px;
|
|
681
|
-
}
|
|
682
|
-
.cld-video-player .interaction-areas-container .vp-ia-item .vp-ia-area-marker .vp-ia-marker-main,
|
|
683
|
-
.cld-video-player .interaction-areas-container .vp-ia-item .vp-ia-area-marker .vp-ia-marker-main:before,
|
|
684
|
-
.cld-video-player .interaction-areas-container .vp-ia-item .vp-ia-area-marker .vp-ia-marker-shadow {
|
|
685
|
-
position: absolute;
|
|
686
|
-
border-radius: 50%;
|
|
687
|
-
transform: translate(-50%, -50%);
|
|
688
|
-
top: 50%;
|
|
689
|
-
left: 50%;
|
|
690
|
-
}
|
|
691
|
-
.cld-video-player .interaction-areas-container .vp-ia-item .vp-ia-area-marker .vp-ia-marker-main {
|
|
692
|
-
background-color: white;
|
|
693
|
-
border: solid 2px;
|
|
694
|
-
height: 100%;
|
|
695
|
-
width: 100%;
|
|
696
|
-
}
|
|
697
|
-
.cld-video-player .interaction-areas-container .vp-ia-item .vp-ia-area-marker .vp-ia-marker-shadow {
|
|
698
|
-
width: 28px;
|
|
699
|
-
height: 28px;
|
|
700
|
-
}
|
|
701
|
-
.cld-video-player .interaction-areas-container.vp-ia-layout-message {
|
|
702
|
-
display: flex;
|
|
703
|
-
flex-direction: column;
|
|
704
|
-
align-items: center;
|
|
705
|
-
justify-content: center;
|
|
706
|
-
height: 100%;
|
|
707
|
-
z-index: 2;
|
|
708
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
709
|
-
}
|
|
710
|
-
.cld-video-player .interaction-areas-container.vp-ia-layout-message.clickable {
|
|
711
|
-
cursor: pointer;
|
|
712
|
-
}
|
|
713
|
-
.cld-video-player .interaction-areas-container.vp-ia-layout-message.clickable:hover .vp-theme-button {
|
|
714
|
-
background-color: rgba(255, 255, 254, 0.28);
|
|
715
|
-
}
|
|
716
|
-
.cld-video-player .interaction-areas-container.vp-ia-layout-message .vp-ia-layout-icon {
|
|
717
|
-
margin-bottom: 20px;
|
|
718
|
-
height: 60px;
|
|
719
|
-
}
|
|
720
|
-
.cld-video-player .interaction-areas-container.vp-ia-layout-message .vp-ia-layout-message-title {
|
|
721
|
-
font-size: 24px;
|
|
722
|
-
line-height: 34px;
|
|
723
|
-
text-align: center;
|
|
724
|
-
}
|
|
725
|
-
.cld-video-player .interaction-areas-container.vp-ia-layout-message .vp-theme-button {
|
|
726
|
-
margin: 8px 0 18px 0;
|
|
727
|
-
}
|
|
728
|
-
.cld-video-player .interaction-areas-container.vp-ia-layout-message .vp-ia-layout-message-do-not-show {
|
|
729
|
-
display: flex;
|
|
730
|
-
align-items: center;
|
|
731
|
-
}
|
|
732
|
-
.cld-video-player .interaction-areas-container.vp-ia-layout-message .vp-ia-layout-message-do-not-show > * {
|
|
733
|
-
cursor: pointer;
|
|
734
|
-
}
|
|
735
|
-
.cld-video-player .interaction-areas-container.vp-ia-layout-message .vp-ia-layout-message-do-not-show .vp-ia-layout-message-checkbox-title {
|
|
736
|
-
margin: 0 0 0 5px;
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
@-webkit-keyframes pulsing-animation {
|
|
740
|
-
0% {
|
|
741
|
-
height: 10px;
|
|
742
|
-
width: 10px;
|
|
743
|
-
opacity: 0;
|
|
744
|
-
}
|
|
745
|
-
50% {
|
|
746
|
-
height: 20px;
|
|
747
|
-
width: 20px;
|
|
748
|
-
opacity: 1;
|
|
749
|
-
}
|
|
750
|
-
100% {
|
|
751
|
-
height: 40px;
|
|
752
|
-
width: 40px;
|
|
753
|
-
opacity: 0;
|
|
754
|
-
}
|
|
755
|
-
}`, "",{"version":3,"sources":["webpack://./plugins/interaction-areas/interaction-areas.scss"],"names":[],"mappings":"AAUI;EACE,cAAA;AATN;AAeI;EACE,wBAAA;AAbN;AAiBE;EACE,kBAAA;EACA,WAAA;EACA,YAAA;EACA,QAAA;EACA,SAAA;EACA,gCAAA;EACA,aAAA;EACA,UAAA;AAfJ;AAiBI;EACE,cAAA;AAfN;AAkBI;;EAEE,kBAAA;EACA,eAAA;AAhBN;AAmBI;EACE,MAAA;EACA,OAAA;EACA,WAAA;EACA,YAAA;AAjBN;AAoBI;EACE,oBAAA;EACA,mBAAA;EACA,uBAAA;EACA,oCAAA;EACA,kCAAA;AAlBN;AAsBQ;EACE,aAAA;AApBV;AA2BQ;EACE,kDAAA;EACA,2CAAA;EACA,iBAAA;EACA,UAAA;AAzBV;AA8BQ;EACE,WAAA;EACA,WA3EqB;EA4ErB,YA5EqB;EA6ErB,qCAAA;AA5BV;AAgCM;EACE,kBAAA;EACA,WAnFuB;EAoFvB,YApFuB;AAsD/B;AAgCQ;;;EAGE,kBAAA;EACA,kBAAA;EACA,gCAAA;EACA,QAAA;EACA,SAAA;AA9BV;AAiCQ;EACE,uBAAA;EACA,iBAAA;EACA,YAAA;EACA,WAAA;AA/BV;AAkCQ;EACE,WAAA;EACA,YAAA;AAhCV;AAqCI;EACE,aAAA;EACA,sBAAA;EACA,mBAAA;EACA,uBAAA;EACA,YAAA;EACA,UAAA;EACA,oCAAA;AAnCN;AAqCM;EACE,eAAA;AAnCR;AAqCQ;EACE,2CAAA;AAnCV;AAwCM;EACE,mBAAA;EACA,YA/H8B;AAyFtC;AAyCM;EACE,eAAA;EACA,iBAAA;EACA,kBAAA;AAvCR;AA0CM;EACE,oBAAA;AAxCR;AA2CM;EACE,aAAA;EACA,mBAAA;AAzCR;AA2CQ;EACE,eAAA;AAzCV;AA4CQ;EACE,iBAAA;AA1CV;;AAkDA;EACE;IAAO,YAAA;IAAoD,WAAA;IAAmD,UAAA;EA5C9G;EA6CA;IAAO,YAlKsB;IAkKiB,WAlKjB;IAkKuD,UAAA;EAxCpF;EAyCA;IAAO,YAAA;IAA2C,WAAA;IAA0C,UAAA;EApC5F;AACF","sourcesContent":["@use \"sass:math\";\n\n$interaction-area-marker-size: 20px;\n$interaction-area-marker-border-size: 2px;\n$interaction-area-marker-box-shadow-extra-size: 4px;\n$interaction-area-layout-icon-height: 60px;\n\n.cld-video-player{\n\n &.vjs-user-active {\n .interaction-areas-container {\n display: block;\n }\n }\n\n &.interaction-areas {\n\n .vjs-big-play-button {\n display: none !important;\n }\n }\n\n .interaction-areas-container {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n display: none;\n z-index: 1;\n\n &:hover {\n display: block;\n }\n\n .go-back-button,\n .vp-ia-item {\n position: absolute;\n cursor: pointer;\n }\n\n .go-back-button {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n .vp-ia-item {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: top, left, width, height;\n transition-timing-function: linear;\n\n &.theme-shadowed {\n\n .vp-ia-marker-shadow{\n opacity: 0.24;\n }\n\n }\n\n &.theme-pulsing {\n\n .vp-ia-marker-shadow {\n -webkit-animation: pulsing-animation 1.3s ease-out;\n -webkit-animation-iteration-count: infinite;\n border: solid $interaction-area-marker-border-size;\n opacity: 0;\n }\n }\n\n &:hover {\n .vp-ia-marker-main:before {\n content: \"\";\n width: $interaction-area-marker-size;\n height: $interaction-area-marker-size;\n border: solid $interaction-area-marker-border-size rgba(0,0,0,0.25);\n }\n }\n\n .vp-ia-area-marker {\n position: relative;\n width: $interaction-area-marker-size;\n height: $interaction-area-marker-size;\n\n .vp-ia-marker-main,\n .vp-ia-marker-main:before,\n .vp-ia-marker-shadow {\n position: absolute;\n border-radius: 50%;\n transform: translate(-50%, -50%);\n top: 50%;\n left: 50%;\n }\n\n .vp-ia-marker-main {\n background-color: white;\n border:solid $interaction-area-marker-border-size;\n height: 100%;\n width: 100%;\n }\n\n .vp-ia-marker-shadow {\n width: 2*$interaction-area-marker-border-size + $interaction-area-marker-size + $interaction-area-marker-box-shadow-extra-size;\n height:2*$interaction-area-marker-border-size + $interaction-area-marker-size + $interaction-area-marker-box-shadow-extra-size;\n }\n }\n }\n\n &.vp-ia-layout-message {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n z-index: 2;\n background-color: rgba(0, 0, 0, 0.5);\n\n &.clickable {\n cursor: pointer;\n\n &:hover .vp-theme-button {\n background-color: rgba(255, 255, 254, 0.28);\n }\n\n }\n\n .vp-ia-layout-icon {\n margin-bottom: 20px;\n height: $interaction-area-layout-icon-height;\n }\n\n .vp-ia-layout-message-title {\n font-size: 24px;\n line-height: 34px;\n text-align: center;\n }\n\n .vp-theme-button {\n margin: 8px 0 18px 0;\n }\n\n .vp-ia-layout-message-do-not-show {\n display: flex;\n align-items: center;\n\n > * {\n cursor: pointer;\n }\n\n .vp-ia-layout-message-checkbox-title {\n margin: 0 0 0 5px;\n }\n\n }\n }\n }\n}\n\n@-webkit-keyframes pulsing-animation {\n 0% { height: math.div($interaction-area-marker-size, 2); width: math.div($interaction-area-marker-size, 2); opacity: 0}\n 50% { height: $interaction-area-marker-size; width: $interaction-area-marker-size; opacity: 1}\n 100% { height: 2 * $interaction-area-marker-size; width: 2 * $interaction-area-marker-size; opacity: 0}\n}\n"],"sourceRoot":""}]);
|
|
756
|
-
// Exports
|
|
757
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
/***/ }),
|
|
761
|
-
|
|
762
|
-
/***/ "../node_modules/lodash/debounce.js":
|
|
763
|
-
/*!******************************************!*\
|
|
764
|
-
!*** ../node_modules/lodash/debounce.js ***!
|
|
765
|
-
\******************************************/
|
|
766
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
767
|
-
|
|
768
|
-
var isObject = __webpack_require__(/*! ./isObject */ "../node_modules/lodash/isObject.js"),
|
|
769
|
-
now = __webpack_require__(/*! ./now */ "../node_modules/lodash/now.js"),
|
|
770
|
-
toNumber = __webpack_require__(/*! ./toNumber */ "../node_modules/lodash/toNumber.js");
|
|
771
|
-
|
|
772
|
-
/** Error message constants. */
|
|
773
|
-
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
774
|
-
|
|
775
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
776
|
-
var nativeMax = Math.max,
|
|
777
|
-
nativeMin = Math.min;
|
|
778
|
-
|
|
779
|
-
/**
|
|
780
|
-
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
781
|
-
* milliseconds have elapsed since the last time the debounced function was
|
|
782
|
-
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
783
|
-
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
784
|
-
* Provide `options` to indicate whether `func` should be invoked on the
|
|
785
|
-
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
786
|
-
* with the last arguments provided to the debounced function. Subsequent
|
|
787
|
-
* calls to the debounced function return the result of the last `func`
|
|
788
|
-
* invocation.
|
|
789
|
-
*
|
|
790
|
-
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
791
|
-
* invoked on the trailing edge of the timeout only if the debounced function
|
|
792
|
-
* is invoked more than once during the `wait` timeout.
|
|
793
|
-
*
|
|
794
|
-
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
795
|
-
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
796
|
-
*
|
|
797
|
-
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
798
|
-
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
799
|
-
*
|
|
800
|
-
* @static
|
|
801
|
-
* @memberOf _
|
|
802
|
-
* @since 0.1.0
|
|
803
|
-
* @category Function
|
|
804
|
-
* @param {Function} func The function to debounce.
|
|
805
|
-
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
806
|
-
* @param {Object} [options={}] The options object.
|
|
807
|
-
* @param {boolean} [options.leading=false]
|
|
808
|
-
* Specify invoking on the leading edge of the timeout.
|
|
809
|
-
* @param {number} [options.maxWait]
|
|
810
|
-
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
811
|
-
* @param {boolean} [options.trailing=true]
|
|
812
|
-
* Specify invoking on the trailing edge of the timeout.
|
|
813
|
-
* @returns {Function} Returns the new debounced function.
|
|
814
|
-
* @example
|
|
815
|
-
*
|
|
816
|
-
* // Avoid costly calculations while the window size is in flux.
|
|
817
|
-
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
818
|
-
*
|
|
819
|
-
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
820
|
-
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
821
|
-
* 'leading': true,
|
|
822
|
-
* 'trailing': false
|
|
823
|
-
* }));
|
|
824
|
-
*
|
|
825
|
-
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
826
|
-
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
827
|
-
* var source = new EventSource('/stream');
|
|
828
|
-
* jQuery(source).on('message', debounced);
|
|
829
|
-
*
|
|
830
|
-
* // Cancel the trailing debounced invocation.
|
|
831
|
-
* jQuery(window).on('popstate', debounced.cancel);
|
|
832
|
-
*/
|
|
833
|
-
function debounce(func, wait, options) {
|
|
834
|
-
var lastArgs,
|
|
835
|
-
lastThis,
|
|
836
|
-
maxWait,
|
|
837
|
-
result,
|
|
838
|
-
timerId,
|
|
839
|
-
lastCallTime,
|
|
840
|
-
lastInvokeTime = 0,
|
|
841
|
-
leading = false,
|
|
842
|
-
maxing = false,
|
|
843
|
-
trailing = true;
|
|
844
|
-
|
|
845
|
-
if (typeof func != 'function') {
|
|
846
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
847
|
-
}
|
|
848
|
-
wait = toNumber(wait) || 0;
|
|
849
|
-
if (isObject(options)) {
|
|
850
|
-
leading = !!options.leading;
|
|
851
|
-
maxing = 'maxWait' in options;
|
|
852
|
-
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
853
|
-
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
function invokeFunc(time) {
|
|
857
|
-
var args = lastArgs,
|
|
858
|
-
thisArg = lastThis;
|
|
859
|
-
|
|
860
|
-
lastArgs = lastThis = undefined;
|
|
861
|
-
lastInvokeTime = time;
|
|
862
|
-
result = func.apply(thisArg, args);
|
|
863
|
-
return result;
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
function leadingEdge(time) {
|
|
867
|
-
// Reset any `maxWait` timer.
|
|
868
|
-
lastInvokeTime = time;
|
|
869
|
-
// Start the timer for the trailing edge.
|
|
870
|
-
timerId = setTimeout(timerExpired, wait);
|
|
871
|
-
// Invoke the leading edge.
|
|
872
|
-
return leading ? invokeFunc(time) : result;
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
function remainingWait(time) {
|
|
876
|
-
var timeSinceLastCall = time - lastCallTime,
|
|
877
|
-
timeSinceLastInvoke = time - lastInvokeTime,
|
|
878
|
-
timeWaiting = wait - timeSinceLastCall;
|
|
879
|
-
|
|
880
|
-
return maxing
|
|
881
|
-
? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
|
|
882
|
-
: timeWaiting;
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
function shouldInvoke(time) {
|
|
886
|
-
var timeSinceLastCall = time - lastCallTime,
|
|
887
|
-
timeSinceLastInvoke = time - lastInvokeTime;
|
|
888
|
-
|
|
889
|
-
// Either this is the first call, activity has stopped and we're at the
|
|
890
|
-
// trailing edge, the system time has gone backwards and we're treating
|
|
891
|
-
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
892
|
-
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
|
|
893
|
-
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
function timerExpired() {
|
|
897
|
-
var time = now();
|
|
898
|
-
if (shouldInvoke(time)) {
|
|
899
|
-
return trailingEdge(time);
|
|
900
|
-
}
|
|
901
|
-
// Restart the timer.
|
|
902
|
-
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
function trailingEdge(time) {
|
|
906
|
-
timerId = undefined;
|
|
907
|
-
|
|
908
|
-
// Only invoke if we have `lastArgs` which means `func` has been
|
|
909
|
-
// debounced at least once.
|
|
910
|
-
if (trailing && lastArgs) {
|
|
911
|
-
return invokeFunc(time);
|
|
912
|
-
}
|
|
913
|
-
lastArgs = lastThis = undefined;
|
|
914
|
-
return result;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
function cancel() {
|
|
918
|
-
if (timerId !== undefined) {
|
|
919
|
-
clearTimeout(timerId);
|
|
920
|
-
}
|
|
921
|
-
lastInvokeTime = 0;
|
|
922
|
-
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
function flush() {
|
|
926
|
-
return timerId === undefined ? result : trailingEdge(now());
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
function debounced() {
|
|
930
|
-
var time = now(),
|
|
931
|
-
isInvoking = shouldInvoke(time);
|
|
932
|
-
|
|
933
|
-
lastArgs = arguments;
|
|
934
|
-
lastThis = this;
|
|
935
|
-
lastCallTime = time;
|
|
936
|
-
|
|
937
|
-
if (isInvoking) {
|
|
938
|
-
if (timerId === undefined) {
|
|
939
|
-
return leadingEdge(lastCallTime);
|
|
940
|
-
}
|
|
941
|
-
if (maxing) {
|
|
942
|
-
// Handle invocations in a tight loop.
|
|
943
|
-
clearTimeout(timerId);
|
|
944
|
-
timerId = setTimeout(timerExpired, wait);
|
|
945
|
-
return invokeFunc(lastCallTime);
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
if (timerId === undefined) {
|
|
949
|
-
timerId = setTimeout(timerExpired, wait);
|
|
950
|
-
}
|
|
951
|
-
return result;
|
|
952
|
-
}
|
|
953
|
-
debounced.cancel = cancel;
|
|
954
|
-
debounced.flush = flush;
|
|
955
|
-
return debounced;
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
module.exports = debounce;
|
|
959
|
-
|
|
960
|
-
|
|
961
603
|
/***/ }),
|
|
962
604
|
|
|
963
605
|
/***/ "../node_modules/lodash/noop.js":
|
|
@@ -987,167 +629,15 @@ module.exports = noop;
|
|
|
987
629
|
|
|
988
630
|
/***/ }),
|
|
989
631
|
|
|
990
|
-
/***/ "
|
|
991
|
-
|
|
992
|
-
!***
|
|
993
|
-
|
|
994
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
995
|
-
|
|
996
|
-
var root = __webpack_require__(/*! ./_root */ "../node_modules/lodash/_root.js");
|
|
997
|
-
|
|
998
|
-
/**
|
|
999
|
-
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
1000
|
-
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
1001
|
-
*
|
|
1002
|
-
* @static
|
|
1003
|
-
* @memberOf _
|
|
1004
|
-
* @since 2.4.0
|
|
1005
|
-
* @category Date
|
|
1006
|
-
* @returns {number} Returns the timestamp.
|
|
1007
|
-
* @example
|
|
1008
|
-
*
|
|
1009
|
-
* _.defer(function(stamp) {
|
|
1010
|
-
* console.log(_.now() - stamp);
|
|
1011
|
-
* }, _.now());
|
|
1012
|
-
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
1013
|
-
*/
|
|
1014
|
-
var now = function() {
|
|
1015
|
-
return root.Date.now();
|
|
1016
|
-
};
|
|
1017
|
-
|
|
1018
|
-
module.exports = now;
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
/***/ }),
|
|
1022
|
-
|
|
1023
|
-
/***/ "../node_modules/lodash/throttle.js":
|
|
1024
|
-
/*!******************************************!*\
|
|
1025
|
-
!*** ../node_modules/lodash/throttle.js ***!
|
|
1026
|
-
\******************************************/
|
|
1027
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1028
|
-
|
|
1029
|
-
var debounce = __webpack_require__(/*! ./debounce */ "../node_modules/lodash/debounce.js"),
|
|
1030
|
-
isObject = __webpack_require__(/*! ./isObject */ "../node_modules/lodash/isObject.js");
|
|
1031
|
-
|
|
1032
|
-
/** Error message constants. */
|
|
1033
|
-
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
1034
|
-
|
|
1035
|
-
/**
|
|
1036
|
-
* Creates a throttled function that only invokes `func` at most once per
|
|
1037
|
-
* every `wait` milliseconds. The throttled function comes with a `cancel`
|
|
1038
|
-
* method to cancel delayed `func` invocations and a `flush` method to
|
|
1039
|
-
* immediately invoke them. Provide `options` to indicate whether `func`
|
|
1040
|
-
* should be invoked on the leading and/or trailing edge of the `wait`
|
|
1041
|
-
* timeout. The `func` is invoked with the last arguments provided to the
|
|
1042
|
-
* throttled function. Subsequent calls to the throttled function return the
|
|
1043
|
-
* result of the last `func` invocation.
|
|
1044
|
-
*
|
|
1045
|
-
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
1046
|
-
* invoked on the trailing edge of the timeout only if the throttled function
|
|
1047
|
-
* is invoked more than once during the `wait` timeout.
|
|
1048
|
-
*
|
|
1049
|
-
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
1050
|
-
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
1051
|
-
*
|
|
1052
|
-
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
1053
|
-
* for details over the differences between `_.throttle` and `_.debounce`.
|
|
1054
|
-
*
|
|
1055
|
-
* @static
|
|
1056
|
-
* @memberOf _
|
|
1057
|
-
* @since 0.1.0
|
|
1058
|
-
* @category Function
|
|
1059
|
-
* @param {Function} func The function to throttle.
|
|
1060
|
-
* @param {number} [wait=0] The number of milliseconds to throttle invocations to.
|
|
1061
|
-
* @param {Object} [options={}] The options object.
|
|
1062
|
-
* @param {boolean} [options.leading=true]
|
|
1063
|
-
* Specify invoking on the leading edge of the timeout.
|
|
1064
|
-
* @param {boolean} [options.trailing=true]
|
|
1065
|
-
* Specify invoking on the trailing edge of the timeout.
|
|
1066
|
-
* @returns {Function} Returns the new throttled function.
|
|
1067
|
-
* @example
|
|
1068
|
-
*
|
|
1069
|
-
* // Avoid excessively updating the position while scrolling.
|
|
1070
|
-
* jQuery(window).on('scroll', _.throttle(updatePosition, 100));
|
|
1071
|
-
*
|
|
1072
|
-
* // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
|
|
1073
|
-
* var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
|
|
1074
|
-
* jQuery(element).on('click', throttled);
|
|
1075
|
-
*
|
|
1076
|
-
* // Cancel the trailing throttled invocation.
|
|
1077
|
-
* jQuery(window).on('popstate', throttled.cancel);
|
|
1078
|
-
*/
|
|
1079
|
-
function throttle(func, wait, options) {
|
|
1080
|
-
var leading = true,
|
|
1081
|
-
trailing = true;
|
|
1082
|
-
|
|
1083
|
-
if (typeof func != 'function') {
|
|
1084
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
1085
|
-
}
|
|
1086
|
-
if (isObject(options)) {
|
|
1087
|
-
leading = 'leading' in options ? !!options.leading : leading;
|
|
1088
|
-
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
1089
|
-
}
|
|
1090
|
-
return debounce(func, wait, {
|
|
1091
|
-
'leading': leading,
|
|
1092
|
-
'maxWait': wait,
|
|
1093
|
-
'trailing': trailing
|
|
1094
|
-
});
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
module.exports = throttle;
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
/***/ }),
|
|
1101
|
-
|
|
1102
|
-
/***/ "./plugins/interaction-areas/interaction-areas.scss?style-loader":
|
|
1103
|
-
/*!***********************************************************************!*\
|
|
1104
|
-
!*** ./plugins/interaction-areas/interaction-areas.scss?style-loader ***!
|
|
1105
|
-
\***********************************************************************/
|
|
632
|
+
/***/ "./plugins/interaction-areas/interaction-areas.scss":
|
|
633
|
+
/*!**********************************************************!*\
|
|
634
|
+
!*** ./plugins/interaction-areas/interaction-areas.scss ***!
|
|
635
|
+
\**********************************************************/
|
|
1106
636
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1107
637
|
|
|
1108
638
|
"use strict";
|
|
1109
639
|
__webpack_require__.r(__webpack_exports__);
|
|
1110
|
-
|
|
1111
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1112
|
-
/* harmony export */ });
|
|
1113
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
|
|
1114
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
1115
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ "../node_modules/style-loader/dist/runtime/styleDomAPI.js");
|
|
1116
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
1117
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ "../node_modules/style-loader/dist/runtime/insertBySelector.js");
|
|
1118
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
1119
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ "../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js");
|
|
1120
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
1121
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ "../node_modules/style-loader/dist/runtime/insertStyleElement.js");
|
|
1122
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
1123
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ "../node_modules/style-loader/dist/runtime/styleTagTransform.js");
|
|
1124
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
1125
|
-
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_interaction_areas_scss_style_loader__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./interaction-areas.scss?style-loader */ "../node_modules/css-loader/dist/cjs.js!../node_modules/sass-loader/dist/cjs.js!./plugins/interaction-areas/interaction-areas.scss?style-loader");
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
var options = {};
|
|
1138
|
-
|
|
1139
|
-
options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());
|
|
1140
|
-
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
1141
|
-
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
1142
|
-
options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
1143
|
-
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
1144
|
-
|
|
1145
|
-
var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_interaction_areas_scss_style_loader__WEBPACK_IMPORTED_MODULE_6__["default"], options);
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_interaction_areas_scss_style_loader__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_interaction_areas_scss_style_loader__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_interaction_areas_scss_style_loader__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined);
|
|
640
|
+
// extracted by mini-css-extract-plugin
|
|
1151
641
|
|
|
1152
642
|
|
|
1153
643
|
/***/ })
|