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
package/dist/shoppable.light.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
(self["cloudinaryVideoPlayerChunkLoading"] = self["cloudinaryVideoPlayerChunkLoading"] || []).push([["shoppable"],{
|
|
2
3
|
|
|
3
4
|
/***/ "./components/shoppable-bar/layout/bar-layout.js":
|
|
@@ -6,7 +7,6 @@
|
|
|
6
7
|
\*******************************************************/
|
|
7
8
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
9
|
|
|
9
|
-
"use strict";
|
|
10
10
|
__webpack_require__.r(__webpack_exports__);
|
|
11
11
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12
12
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -120,7 +120,6 @@ video_js__WEBPACK_IMPORTED_MODULE_0___default().registerComponent('shoppableBarL
|
|
|
120
120
|
\*******************************************************************/
|
|
121
121
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
122
122
|
|
|
123
|
-
"use strict";
|
|
124
123
|
__webpack_require__.r(__webpack_exports__);
|
|
125
124
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
126
125
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -186,7 +185,6 @@ video_js__WEBPACK_IMPORTED_MODULE_0___default().registerComponent('shoppablePane
|
|
|
186
185
|
\***********************************************************************/
|
|
187
186
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
188
187
|
|
|
189
|
-
"use strict";
|
|
190
188
|
__webpack_require__.r(__webpack_exports__);
|
|
191
189
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
192
190
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -274,7 +272,6 @@ video_js__WEBPACK_IMPORTED_MODULE_0___default().registerComponent('ShoppableProd
|
|
|
274
272
|
\****************************************************************/
|
|
275
273
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
276
274
|
|
|
277
|
-
"use strict";
|
|
278
275
|
__webpack_require__.r(__webpack_exports__);
|
|
279
276
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
280
277
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -386,7 +383,6 @@ video_js__WEBPACK_IMPORTED_MODULE_0___default().registerComponent('shoppablePane
|
|
|
386
383
|
\***********************************************************/
|
|
387
384
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
388
385
|
|
|
389
|
-
"use strict";
|
|
390
386
|
__webpack_require__.r(__webpack_exports__);
|
|
391
387
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
392
388
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -557,7 +553,6 @@ video_js__WEBPACK_IMPORTED_MODULE_0___default().registerComponent('shoppablePane
|
|
|
557
553
|
\***********************************************************/
|
|
558
554
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
559
555
|
|
|
560
|
-
"use strict";
|
|
561
556
|
__webpack_require__.r(__webpack_exports__);
|
|
562
557
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
563
558
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -672,7 +667,6 @@ class ShoppablePostWidget {
|
|
|
672
667
|
\************************************************************/
|
|
673
668
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
674
669
|
|
|
675
|
-
"use strict";
|
|
676
670
|
__webpack_require__.r(__webpack_exports__);
|
|
677
671
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
678
672
|
/* harmony export */ CLD_SPBL_IMAGE: () => (/* binding */ CLD_SPBL_IMAGE),
|
|
@@ -736,7 +730,6 @@ const CLD_SPBL_IMAGE = 'cld-spbl-img';
|
|
|
736
730
|
\******************************************************/
|
|
737
731
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
738
732
|
|
|
739
|
-
"use strict";
|
|
740
733
|
__webpack_require__.r(__webpack_exports__);
|
|
741
734
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
742
735
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
@@ -745,7 +738,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
745
738
|
/* harmony import */ var video_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(video_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
746
739
|
/* harmony import */ var _layout_bar_layout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./layout/bar-layout */ "./components/shoppable-bar/layout/bar-layout.js");
|
|
747
740
|
/* harmony import */ var _shoppable_post_widget__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shoppable-post-widget */ "./components/shoppable-bar/shoppable-post-widget.js");
|
|
748
|
-
/* harmony import */ var
|
|
741
|
+
/* harmony import */ var _shoppable_widget_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./shoppable-widget.scss */ "./components/shoppable-bar/shoppable-widget.scss");
|
|
749
742
|
/* harmony import */ var _shoppable_widget_const__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./shoppable-widget.const */ "./components/shoppable-bar/shoppable-widget.const.js");
|
|
750
743
|
/* harmony import */ var _utils_consts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils/consts */ "./utils/consts.js");
|
|
751
744
|
|
|
@@ -816,7 +809,6 @@ class ShoppableWidget {
|
|
|
816
809
|
\***********************/
|
|
817
810
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
818
811
|
|
|
819
|
-
"use strict";
|
|
820
812
|
__webpack_require__.r(__webpack_exports__);
|
|
821
813
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
822
814
|
/* harmony export */ parseTime: () => (/* binding */ parseTime)
|
|
@@ -835,741 +827,14 @@ const parseTime = function (hms) {
|
|
|
835
827
|
|
|
836
828
|
/***/ }),
|
|
837
829
|
|
|
838
|
-
/***/ "
|
|
839
|
-
|
|
840
|
-
!***
|
|
841
|
-
|
|
842
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
843
|
-
|
|
844
|
-
"use strict";
|
|
845
|
-
__webpack_require__.r(__webpack_exports__);
|
|
846
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
847
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
848
|
-
/* harmony export */ });
|
|
849
|
-
/* 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");
|
|
850
|
-
/* 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__);
|
|
851
|
-
/* 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");
|
|
852
|
-
/* 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__);
|
|
853
|
-
// Imports
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
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()));
|
|
857
|
-
// Module
|
|
858
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.cld-spbl-bar {
|
|
859
|
-
position: absolute;
|
|
860
|
-
top: 0;
|
|
861
|
-
right: 0;
|
|
862
|
-
bottom: 0;
|
|
863
|
-
left: 0;
|
|
864
|
-
pointer-events: none;
|
|
865
|
-
overflow: hidden;
|
|
866
|
-
z-index: 1;
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
.cld-spbl-bar-inner {
|
|
870
|
-
position: absolute;
|
|
871
|
-
top: 0;
|
|
872
|
-
right: 0;
|
|
873
|
-
bottom: 0;
|
|
874
|
-
left: 0;
|
|
875
|
-
transform: translateX(20%);
|
|
876
|
-
transition: transform 0.3s;
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
.cld-video-player .vjs-control-bar {
|
|
880
|
-
transition: width 0.3s;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
.shoppable-panel-visible .cld-spbl-bar-inner {
|
|
884
|
-
transform: translateX(0);
|
|
885
|
-
}
|
|
886
|
-
.shoppable-panel-visible .vjs-control-bar {
|
|
887
|
-
width: 80%;
|
|
888
|
-
}
|
|
889
|
-
.shoppable-panel-visible .cld-spbl-toggle-icon:before {
|
|
890
|
-
content: "\\f119";
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
.cld-spbl-banner-msg {
|
|
894
|
-
position: absolute;
|
|
895
|
-
font-size: 2em;
|
|
896
|
-
text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
|
|
897
|
-
left: 0;
|
|
898
|
-
top: calc(50% + 3em);
|
|
899
|
-
width: 100%;
|
|
900
|
-
text-align: center;
|
|
901
|
-
}
|
|
902
|
-
.cld-video-player.vjs-has-started .cld-spbl-banner-msg, .cld-video-player.vjs-error .cld-spbl-banner-msg {
|
|
903
|
-
display: none;
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
.cld-spbl-toggle {
|
|
907
|
-
position: absolute;
|
|
908
|
-
top: 3%;
|
|
909
|
-
right: 20%;
|
|
910
|
-
color: inherit;
|
|
911
|
-
border-radius: 6px 0 0 6px;
|
|
912
|
-
width: 40px;
|
|
913
|
-
height: 40px;
|
|
914
|
-
line-height: 40px;
|
|
915
|
-
font-size: 24px;
|
|
916
|
-
text-align: center;
|
|
917
|
-
cursor: pointer;
|
|
918
|
-
pointer-events: all;
|
|
919
|
-
text-decoration: none;
|
|
920
|
-
}
|
|
921
|
-
.cld-spbl-toggle:hover {
|
|
922
|
-
color: inherit;
|
|
923
|
-
text-decoration: none;
|
|
924
|
-
}
|
|
925
|
-
.cld-spbl-toggle:focus {
|
|
926
|
-
outline: none;
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
.cld-spbl-toggle-icon {
|
|
930
|
-
display: block;
|
|
931
|
-
animation-duration: 1s;
|
|
932
|
-
animation-fill-mode: both;
|
|
933
|
-
}
|
|
934
|
-
.cld-spbl-toggle-icon.cld-spbl-toggle-custom-icon {
|
|
935
|
-
position: absolute;
|
|
936
|
-
top: 0;
|
|
937
|
-
right: 0;
|
|
938
|
-
bottom: 0;
|
|
939
|
-
left: 0;
|
|
940
|
-
background-position: center;
|
|
941
|
-
background-repeat: no-repeat;
|
|
942
|
-
background-size: 75%;
|
|
943
|
-
}
|
|
944
|
-
.shoppable-panel-hidden .cld-spbl-toggle-icon.cld-spbl-toggle-custom-icon:before {
|
|
945
|
-
display: none;
|
|
946
|
-
}
|
|
947
|
-
.shoppable-panel-visible .cld-spbl-toggle-icon.cld-spbl-toggle-custom-icon {
|
|
948
|
-
background-image: none !important;
|
|
949
|
-
}
|
|
950
|
-
.cld-spbl-toggle-icon.animate, .shoppable-panel-hidden .cld-spbl-toggle-icon:hover {
|
|
951
|
-
animation-name: tada;
|
|
952
|
-
animation-iteration-count: infinite;
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
.cld-spbl-panel {
|
|
956
|
-
position: absolute;
|
|
957
|
-
top: 0;
|
|
958
|
-
right: 0;
|
|
959
|
-
bottom: 0;
|
|
960
|
-
width: 20%;
|
|
961
|
-
overflow: auto;
|
|
962
|
-
pointer-events: all;
|
|
963
|
-
-ms-overflow-style: none;
|
|
964
|
-
scrollbar-width: none;
|
|
965
|
-
}
|
|
966
|
-
.cld-spbl-panel::-webkit-scrollbar {
|
|
967
|
-
display: none;
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
.cld-spbl-item {
|
|
971
|
-
display: block;
|
|
972
|
-
position: relative;
|
|
973
|
-
margin: 12px 8px;
|
|
974
|
-
color: inherit;
|
|
975
|
-
transform: scale(0.98);
|
|
976
|
-
transition: transform 0.3s;
|
|
977
|
-
}
|
|
978
|
-
.cld-spbl-bar[size=md] .cld-spbl-item {
|
|
979
|
-
font-size: 10px;
|
|
980
|
-
}
|
|
981
|
-
.cld-spbl-bar[size=sm] .cld-spbl-item {
|
|
982
|
-
font-size: 8px;
|
|
983
|
-
}
|
|
984
|
-
.cld-spbl-item:before, .cld-spbl-item:after {
|
|
985
|
-
content: "";
|
|
986
|
-
position: absolute;
|
|
987
|
-
top: 0;
|
|
988
|
-
right: 0;
|
|
989
|
-
bottom: 0;
|
|
990
|
-
left: 0;
|
|
991
|
-
z-index: 0;
|
|
992
|
-
pointer-events: none;
|
|
993
|
-
box-shadow: 0 0 0;
|
|
994
|
-
transition: box-shadow 0.3s;
|
|
995
|
-
border-radius: 3px;
|
|
996
|
-
}
|
|
997
|
-
.cld-spbl-item.active {
|
|
998
|
-
transform: scale(1);
|
|
999
|
-
}
|
|
1000
|
-
.cld-spbl-item.active:before {
|
|
1001
|
-
opacity: 0.5;
|
|
1002
|
-
box-shadow: 0 0 0 4px;
|
|
1003
|
-
}
|
|
1004
|
-
.cld-spbl-item.active:after {
|
|
1005
|
-
box-shadow: 0 0 0 2px;
|
|
1006
|
-
}
|
|
1007
|
-
.cld-spbl-item:hover {
|
|
1008
|
-
color: inherit;
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
.cld-spbl-img {
|
|
1012
|
-
max-width: 100%;
|
|
1013
|
-
height: auto;
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
.cld-spbl-hover-img {
|
|
1017
|
-
display: none;
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
|
-
.cld-spbl-item-info {
|
|
1021
|
-
position: absolute;
|
|
1022
|
-
right: 0;
|
|
1023
|
-
bottom: 0;
|
|
1024
|
-
left: 0;
|
|
1025
|
-
max-height: 100%;
|
|
1026
|
-
overflow: hidden;
|
|
1027
|
-
padding: 6%;
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
.cld-spbl-overlay {
|
|
1031
|
-
display: inline-flex;
|
|
1032
|
-
position: absolute;
|
|
1033
|
-
top: 0;
|
|
1034
|
-
right: 0;
|
|
1035
|
-
bottom: 0;
|
|
1036
|
-
left: 0;
|
|
1037
|
-
line-height: 1.3;
|
|
1038
|
-
font-size: 120%;
|
|
1039
|
-
text-align: center;
|
|
1040
|
-
padding: 10%;
|
|
1041
|
-
z-index: 1;
|
|
1042
|
-
opacity: 0;
|
|
1043
|
-
}
|
|
1044
|
-
.cld-spbl-overlay .cld-spbl-overlay-text {
|
|
1045
|
-
margin: auto;
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1048
|
-
.cld-spbl-item:hover .cld-spbl-overlay {
|
|
1049
|
-
opacity: 1;
|
|
1050
|
-
}
|
|
1051
|
-
.cld-spbl-item:hover .cld-spbl-overlay ~ .cld-spbl-item-info {
|
|
1052
|
-
display: none;
|
|
1053
|
-
}
|
|
1054
|
-
.cld-spbl-item:hover .cld-spbl-hover-img {
|
|
1055
|
-
display: block;
|
|
1056
|
-
}
|
|
1057
|
-
.cld-spbl-item:hover .cld-spbl-hover-img + .cld-spbl-img {
|
|
1058
|
-
display: none;
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
.cld-spbl-post-play .cld-spbl-post-play-bg {
|
|
1062
|
-
position: absolute;
|
|
1063
|
-
top: 0;
|
|
1064
|
-
left: 0;
|
|
1065
|
-
bottom: 0;
|
|
1066
|
-
right: 0;
|
|
1067
|
-
background-size: cover;
|
|
1068
|
-
}
|
|
1069
|
-
.cld-spbl-post-play .cld-spbl-post-title {
|
|
1070
|
-
position: absolute;
|
|
1071
|
-
font-size: 1.5em;
|
|
1072
|
-
text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
|
|
1073
|
-
left: 0;
|
|
1074
|
-
top: 0.8em;
|
|
1075
|
-
width: 100%;
|
|
1076
|
-
text-align: center;
|
|
1077
|
-
}
|
|
1078
|
-
.cld-spbl-post-play .cld-spbl-panel {
|
|
1079
|
-
width: 100%;
|
|
1080
|
-
top: 16%;
|
|
1081
|
-
height: 60%;
|
|
1082
|
-
padding: 10px 8px;
|
|
1083
|
-
white-space: nowrap;
|
|
1084
|
-
background: none !important;
|
|
1085
|
-
cursor: grab;
|
|
1086
|
-
}
|
|
1087
|
-
.cld-spbl-post-play .cld-spbl-panel:active {
|
|
1088
|
-
cursor: grabbing;
|
|
1089
|
-
}
|
|
1090
|
-
.cld-spbl-post-play .cld-spbl-item {
|
|
1091
|
-
display: inline-block;
|
|
1092
|
-
width: 28%;
|
|
1093
|
-
padding-top: 28%;
|
|
1094
|
-
margin: 0 8px;
|
|
1095
|
-
white-space: normal;
|
|
1096
|
-
vertical-align: top;
|
|
1097
|
-
border-radius: 10px;
|
|
1098
|
-
overflow: hidden;
|
|
1099
|
-
box-shadow: 0 4px 6px 1.2px rgba(0, 0, 0, 0.24), 0 6px 8px 4px rgba(0, 0, 0, 0.24);
|
|
1100
|
-
transform: none;
|
|
1101
|
-
}
|
|
1102
|
-
.cld-spbl-post-play .cld-spbl-img {
|
|
1103
|
-
max-width: 100%;
|
|
1104
|
-
max-height: 100%;
|
|
1105
|
-
position: absolute;
|
|
1106
|
-
top: 0;
|
|
1107
|
-
left: 0;
|
|
1108
|
-
bottom: 0;
|
|
1109
|
-
right: 0;
|
|
1110
|
-
margin: 0 auto auto;
|
|
1111
|
-
}
|
|
1112
|
-
.cld-spbl-post-play .cld-spbl-replay-btn {
|
|
1113
|
-
position: absolute;
|
|
1114
|
-
left: 5%;
|
|
1115
|
-
bottom: 10%;
|
|
1116
|
-
font-family: inherit;
|
|
1117
|
-
padding: 8px 15px;
|
|
1118
|
-
border-radius: 5px;
|
|
1119
|
-
}
|
|
1120
|
-
.cld-spbl-post-play .cld-spbl-replay-btn:before {
|
|
1121
|
-
font-family: VideoJS;
|
|
1122
|
-
vertical-align: bottom;
|
|
1123
|
-
margin-right: 4px;
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
.cld-spbl-post-modal .cld-spbl-bar,
|
|
1127
|
-
.cld-spbl-post-modal .vjs-big-play-button,
|
|
1128
|
-
.cld-spbl-post-modal .vjs-recommendations-overlay {
|
|
1129
|
-
display: none;
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
@keyframes tada {
|
|
1133
|
-
0% {
|
|
1134
|
-
transform: scale3d(1, 1, 1);
|
|
1135
|
-
}
|
|
1136
|
-
10%, 20% {
|
|
1137
|
-
transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
|
|
1138
|
-
}
|
|
1139
|
-
30%, 50%, 70%, 90% {
|
|
1140
|
-
transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
|
|
1141
|
-
}
|
|
1142
|
-
40%, 60%, 80% {
|
|
1143
|
-
transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
|
|
1144
|
-
}
|
|
1145
|
-
100% {
|
|
1146
|
-
transform: scale3d(1, 1, 1);
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
.shoppable-products-overlay .vjs-title-bar,
|
|
1150
|
-
.shoppable-products-overlay .vjs-big-play-button {
|
|
1151
|
-
display: none !important;
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
.cld-spbl-products-overlay {
|
|
1155
|
-
position: absolute;
|
|
1156
|
-
width: 100%;
|
|
1157
|
-
top: 50%;
|
|
1158
|
-
transform: translateY(-50%);
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
|
-
.cld-spbl-product-hotspot {
|
|
1162
|
-
pointer-events: all;
|
|
1163
|
-
position: absolute;
|
|
1164
|
-
cursor: pointer;
|
|
1165
|
-
padding: 15px;
|
|
1166
|
-
}
|
|
1167
|
-
.cld-spbl-product-hotspot:after {
|
|
1168
|
-
content: "";
|
|
1169
|
-
display: block;
|
|
1170
|
-
width: 8px;
|
|
1171
|
-
height: 8px;
|
|
1172
|
-
background: #fff;
|
|
1173
|
-
box-shadow: 0 0 0 4px #0078FF, 0 0 0 8px rgba(0, 120, 255, 0.24);
|
|
1174
|
-
border-radius: 18px;
|
|
1175
|
-
}
|
|
1176
|
-
.cld-spbl-product-hotspot:hover .cld-spbl-product-tooltip {
|
|
1177
|
-
display: block;
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
.cld-spbl-product-tooltip {
|
|
1181
|
-
display: none;
|
|
1182
|
-
position: absolute;
|
|
1183
|
-
white-space: nowrap;
|
|
1184
|
-
padding: 4px 6px;
|
|
1185
|
-
border-radius: 4px;
|
|
1186
|
-
top: 100%;
|
|
1187
|
-
left: 50%;
|
|
1188
|
-
transform: translateX(-50%);
|
|
1189
|
-
}
|
|
1190
|
-
.cld-spbl-product-tooltip.cld-spbl-product-tooltip-top {
|
|
1191
|
-
top: auto;
|
|
1192
|
-
bottom: 100%;
|
|
1193
|
-
}
|
|
1194
|
-
.cld-spbl-product-tooltip.cld-spbl-product-tooltip-left {
|
|
1195
|
-
top: 50%;
|
|
1196
|
-
right: 100%;
|
|
1197
|
-
left: auto;
|
|
1198
|
-
transform: translateY(-50%);
|
|
1199
|
-
}
|
|
1200
|
-
.cld-spbl-product-tooltip.cld-spbl-product-tooltip-right {
|
|
1201
|
-
top: 50%;
|
|
1202
|
-
left: 100%;
|
|
1203
|
-
transform: translateY(-50%);
|
|
1204
|
-
}`, "",{"version":3,"sources":["webpack://./components/shoppable-bar/shoppable-widget.scss"],"names":[],"mappings":"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","sourcesContent":["$width: 20%;\n.cld-spbl-bar {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n pointer-events: none;\n overflow: hidden;\n z-index: 1;\n}\n.cld-spbl-bar-inner {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n transform: translateX($width);\n transition: transform .3s;\n}\n.cld-video-player .vjs-control-bar {\n transition: width .3s;\n}\n.shoppable-panel-visible {\n .cld-spbl-bar-inner {\n transform: translateX(0);\n }\n .vjs-control-bar {\n width: 100% - $width;\n }\n .cld-spbl-toggle-icon:before {\n content: \"\\f119\";\n }\n}\n.cld-spbl-banner-msg {\n position: absolute;\n font-size: 2em;\n text-shadow: 0 0 5px rgba(#000, .5);\n left: 0;\n top: calc(50% + 3em);\n width: 100%;\n text-align: center;\n .cld-video-player.vjs-has-started &,\n .cld-video-player.vjs-error & {\n display: none;\n }\n}\n.cld-spbl-toggle {\n position: absolute;\n top: 3%;\n right: $width;\n color: inherit;\n border-radius: 6px 0 0 6px;\n width: 40px;\n height: 40px;\n line-height: 40px;\n font-size: 24px;\n text-align: center;\n cursor: pointer;\n pointer-events: all;\n text-decoration: none;\n &:hover {\n color: inherit;\n text-decoration: none;\n }\n &:focus {\n outline: none;\n }\n}\n.cld-spbl-toggle-icon {\n\n // Custom toggle icon\n &.cld-spbl-toggle-custom-icon {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-position: center;\n background-repeat: no-repeat;\n background-size: 75%;\n .shoppable-panel-hidden & {\n &:before {\n display: none;\n }\n }\n .shoppable-panel-visible & {\n background-image: none !important;\n }\n }\n\n // Animate\n display: block;\n animation-duration: 1s;\n animation-fill-mode: both;\n &.animate,\n .shoppable-panel-hidden &:hover {\n animation-name: tada;\n animation-iteration-count: infinite;\n }\n\n}\n.cld-spbl-panel {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n width: $width;\n overflow: auto;\n pointer-events: all;\n\n // Hide scrollbar\n -ms-overflow-style: none; // Internet Explorer 10+\n scrollbar-width: none; // Firefox\n &::-webkit-scrollbar {\n display: none; // Safari and Chrome\n }\n}\n.cld-spbl-item {\n display: block;\n position: relative;\n margin: 12px 8px;\n color: inherit;\n transform: scale(0.98);\n transition: transform .3s;\n\n .cld-spbl-bar[size=\"md\"] & {\n font-size: 10px;\n }\n .cld-spbl-bar[size=\"sm\"] & {\n font-size: 8px;\n }\n\n &:before,\n &:after {\n content: \"\";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 0;\n pointer-events: none;\n box-shadow: 0 0 0;\n transition: box-shadow .3s;\n border-radius: 3px;\n }\n &.active {\n transform: scale(1);\n &:before {\n opacity: .5;\n box-shadow: 0 0 0 4px;\n }\n &:after {\n box-shadow: 0 0 0 2px;\n }\n\n }\n &:hover {\n color: inherit;\n }\n}\n.cld-spbl-img {\n max-width: 100%;\n height: auto;\n}\n.cld-spbl-hover-img {\n display: none;\n}\n.cld-spbl-item-info {\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n max-height: 100%;\n overflow: hidden;\n padding: 6%;\n}\n.cld-spbl-overlay {\n display: inline-flex;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n line-height: 1.3;\n font-size: 120%;\n text-align: center;\n padding: 10%;\n z-index: 1;\n opacity: 0;\n\n .cld-spbl-overlay-text {\n margin: auto;\n }\n}\n.cld-spbl-item:hover {\n .cld-spbl-overlay {\n opacity: 1;\n ~ .cld-spbl-item-info {\n display: none;\n }\n }\n .cld-spbl-hover-img {\n display: block;\n + {\n .cld-spbl-img {\n display: none;\n }\n }\n }\n}\n\n.cld-spbl-post-play {\n .cld-spbl-post-play-bg {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background-size: cover;\n }\n .cld-spbl-post-title {\n position: absolute;\n font-size: 1.5em;\n text-shadow: 0 0 5px rgba(#000, .5);\n left: 0;\n top: 0.8em;\n width: 100%;\n text-align: center;\n }\n .cld-spbl-panel {\n width: 100%;\n top: 16%;\n height: 60%;\n padding: 10px 8px;\n white-space: nowrap;\n background: none !important;\n\n cursor: grab;\n &:active {\n cursor: grabbing;\n }\n }\n .cld-spbl-item {\n display: inline-block;\n width: 28%;\n padding-top: 28%;\n margin: 0 8px;\n white-space: normal;\n vertical-align: top;\n border-radius: 10px;\n overflow: hidden;\n box-shadow: 0 4px 6px 1.2px rgba(0,0,0,0.24), 0 6px 8px 4px rgba(0,0,0,0.24);\n transform: none;\n }\n .cld-spbl-img {\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n margin: 0 auto auto;\n }\n .cld-spbl-replay-btn {\n position: absolute;\n left: 5%;\n bottom: 10%;\n font-family: inherit;\n padding: 8px 15px;\n border-radius: 5px;\n &:before {\n font-family: VideoJS;\n vertical-align: bottom;\n margin-right: 4px;\n }\n }\n}\n\n.cld-spbl-post-modal {\n .cld-spbl-bar,\n .vjs-big-play-button,\n .vjs-recommendations-overlay {\n display: none;\n }\n}\n\n@keyframes tada {\n 0% {\n transform: scale3d(1, 1, 1);\n }\n 10%, 20% {\n transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);\n }\n 30%, 50%, 70%, 90% {\n transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);\n }\n 40%, 60%, 80% {\n transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);\n }\n 100% {\n transform: scale3d(1, 1, 1);\n }\n}\n\n// cld-spbl-products-overlay\n.shoppable-products-overlay {\n .vjs-title-bar,\n .vjs-big-play-button {\n display: none !important;\n }\n}\n.cld-spbl-products-overlay {\n position: absolute;\n width: 100%;\n top: 50%;\n transform: translateY(-50%);\n}\n.cld-spbl-product-hotspot {\n pointer-events: all;\n position: absolute;\n cursor: pointer;\n padding: 15px;\n &:after {\n content: '';\n display: block;\n width: 8px;\n height: 8px;\n background: #fff;\n box-shadow: 0 0 0 4px #0078FF, 0 0 0 8px rgba(0,120,255,0.24);\n border-radius: 18px;\n }\n\n &:hover .cld-spbl-product-tooltip {\n display: block;\n }\n}\n.cld-spbl-product-tooltip {\n display: none;\n position: absolute;\n white-space: nowrap;\n padding: 4px 6px;\n border-radius: 4px;\n top: 100%;\n left: 50%;\n transform: translateX(-50%);\n &.cld-spbl-product-tooltip-top {\n top: auto;\n bottom: 100%;\n }\n &.cld-spbl-product-tooltip-left {\n top: 50%;\n right: 100%;\n left: auto;\n transform: translateY(-50%);\n }\n &.cld-spbl-product-tooltip-right {\n top: 50%;\n left: 100%;\n transform: translateY(-50%);\n }\n\n}\n"],"sourceRoot":""}]);
|
|
1205
|
-
// Exports
|
|
1206
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
/***/ }),
|
|
1210
|
-
|
|
1211
|
-
/***/ "../node_modules/lodash/debounce.js":
|
|
1212
|
-
/*!******************************************!*\
|
|
1213
|
-
!*** ../node_modules/lodash/debounce.js ***!
|
|
1214
|
-
\******************************************/
|
|
1215
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1216
|
-
|
|
1217
|
-
var isObject = __webpack_require__(/*! ./isObject */ "../node_modules/lodash/isObject.js"),
|
|
1218
|
-
now = __webpack_require__(/*! ./now */ "../node_modules/lodash/now.js"),
|
|
1219
|
-
toNumber = __webpack_require__(/*! ./toNumber */ "../node_modules/lodash/toNumber.js");
|
|
1220
|
-
|
|
1221
|
-
/** Error message constants. */
|
|
1222
|
-
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
1223
|
-
|
|
1224
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
1225
|
-
var nativeMax = Math.max,
|
|
1226
|
-
nativeMin = Math.min;
|
|
1227
|
-
|
|
1228
|
-
/**
|
|
1229
|
-
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
1230
|
-
* milliseconds have elapsed since the last time the debounced function was
|
|
1231
|
-
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
1232
|
-
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
1233
|
-
* Provide `options` to indicate whether `func` should be invoked on the
|
|
1234
|
-
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
1235
|
-
* with the last arguments provided to the debounced function. Subsequent
|
|
1236
|
-
* calls to the debounced function return the result of the last `func`
|
|
1237
|
-
* invocation.
|
|
1238
|
-
*
|
|
1239
|
-
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
1240
|
-
* invoked on the trailing edge of the timeout only if the debounced function
|
|
1241
|
-
* is invoked more than once during the `wait` timeout.
|
|
1242
|
-
*
|
|
1243
|
-
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
1244
|
-
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
1245
|
-
*
|
|
1246
|
-
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
1247
|
-
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
1248
|
-
*
|
|
1249
|
-
* @static
|
|
1250
|
-
* @memberOf _
|
|
1251
|
-
* @since 0.1.0
|
|
1252
|
-
* @category Function
|
|
1253
|
-
* @param {Function} func The function to debounce.
|
|
1254
|
-
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
1255
|
-
* @param {Object} [options={}] The options object.
|
|
1256
|
-
* @param {boolean} [options.leading=false]
|
|
1257
|
-
* Specify invoking on the leading edge of the timeout.
|
|
1258
|
-
* @param {number} [options.maxWait]
|
|
1259
|
-
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
1260
|
-
* @param {boolean} [options.trailing=true]
|
|
1261
|
-
* Specify invoking on the trailing edge of the timeout.
|
|
1262
|
-
* @returns {Function} Returns the new debounced function.
|
|
1263
|
-
* @example
|
|
1264
|
-
*
|
|
1265
|
-
* // Avoid costly calculations while the window size is in flux.
|
|
1266
|
-
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
1267
|
-
*
|
|
1268
|
-
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
1269
|
-
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
1270
|
-
* 'leading': true,
|
|
1271
|
-
* 'trailing': false
|
|
1272
|
-
* }));
|
|
1273
|
-
*
|
|
1274
|
-
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
1275
|
-
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
1276
|
-
* var source = new EventSource('/stream');
|
|
1277
|
-
* jQuery(source).on('message', debounced);
|
|
1278
|
-
*
|
|
1279
|
-
* // Cancel the trailing debounced invocation.
|
|
1280
|
-
* jQuery(window).on('popstate', debounced.cancel);
|
|
1281
|
-
*/
|
|
1282
|
-
function debounce(func, wait, options) {
|
|
1283
|
-
var lastArgs,
|
|
1284
|
-
lastThis,
|
|
1285
|
-
maxWait,
|
|
1286
|
-
result,
|
|
1287
|
-
timerId,
|
|
1288
|
-
lastCallTime,
|
|
1289
|
-
lastInvokeTime = 0,
|
|
1290
|
-
leading = false,
|
|
1291
|
-
maxing = false,
|
|
1292
|
-
trailing = true;
|
|
1293
|
-
|
|
1294
|
-
if (typeof func != 'function') {
|
|
1295
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
1296
|
-
}
|
|
1297
|
-
wait = toNumber(wait) || 0;
|
|
1298
|
-
if (isObject(options)) {
|
|
1299
|
-
leading = !!options.leading;
|
|
1300
|
-
maxing = 'maxWait' in options;
|
|
1301
|
-
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
1302
|
-
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
function invokeFunc(time) {
|
|
1306
|
-
var args = lastArgs,
|
|
1307
|
-
thisArg = lastThis;
|
|
1308
|
-
|
|
1309
|
-
lastArgs = lastThis = undefined;
|
|
1310
|
-
lastInvokeTime = time;
|
|
1311
|
-
result = func.apply(thisArg, args);
|
|
1312
|
-
return result;
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1315
|
-
function leadingEdge(time) {
|
|
1316
|
-
// Reset any `maxWait` timer.
|
|
1317
|
-
lastInvokeTime = time;
|
|
1318
|
-
// Start the timer for the trailing edge.
|
|
1319
|
-
timerId = setTimeout(timerExpired, wait);
|
|
1320
|
-
// Invoke the leading edge.
|
|
1321
|
-
return leading ? invokeFunc(time) : result;
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
function remainingWait(time) {
|
|
1325
|
-
var timeSinceLastCall = time - lastCallTime,
|
|
1326
|
-
timeSinceLastInvoke = time - lastInvokeTime,
|
|
1327
|
-
timeWaiting = wait - timeSinceLastCall;
|
|
1328
|
-
|
|
1329
|
-
return maxing
|
|
1330
|
-
? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
|
|
1331
|
-
: timeWaiting;
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
function shouldInvoke(time) {
|
|
1335
|
-
var timeSinceLastCall = time - lastCallTime,
|
|
1336
|
-
timeSinceLastInvoke = time - lastInvokeTime;
|
|
1337
|
-
|
|
1338
|
-
// Either this is the first call, activity has stopped and we're at the
|
|
1339
|
-
// trailing edge, the system time has gone backwards and we're treating
|
|
1340
|
-
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
1341
|
-
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
|
|
1342
|
-
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
function timerExpired() {
|
|
1346
|
-
var time = now();
|
|
1347
|
-
if (shouldInvoke(time)) {
|
|
1348
|
-
return trailingEdge(time);
|
|
1349
|
-
}
|
|
1350
|
-
// Restart the timer.
|
|
1351
|
-
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
function trailingEdge(time) {
|
|
1355
|
-
timerId = undefined;
|
|
1356
|
-
|
|
1357
|
-
// Only invoke if we have `lastArgs` which means `func` has been
|
|
1358
|
-
// debounced at least once.
|
|
1359
|
-
if (trailing && lastArgs) {
|
|
1360
|
-
return invokeFunc(time);
|
|
1361
|
-
}
|
|
1362
|
-
lastArgs = lastThis = undefined;
|
|
1363
|
-
return result;
|
|
1364
|
-
}
|
|
1365
|
-
|
|
1366
|
-
function cancel() {
|
|
1367
|
-
if (timerId !== undefined) {
|
|
1368
|
-
clearTimeout(timerId);
|
|
1369
|
-
}
|
|
1370
|
-
lastInvokeTime = 0;
|
|
1371
|
-
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
function flush() {
|
|
1375
|
-
return timerId === undefined ? result : trailingEdge(now());
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
|
-
function debounced() {
|
|
1379
|
-
var time = now(),
|
|
1380
|
-
isInvoking = shouldInvoke(time);
|
|
1381
|
-
|
|
1382
|
-
lastArgs = arguments;
|
|
1383
|
-
lastThis = this;
|
|
1384
|
-
lastCallTime = time;
|
|
1385
|
-
|
|
1386
|
-
if (isInvoking) {
|
|
1387
|
-
if (timerId === undefined) {
|
|
1388
|
-
return leadingEdge(lastCallTime);
|
|
1389
|
-
}
|
|
1390
|
-
if (maxing) {
|
|
1391
|
-
// Handle invocations in a tight loop.
|
|
1392
|
-
clearTimeout(timerId);
|
|
1393
|
-
timerId = setTimeout(timerExpired, wait);
|
|
1394
|
-
return invokeFunc(lastCallTime);
|
|
1395
|
-
}
|
|
1396
|
-
}
|
|
1397
|
-
if (timerId === undefined) {
|
|
1398
|
-
timerId = setTimeout(timerExpired, wait);
|
|
1399
|
-
}
|
|
1400
|
-
return result;
|
|
1401
|
-
}
|
|
1402
|
-
debounced.cancel = cancel;
|
|
1403
|
-
debounced.flush = flush;
|
|
1404
|
-
return debounced;
|
|
1405
|
-
}
|
|
1406
|
-
|
|
1407
|
-
module.exports = debounce;
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
/***/ }),
|
|
1411
|
-
|
|
1412
|
-
/***/ "../node_modules/lodash/now.js":
|
|
1413
|
-
/*!*************************************!*\
|
|
1414
|
-
!*** ../node_modules/lodash/now.js ***!
|
|
1415
|
-
\*************************************/
|
|
1416
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1417
|
-
|
|
1418
|
-
var root = __webpack_require__(/*! ./_root */ "../node_modules/lodash/_root.js");
|
|
1419
|
-
|
|
1420
|
-
/**
|
|
1421
|
-
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
1422
|
-
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
1423
|
-
*
|
|
1424
|
-
* @static
|
|
1425
|
-
* @memberOf _
|
|
1426
|
-
* @since 2.4.0
|
|
1427
|
-
* @category Date
|
|
1428
|
-
* @returns {number} Returns the timestamp.
|
|
1429
|
-
* @example
|
|
1430
|
-
*
|
|
1431
|
-
* _.defer(function(stamp) {
|
|
1432
|
-
* console.log(_.now() - stamp);
|
|
1433
|
-
* }, _.now());
|
|
1434
|
-
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
1435
|
-
*/
|
|
1436
|
-
var now = function() {
|
|
1437
|
-
return root.Date.now();
|
|
1438
|
-
};
|
|
1439
|
-
|
|
1440
|
-
module.exports = now;
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
/***/ }),
|
|
1444
|
-
|
|
1445
|
-
/***/ "../node_modules/lodash/throttle.js":
|
|
1446
|
-
/*!******************************************!*\
|
|
1447
|
-
!*** ../node_modules/lodash/throttle.js ***!
|
|
1448
|
-
\******************************************/
|
|
1449
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1450
|
-
|
|
1451
|
-
var debounce = __webpack_require__(/*! ./debounce */ "../node_modules/lodash/debounce.js"),
|
|
1452
|
-
isObject = __webpack_require__(/*! ./isObject */ "../node_modules/lodash/isObject.js");
|
|
1453
|
-
|
|
1454
|
-
/** Error message constants. */
|
|
1455
|
-
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
1456
|
-
|
|
1457
|
-
/**
|
|
1458
|
-
* Creates a throttled function that only invokes `func` at most once per
|
|
1459
|
-
* every `wait` milliseconds. The throttled function comes with a `cancel`
|
|
1460
|
-
* method to cancel delayed `func` invocations and a `flush` method to
|
|
1461
|
-
* immediately invoke them. Provide `options` to indicate whether `func`
|
|
1462
|
-
* should be invoked on the leading and/or trailing edge of the `wait`
|
|
1463
|
-
* timeout. The `func` is invoked with the last arguments provided to the
|
|
1464
|
-
* throttled function. Subsequent calls to the throttled function return the
|
|
1465
|
-
* result of the last `func` invocation.
|
|
1466
|
-
*
|
|
1467
|
-
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
1468
|
-
* invoked on the trailing edge of the timeout only if the throttled function
|
|
1469
|
-
* is invoked more than once during the `wait` timeout.
|
|
1470
|
-
*
|
|
1471
|
-
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
1472
|
-
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
1473
|
-
*
|
|
1474
|
-
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
1475
|
-
* for details over the differences between `_.throttle` and `_.debounce`.
|
|
1476
|
-
*
|
|
1477
|
-
* @static
|
|
1478
|
-
* @memberOf _
|
|
1479
|
-
* @since 0.1.0
|
|
1480
|
-
* @category Function
|
|
1481
|
-
* @param {Function} func The function to throttle.
|
|
1482
|
-
* @param {number} [wait=0] The number of milliseconds to throttle invocations to.
|
|
1483
|
-
* @param {Object} [options={}] The options object.
|
|
1484
|
-
* @param {boolean} [options.leading=true]
|
|
1485
|
-
* Specify invoking on the leading edge of the timeout.
|
|
1486
|
-
* @param {boolean} [options.trailing=true]
|
|
1487
|
-
* Specify invoking on the trailing edge of the timeout.
|
|
1488
|
-
* @returns {Function} Returns the new throttled function.
|
|
1489
|
-
* @example
|
|
1490
|
-
*
|
|
1491
|
-
* // Avoid excessively updating the position while scrolling.
|
|
1492
|
-
* jQuery(window).on('scroll', _.throttle(updatePosition, 100));
|
|
1493
|
-
*
|
|
1494
|
-
* // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
|
|
1495
|
-
* var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
|
|
1496
|
-
* jQuery(element).on('click', throttled);
|
|
1497
|
-
*
|
|
1498
|
-
* // Cancel the trailing throttled invocation.
|
|
1499
|
-
* jQuery(window).on('popstate', throttled.cancel);
|
|
1500
|
-
*/
|
|
1501
|
-
function throttle(func, wait, options) {
|
|
1502
|
-
var leading = true,
|
|
1503
|
-
trailing = true;
|
|
1504
|
-
|
|
1505
|
-
if (typeof func != 'function') {
|
|
1506
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
1507
|
-
}
|
|
1508
|
-
if (isObject(options)) {
|
|
1509
|
-
leading = 'leading' in options ? !!options.leading : leading;
|
|
1510
|
-
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
1511
|
-
}
|
|
1512
|
-
return debounce(func, wait, {
|
|
1513
|
-
'leading': leading,
|
|
1514
|
-
'maxWait': wait,
|
|
1515
|
-
'trailing': trailing
|
|
1516
|
-
});
|
|
1517
|
-
}
|
|
1518
|
-
|
|
1519
|
-
module.exports = throttle;
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
/***/ }),
|
|
1523
|
-
|
|
1524
|
-
/***/ "./components/shoppable-bar/shoppable-widget.scss?style-loader":
|
|
1525
|
-
/*!*********************************************************************!*\
|
|
1526
|
-
!*** ./components/shoppable-bar/shoppable-widget.scss?style-loader ***!
|
|
1527
|
-
\*********************************************************************/
|
|
830
|
+
/***/ "./components/shoppable-bar/shoppable-widget.scss":
|
|
831
|
+
/*!********************************************************!*\
|
|
832
|
+
!*** ./components/shoppable-bar/shoppable-widget.scss ***!
|
|
833
|
+
\********************************************************/
|
|
1528
834
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1529
835
|
|
|
1530
|
-
"use strict";
|
|
1531
836
|
__webpack_require__.r(__webpack_exports__);
|
|
1532
|
-
|
|
1533
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1534
|
-
/* harmony export */ });
|
|
1535
|
-
/* 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");
|
|
1536
|
-
/* 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__);
|
|
1537
|
-
/* 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");
|
|
1538
|
-
/* 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__);
|
|
1539
|
-
/* 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");
|
|
1540
|
-
/* 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__);
|
|
1541
|
-
/* 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");
|
|
1542
|
-
/* 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__);
|
|
1543
|
-
/* 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");
|
|
1544
|
-
/* 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__);
|
|
1545
|
-
/* 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");
|
|
1546
|
-
/* 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__);
|
|
1547
|
-
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_shoppable_widget_scss_style_loader__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./shoppable-widget.scss?style-loader */ "../node_modules/css-loader/dist/cjs.js!../node_modules/sass-loader/dist/cjs.js!./components/shoppable-bar/shoppable-widget.scss?style-loader");
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
var options = {};
|
|
1560
|
-
|
|
1561
|
-
options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());
|
|
1562
|
-
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
1563
|
-
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
1564
|
-
options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
1565
|
-
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
1566
|
-
|
|
1567
|
-
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_shoppable_widget_scss_style_loader__WEBPACK_IMPORTED_MODULE_6__["default"], options);
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_shoppable_widget_scss_style_loader__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_shoppable_widget_scss_style_loader__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_shoppable_widget_scss_style_loader__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined);
|
|
837
|
+
// extracted by mini-css-extract-plugin
|
|
1573
838
|
|
|
1574
839
|
|
|
1575
840
|
/***/ })
|