suada-components 1.5.0 → 1.7.0
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/components/{DailyMotion-D1GfS99W.js → DailyMotion-C2fzQqF6.js} +1 -1
- package/dist/components/{DailyMotion-DIc5BN6G.esm.js → DailyMotion-D6-bQSDC.esm.js} +1 -1
- package/dist/components/{Facebook-B1WhW-N8.esm.js → Facebook-CHgu-1qk.esm.js} +1 -1
- package/dist/components/{Facebook-CCzLezvE.js → Facebook-ngwgOcwS.js} +1 -1
- package/dist/components/{FilePlayer-BVX0TAd4.esm.js → FilePlayer-CnFGUWCJ.esm.js} +1 -1
- package/dist/components/{FilePlayer-CSeIQE-t.js → FilePlayer-gXcilMCz.js} +1 -1
- package/dist/components/{Kaltura-Dv3nF_qk.esm.js → Kaltura-BKTRnPwX.esm.js} +1 -1
- package/dist/components/{Kaltura-Ybj6tj4c.js → Kaltura-Dwtf5bDJ.js} +1 -1
- package/dist/components/{Mixcloud-NSXYlse6.js → Mixcloud-CtZR5d1S.js} +1 -1
- package/dist/components/{Mixcloud-DgO-TXVn.esm.js → Mixcloud-HlioccZN.esm.js} +1 -1
- package/dist/components/{Mux-BVKUzr2W.esm.js → Mux-CiE-LfDW.esm.js} +1 -1
- package/dist/components/{Mux-CWsIfXgR.js → Mux-DhMGRnH7.js} +1 -1
- package/dist/components/{Preview-BYYoOVhE.esm.js → Preview-BDrq-vcV.esm.js} +1 -1
- package/dist/components/{Preview-YEvp75ub.js → Preview-DuscX4du.js} +1 -1
- package/dist/components/{SoundCloud-oy_T9Aiu.esm.js → SoundCloud-BG1mh5fx.esm.js} +1 -1
- package/dist/components/{SoundCloud-D5RE0hBN.js → SoundCloud-pcTMWQVG.js} +1 -1
- package/dist/components/{Streamable-BEA6SKQj.esm.js → Streamable-3QXSsimo.esm.js} +1 -1
- package/dist/components/{Streamable-cVBLCtV4.js → Streamable-B-2t9AZh.js} +1 -1
- package/dist/components/{Twitch-DPtzkrmp.esm.js → Twitch-B2wmDlW8.esm.js} +1 -1
- package/dist/components/{Twitch-DK8g5mI9.js → Twitch-Ccg79Yis.js} +1 -1
- package/dist/components/VideoPlayer/Controls/Controls.interface.d.ts +3 -0
- package/dist/components/VideoPlayer/Controls/Controls.js +13 -13
- package/dist/components/VideoPlayer/Controls/Controls.js.map +1 -1
- package/dist/components/VideoPlayer/Controls/Controls.styles.d.ts +1 -0
- package/dist/components/VideoPlayer/Controls/Controls.styles.js +8 -7
- package/dist/components/VideoPlayer/Controls/Controls.styles.js.map +1 -1
- package/dist/components/VideoPlayer/Player.d.ts +1 -1
- package/dist/components/VideoPlayer/Player.interface.d.ts +3 -0
- package/dist/components/VideoPlayer/Player.js +4 -4
- package/dist/components/VideoPlayer/Player.js.map +1 -1
- package/dist/components/VideoPlayer/Player.styles.js +1 -1
- package/dist/components/VideoPlayer/Player.styles.js.map +1 -1
- package/dist/components/VideoPlayer/VideoPlayer.stories.d.ts +1 -0
- package/dist/components/VideoPlayer/VideoPlayer.stories.js +11 -0
- package/dist/components/VideoPlayer/VideoPlayer.stories.js.map +1 -1
- package/dist/components/VideoPlayer/usePlayerControls.js +31 -4
- package/dist/components/VideoPlayer/usePlayerControls.js.map +1 -1
- package/dist/components/{Vidyard-BfoXiL7u.js → Vidyard-BcZfnHmw.js} +1 -1
- package/dist/components/{Vidyard-C80XYDQJ.esm.js → Vidyard-stasLAXI.esm.js} +1 -1
- package/dist/components/{Vimeo-C71PHmy8.js → Vimeo-9D0LyMV4.js} +1 -1
- package/dist/components/{Vimeo-BuGV9164.esm.js → Vimeo-U2HYvdiG.esm.js} +1 -1
- package/dist/components/{Wistia-DZLhakqM.js → Wistia-3LaD3aiP.js} +1 -1
- package/dist/components/{Wistia-ZeBeRmW3.esm.js → Wistia-BNvoofR9.esm.js} +1 -1
- package/dist/components/{YouTube-D2V4Z5LG.js → YouTube-CdcE3nmm.js} +1 -1
- package/dist/components/{YouTube-DVacs1Or.esm.js → YouTube-DJZyY4jW.esm.js} +1 -1
- package/dist/components/components/VideoPlayer/Controls/Controls.interface.d.ts +3 -0
- package/dist/components/components/VideoPlayer/Controls/Controls.styles.d.ts +1 -0
- package/dist/components/components/VideoPlayer/Player.d.ts +1 -1
- package/dist/components/components/VideoPlayer/Player.interface.d.ts +3 -0
- package/dist/components/icons/PictureInPicture.d.ts +3 -0
- package/dist/components/icons/index.d.ts +1 -0
- package/dist/components/{index-0oGMHkIv.esm.js → index-C5MULDlh.esm.js} +155 -84
- package/dist/components/{index-CUdpL49N.js → index-Debc-Hq8.js} +155 -84
- package/dist/components/index.esm.js +1 -1
- package/dist/icons/PictureInPicture.d.ts +3 -0
- package/dist/icons/PictureInPicture.js +28 -0
- package/dist/icons/PictureInPicture.js.map +1 -0
- package/dist/icons/components/VideoPlayer/Controls/Controls.interface.d.ts +3 -0
- package/dist/icons/components/VideoPlayer/Controls/Controls.styles.d.ts +1 -0
- package/dist/icons/components/VideoPlayer/Player.d.ts +1 -1
- package/dist/icons/components/VideoPlayer/Player.interface.d.ts +3 -0
- package/dist/icons/icons/PictureInPicture.d.ts +3 -0
- package/dist/icons/icons/index.d.ts +1 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.esm.js +21 -1
- package/dist/icons/index.js +1 -0
- package/dist/icons/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -32396,7 +32396,7 @@ var CourseStatusContainer = dt.div(templateObject_13$2 || (templateObject_13$2 =
|
|
|
32396
32396
|
return !$status ? '#EA382A' : '#00905E';
|
|
32397
32397
|
});
|
|
32398
32398
|
dt.div(templateObject_14$2 || (templateObject_14$2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n div {\n font-size: 13px;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n div {\n font-size: 13px;\n }\n"])));
|
|
32399
|
-
var TooltipContent = dt.div(templateObject_15$
|
|
32399
|
+
var TooltipContent = dt.div(templateObject_15$2 || (templateObject_15$2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n & > :first-child {\n font-size: 14px;\n margin-bottom: 5px;\n }\n div {\n font-size: 14px;\n display: flex;\n flex-direction: column;\n align-items: center;\n\n & > .tooltip-text {\n font-size: 12px;\n margin-top: 5px;\n text-align: center;\n }\n }\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n & > :first-child {\n font-size: 14px;\n margin-bottom: 5px;\n }\n div {\n font-size: 14px;\n display: flex;\n flex-direction: column;\n align-items: center;\n\n & > .tooltip-text {\n font-size: 12px;\n margin-top: 5px;\n text-align: center;\n }\n }\n"])));
|
|
32400
32400
|
var StyledCardBottomContainer = dt.div(templateObject_16$1 || (templateObject_16$1 = __makeTemplateObject(["\n display: flex;\n width: 100%;\n flex-direction: column !important;\n align-self: flex-end;\n gap: 10px;\n padding-bottom: 10px;\n"], ["\n display: flex;\n width: 100%;\n flex-direction: column !important;\n align-self: flex-end;\n gap: 10px;\n padding-bottom: 10px;\n"])));
|
|
32401
32401
|
var StyledActionsContainer = dt.div(templateObject_17$1 || (templateObject_17$1 = __makeTemplateObject(["\n display: flex;\n flex-direction: row !important;\n width: 100%;\n"], ["\n display: flex;\n flex-direction: row !important;\n width: 100%;\n"])));
|
|
32402
32402
|
var StyledActionItem = dt.span(templateObject_18$1 || (templateObject_18$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n height: 14px;\n cursor: ", ";\n color: ", ";\n font-size: 14px;\n padding-bottom: 10px;\n width: 100%;\n justify-content: center;\n gap: 8px;\n padding: 12px 4px;\n svg path {\n fill: ", ";\n width: 16px;\n height: 16px;\n }\n svg {\n width: 16px;\n height: 16px;\n }\n &:hover {\n color: ", ";\n svg path {\n fill: ", ";\n }\n }\n"], ["\n display: flex;\n align-items: center;\n height: 14px;\n cursor: ", ";\n color: ", ";\n font-size: 14px;\n padding-bottom: 10px;\n width: 100%;\n justify-content: center;\n gap: 8px;\n padding: 12px 4px;\n svg path {\n fill: ", ";\n width: 16px;\n height: 16px;\n }\n svg {\n width: 16px;\n height: 16px;\n }\n &:hover {\n color: ", ";\n svg path {\n fill: ", ";\n }\n }\n"])), function (_a) {
|
|
@@ -32446,7 +32446,7 @@ var GridItem = dt.div(templateObject_32 || (templateObject_32 = __makeTemplateOb
|
|
|
32446
32446
|
var $isFromUser = _a.$isFromUser;
|
|
32447
32447
|
return $isFromUser && "\n figure {\n position: relative;\n &:after {\n content: 'View Analytics';\n position: absolute;\n top: 0;\n opacity: 0;\n color: #06c68f;\n left: 0;\n font-size: 24px;\n font-weight: 700;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(255, 255, 255, 0.9);\n width: 100%;\n height: 100%;\n transition: opacity 0.3s ease;\n z-index: 10;\n }\n }\n\n &:hover {\n figure {\n &:after {\n opacity: 1;\n }\n }\n }\n " || '';
|
|
32448
32448
|
});
|
|
32449
|
-
var templateObject_1$o, templateObject_2$j, templateObject_3$f, templateObject_4$c, templateObject_5$8, templateObject_6$7, templateObject_7$5, templateObject_8$4, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$2, templateObject_15$
|
|
32449
|
+
var templateObject_1$o, templateObject_2$j, templateObject_3$f, templateObject_4$c, templateObject_5$8, templateObject_6$7, templateObject_7$5, templateObject_8$4, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$2, templateObject_15$2, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21$1, templateObject_22$1, templateObject_23$1, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32;
|
|
32450
32450
|
|
|
32451
32451
|
var TooltipHeight$1 = function TooltipHeight(_a) {
|
|
32452
32452
|
var text = _a.text,
|
|
@@ -37528,6 +37528,26 @@ var OndemandVideoIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
37528
37528
|
});
|
|
37529
37529
|
OndemandVideoIcon.displayName = 'OndemandVideoIcon';
|
|
37530
37530
|
|
|
37531
|
+
var PictureInPictureIcon = function PictureInPictureIcon(_a) {
|
|
37532
|
+
var className = _a.className,
|
|
37533
|
+
onClick = _a.onClick,
|
|
37534
|
+
props = __rest(_a, ["className", "onClick"]);
|
|
37535
|
+
return jsxRuntimeExports.jsx("svg", __assign({
|
|
37536
|
+
width: '24',
|
|
37537
|
+
height: '24',
|
|
37538
|
+
viewBox: '0 0 24 24',
|
|
37539
|
+
fill: 'none',
|
|
37540
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
37541
|
+
className: className,
|
|
37542
|
+
onClick: onClick
|
|
37543
|
+
}, props, {
|
|
37544
|
+
children: jsxRuntimeExports.jsx("path", {
|
|
37545
|
+
d: 'M19 7H22V17C22 18.1 21.1 19 20 19H4C2.9 19 2 18.1 2 17V7C2 5.9 2.9 5 4 5H17V7H4V17H13V15H20V7H19ZM15 13H22V7H15V13Z',
|
|
37546
|
+
fill: 'white'
|
|
37547
|
+
})
|
|
37548
|
+
}));
|
|
37549
|
+
};
|
|
37550
|
+
|
|
37531
37551
|
var PublishIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
37532
37552
|
var className = _a.className,
|
|
37533
37553
|
onClick = _a.onClick,
|
|
@@ -42810,7 +42830,7 @@ var CancelButton = dt.div(templateObject_11$1 || (templateObject_11$1 = __makeTe
|
|
|
42810
42830
|
var InputFileContainer = dt.div(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n /* input {\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n\n &label {\n width: 85%;\n height: 100%;\n cursor: pointer;\n } */\n"], ["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n /* input {\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n\n &label {\n width: 85%;\n height: 100%;\n cursor: pointer;\n } */\n"])));
|
|
42811
42831
|
var UploadInput = dt.input(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject(["\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n width: 0;\n top: 0;\n overflow: hidden;\n"], ["\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n width: 0;\n top: 0;\n overflow: hidden;\n"])));
|
|
42812
42832
|
dt.div(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject(["\n position: absolute;\n left: 0px;\n top: -15px;\n background: #fff;\n font-size: 12px;\n color: rgba(0, 0, 0, 0.54);\n"], ["\n position: absolute;\n left: 0px;\n top: -15px;\n background: #fff;\n font-size: 12px;\n color: rgba(0, 0, 0, 0.54);\n"])));
|
|
42813
|
-
var ImagePlaceholder = dt.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n img {\n position: relative;\n width: 72px;\n height: 48px;\n border-radius: 4px;\n padding: 4px;\n top: 2px;\n }\n"], ["\n img {\n position: relative;\n width: 72px;\n height: 48px;\n border-radius: 4px;\n padding: 4px;\n top: 2px;\n }\n"])));
|
|
42833
|
+
var ImagePlaceholder = dt.div(templateObject_15$1 || (templateObject_15$1 = __makeTemplateObject(["\n img {\n position: relative;\n width: 72px;\n height: 48px;\n border-radius: 4px;\n padding: 4px;\n top: 2px;\n }\n"], ["\n img {\n position: relative;\n width: 72px;\n height: 48px;\n border-radius: 4px;\n padding: 4px;\n top: 2px;\n }\n"])));
|
|
42814
42834
|
var InputLabel = dt.label(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n cursor: pointer;\n color: #fff;\n background: #06c68f;\n font-size: 11px;\n padding: 9px 6px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n cursor: pointer;\n color: #fff;\n background: #06c68f;\n font-size: 11px;\n padding: 9px 6px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n"
|
|
42815
42835
|
// UploaderButton
|
|
42816
42836
|
])));
|
|
@@ -42833,7 +42853,7 @@ var styles$1 = {
|
|
|
42833
42853
|
padding: '4px'
|
|
42834
42854
|
}
|
|
42835
42855
|
};
|
|
42836
|
-
var templateObject_1$j, templateObject_2$e, templateObject_3$a, templateObject_4$7, templateObject_5$6, templateObject_6$5, templateObject_7$3, templateObject_8$2, templateObject_9$1, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14$1, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23;
|
|
42856
|
+
var templateObject_1$j, templateObject_2$e, templateObject_3$a, templateObject_4$7, templateObject_5$6, templateObject_6$5, templateObject_7$3, templateObject_8$2, templateObject_9$1, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14$1, templateObject_15$1, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23;
|
|
42837
42857
|
|
|
42838
42858
|
var ImageWithFallback = function ImageWithFallback(_a) {
|
|
42839
42859
|
var src = _a.src,
|
|
@@ -81355,7 +81375,7 @@ function requirePlayers () {
|
|
|
81355
81375
|
canPlay: import_patterns.canPlay.youtube,
|
|
81356
81376
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81357
81377
|
/* webpackChunkName: 'reactPlayerYouTube' */
|
|
81358
|
-
'./YouTube-
|
|
81378
|
+
'./YouTube-CdcE3nmm.js'
|
|
81359
81379
|
); }).then(function (n) { return n.YouTube; }))
|
|
81360
81380
|
},
|
|
81361
81381
|
{
|
|
@@ -81364,7 +81384,7 @@ function requirePlayers () {
|
|
|
81364
81384
|
canPlay: import_patterns.canPlay.soundcloud,
|
|
81365
81385
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81366
81386
|
/* webpackChunkName: 'reactPlayerSoundCloud' */
|
|
81367
|
-
'./SoundCloud-
|
|
81387
|
+
'./SoundCloud-pcTMWQVG.js'
|
|
81368
81388
|
); }).then(function (n) { return n.SoundCloud; }))
|
|
81369
81389
|
},
|
|
81370
81390
|
{
|
|
@@ -81373,7 +81393,7 @@ function requirePlayers () {
|
|
|
81373
81393
|
canPlay: import_patterns.canPlay.vimeo,
|
|
81374
81394
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81375
81395
|
/* webpackChunkName: 'reactPlayerVimeo' */
|
|
81376
|
-
'./Vimeo-
|
|
81396
|
+
'./Vimeo-9D0LyMV4.js'
|
|
81377
81397
|
); }).then(function (n) { return n.Vimeo; }))
|
|
81378
81398
|
},
|
|
81379
81399
|
{
|
|
@@ -81382,7 +81402,7 @@ function requirePlayers () {
|
|
|
81382
81402
|
canPlay: import_patterns.canPlay.mux,
|
|
81383
81403
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81384
81404
|
/* webpackChunkName: 'reactPlayerMux' */
|
|
81385
|
-
'./Mux-
|
|
81405
|
+
'./Mux-DhMGRnH7.js'
|
|
81386
81406
|
); }).then(function (n) { return n.Mux; }))
|
|
81387
81407
|
},
|
|
81388
81408
|
{
|
|
@@ -81391,7 +81411,7 @@ function requirePlayers () {
|
|
|
81391
81411
|
canPlay: import_patterns.canPlay.facebook,
|
|
81392
81412
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81393
81413
|
/* webpackChunkName: 'reactPlayerFacebook' */
|
|
81394
|
-
'./Facebook-
|
|
81414
|
+
'./Facebook-ngwgOcwS.js'
|
|
81395
81415
|
); }).then(function (n) { return n.Facebook; }))
|
|
81396
81416
|
},
|
|
81397
81417
|
{
|
|
@@ -81400,7 +81420,7 @@ function requirePlayers () {
|
|
|
81400
81420
|
canPlay: import_patterns.canPlay.streamable,
|
|
81401
81421
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81402
81422
|
/* webpackChunkName: 'reactPlayerStreamable' */
|
|
81403
|
-
'./Streamable-
|
|
81423
|
+
'./Streamable-B-2t9AZh.js'
|
|
81404
81424
|
); }).then(function (n) { return n.Streamable; }))
|
|
81405
81425
|
},
|
|
81406
81426
|
{
|
|
@@ -81409,7 +81429,7 @@ function requirePlayers () {
|
|
|
81409
81429
|
canPlay: import_patterns.canPlay.wistia,
|
|
81410
81430
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81411
81431
|
/* webpackChunkName: 'reactPlayerWistia' */
|
|
81412
|
-
'./Wistia-
|
|
81432
|
+
'./Wistia-3LaD3aiP.js'
|
|
81413
81433
|
); }).then(function (n) { return n.Wistia; }))
|
|
81414
81434
|
},
|
|
81415
81435
|
{
|
|
@@ -81418,7 +81438,7 @@ function requirePlayers () {
|
|
|
81418
81438
|
canPlay: import_patterns.canPlay.twitch,
|
|
81419
81439
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81420
81440
|
/* webpackChunkName: 'reactPlayerTwitch' */
|
|
81421
|
-
'./Twitch-
|
|
81441
|
+
'./Twitch-Ccg79Yis.js'
|
|
81422
81442
|
); }).then(function (n) { return n.Twitch; }))
|
|
81423
81443
|
},
|
|
81424
81444
|
{
|
|
@@ -81427,7 +81447,7 @@ function requirePlayers () {
|
|
|
81427
81447
|
canPlay: import_patterns.canPlay.dailymotion,
|
|
81428
81448
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81429
81449
|
/* webpackChunkName: 'reactPlayerDailyMotion' */
|
|
81430
|
-
'./DailyMotion-
|
|
81450
|
+
'./DailyMotion-C2fzQqF6.js'
|
|
81431
81451
|
); }).then(function (n) { return n.DailyMotion; }))
|
|
81432
81452
|
},
|
|
81433
81453
|
{
|
|
@@ -81436,7 +81456,7 @@ function requirePlayers () {
|
|
|
81436
81456
|
canPlay: import_patterns.canPlay.mixcloud,
|
|
81437
81457
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81438
81458
|
/* webpackChunkName: 'reactPlayerMixcloud' */
|
|
81439
|
-
'./Mixcloud-
|
|
81459
|
+
'./Mixcloud-CtZR5d1S.js'
|
|
81440
81460
|
); }).then(function (n) { return n.Mixcloud; }))
|
|
81441
81461
|
},
|
|
81442
81462
|
{
|
|
@@ -81445,7 +81465,7 @@ function requirePlayers () {
|
|
|
81445
81465
|
canPlay: import_patterns.canPlay.vidyard,
|
|
81446
81466
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81447
81467
|
/* webpackChunkName: 'reactPlayerVidyard' */
|
|
81448
|
-
'./Vidyard-
|
|
81468
|
+
'./Vidyard-BcZfnHmw.js'
|
|
81449
81469
|
); }).then(function (n) { return n.Vidyard; }))
|
|
81450
81470
|
},
|
|
81451
81471
|
{
|
|
@@ -81454,7 +81474,7 @@ function requirePlayers () {
|
|
|
81454
81474
|
canPlay: import_patterns.canPlay.kaltura,
|
|
81455
81475
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81456
81476
|
/* webpackChunkName: 'reactPlayerKaltura' */
|
|
81457
|
-
'./Kaltura-
|
|
81477
|
+
'./Kaltura-Dwtf5bDJ.js'
|
|
81458
81478
|
); }).then(function (n) { return n.Kaltura; }))
|
|
81459
81479
|
},
|
|
81460
81480
|
{
|
|
@@ -81466,7 +81486,7 @@ function requirePlayers () {
|
|
|
81466
81486
|
},
|
|
81467
81487
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81468
81488
|
/* webpackChunkName: 'reactPlayerFilePlayer' */
|
|
81469
|
-
'./FilePlayer-
|
|
81489
|
+
'./FilePlayer-gXcilMCz.js'
|
|
81470
81490
|
); }).then(function (n) { return n.FilePlayer; }))
|
|
81471
81491
|
}
|
|
81472
81492
|
];
|
|
@@ -82287,7 +82307,7 @@ function requireReactPlayer () {
|
|
|
82287
82307
|
var import_Player = __toESM(/*@__PURE__*/ requirePlayer());
|
|
82288
82308
|
const Preview = (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
82289
82309
|
/* webpackChunkName: 'reactPlayerPreview' */
|
|
82290
|
-
'./Preview-
|
|
82310
|
+
'./Preview-DuscX4du.js'
|
|
82291
82311
|
); }).then(function (n) { return n.Preview; }));
|
|
82292
82312
|
const IS_BROWSER = typeof window !== "undefined" && window.document && typeof document !== "undefined";
|
|
82293
82313
|
const IS_GLOBAL = typeof commonjsGlobal !== "undefined" && commonjsGlobal.window && commonjsGlobal.window.document;
|
|
@@ -82501,7 +82521,7 @@ var StyledWrapper = dt.div(templateObject_2$7 || (templateObject_2$7 = __makeTem
|
|
|
82501
82521
|
var StyledPlayerLoader = dt.div(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: 8px;\n background: #e7e9ed;\n display: flex;\n align-items: center;\n top: 0;\n bottom: 0;\n margin: auto 0;\n color: var(--neutral-colors-light);\n justify-content: center;\n z-index: 5;\n"], ["\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: 8px;\n background: #e7e9ed;\n display: flex;\n align-items: center;\n top: 0;\n bottom: 0;\n margin: auto 0;\n color: var(--neutral-colors-light);\n justify-content: center;\n z-index: 5;\n"])));
|
|
82502
82522
|
var rotate = mt(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"], ["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
|
|
82503
82523
|
var StyledLoader = dt.div(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n margin: 60px auto;\n font-size: 10px;\n position: relative;\n text-indent: -9999em;\n border-top: 3px solid var(--neutral-colors-light);\n border-right: 3px solid var(--neutral-colors-light);\n border-bottom: 3px solid var(--neutral-colors-light);\n border-left: 3px solid var(--brand-colors-accent);\n transform: translateZ(0);\n animation: ", " 1.1s infinite linear;\n border-radius: 50%;\n width: 46px;\n height: 46px;\n\n &:after {\n border-radius: 50%;\n width: 46px;\n height: 46px;\n }\n"], ["\n margin: 60px auto;\n font-size: 10px;\n position: relative;\n text-indent: -9999em;\n border-top: 3px solid var(--neutral-colors-light);\n border-right: 3px solid var(--neutral-colors-light);\n border-bottom: 3px solid var(--neutral-colors-light);\n border-left: 3px solid var(--brand-colors-accent);\n transform: translateZ(0);\n animation: ", " 1.1s infinite linear;\n border-radius: 50%;\n width: 46px;\n height: 46px;\n\n &:after {\n border-radius: 50%;\n width: 46px;\n height: 46px;\n }\n"])), rotate);
|
|
82504
|
-
var StyledControlsContainer = dt.div(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n width: 100%;\n height: fit-content;\n display: flex;\n align-items: flex-end;\n position: absolute;\n flex-direction: column;\n left: 0;\n bottom: 0;\n z-index: 2;\n"], ["\n width: 100%;\n height: fit-content;\n display: flex;\n align-items: flex-end;\n position: absolute;\n flex-direction: column;\n left: 0;\n bottom: 0;\n z-index: 2;\n"])));
|
|
82524
|
+
var StyledControlsContainer = dt.div(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n width: 100%;\n height: fit-content;\n display: flex;\n align-items: flex-end;\n position: absolute;\n flex-direction: column;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 2;\n"], ["\n width: 100%;\n height: fit-content;\n display: flex;\n align-items: flex-end;\n position: absolute;\n flex-direction: column;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 2;\n"])));
|
|
82505
82525
|
var StyledSubtitles = dt.div(templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject(["\n background-color: rgba(2, 2, 16, 0.32);\n color: #fff;\n font-family: 'Open Sans', sans-serif;\n font-size: 18px;\n font-style: normal;\n font-weight: 400;\n line-height: 150%;\n padding: 8px;\n position: absolute;\n z-index: 100;\n bottom: ", ";\n right: 0;\n left: 0;\n width: fit-content;\n margin: 0 auto;\n max-width: 80%;\n width: fit-content;\n"], ["\n background-color: rgba(2, 2, 16, 0.32);\n color: #fff;\n font-family: 'Open Sans', sans-serif;\n font-size: 18px;\n font-style: normal;\n font-weight: 400;\n line-height: 150%;\n padding: 8px;\n position: absolute;\n z-index: 100;\n bottom: ", ";\n right: 0;\n left: 0;\n width: fit-content;\n margin: 0 auto;\n max-width: 80%;\n width: fit-content;\n"])), function (_a) {
|
|
82506
82526
|
var $controls = _a.$controls;
|
|
82507
82527
|
return $controls ? '60px' : '10px';
|
|
@@ -82529,7 +82549,7 @@ var injectHLSSubtitleStyles = function injectHLSSubtitleStyles() {
|
|
|
82529
82549
|
};
|
|
82530
82550
|
var templateObject_1$9, templateObject_2$7, templateObject_3$4, templateObject_4$2, templateObject_5$2, templateObject_6$2, templateObject_7$1;
|
|
82531
82551
|
|
|
82532
|
-
var StyledControls = dt.div(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n width: 100%;\n border-radius: 0px 0px 8px 8px;\n background:
|
|
82552
|
+
var StyledControls = dt.div(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n width: 100%;\n border-radius: 0px 0px 8px 8px;\n background: rgba(86, 90, 98, 0.6);\n backdrop-filter: blur(4px);\n padding: 12px 16px;\n position: relative;\n opacity: 0.8;\n\n\n svg {\n cursor: pointer;\n\n @media screen and (max-width: 1500px) {\n width: 20px;\n height: 20px;\n }\n\n @media screen and (max-width: 1000px) {\n width: 16px;\n height: 16px;\n }\n }\n\n & > p {\n color: var(--neutral-colors-light);\n font-family: 'Poppins', sans-serif;\n ", "\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n width: 100%;\n border-radius: 0px 0px 8px 8px;\n background: rgba(86, 90, 98, 0.6);\n backdrop-filter: blur(4px);\n padding: 12px 16px;\n position: relative;\n opacity: 0.8;\n\n\n svg {\n cursor: pointer;\n\n @media screen and (max-width: 1500px) {\n width: 20px;\n height: 20px;\n }\n\n @media screen and (max-width: 1000px) {\n width: 16px;\n height: 16px;\n }\n }\n\n & > p {\n color: var(--neutral-colors-light);\n font-family: 'Poppins', sans-serif;\n ", "\n }\n"])), {
|
|
82533
82553
|
fontStyle: 'descriptor'
|
|
82534
82554
|
});
|
|
82535
82555
|
var StyledSlider = dt.input(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n width: 100%;\n height: 2px;\n border-radius: 5px;\n position: absolute;\n top: 0;\n left: 0;\n background: ", ";\n outline: none;\n -webkit-transition: 0.2s;\n transition: opacity 0.2s;\n cursor: pointer;\n\n &::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background: var(--brand-colors-accent);\n cursor: pointer;\n }\n\n &::-moz-range-thumb {\n appearance: none;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background: var(--brand-colors-accent);\n cursor: pointer;\n }\n"], ["\n width: 100%;\n height: 2px;\n border-radius: 5px;\n position: absolute;\n top: 0;\n left: 0;\n background: ", ";\n outline: none;\n -webkit-transition: 0.2s;\n transition: opacity 0.2s;\n cursor: pointer;\n\n &::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background: var(--brand-colors-accent);\n cursor: pointer;\n }\n\n &::-moz-range-thumb {\n appearance: none;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background: var(--brand-colors-accent);\n cursor: pointer;\n }\n"])), function (_a) {
|
|
@@ -82541,8 +82561,8 @@ var StyledVolumeSlider = dt.input(templateObject_4$1 || (templateObject_4$1 = __
|
|
|
82541
82561
|
var value = _a.value;
|
|
82542
82562
|
return "linear-gradient(\n to right,\n var(--neutral-colors-light) 0%,\n var(--neutral-colors-light) ".concat(value, "%,\n var(--level-grey-500) ").concat(value, "%,\n var(--level-grey-500) 100%\n )");
|
|
82543
82563
|
});
|
|
82544
|
-
var StyledControllerLeft = dt.div(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 16px;\n"], ["\n display: flex;\n align-items: center;\n gap: 16px;\n"])));
|
|
82545
|
-
var StyledControllerRight = dt.div(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 16px;\n\n .skip-icon-disabled {\n cursor: default;\n\n & > path {\n fill: var(--level-dark-300);\n }\n }\n"], ["\n display: flex;\n align-items: center;\n gap: 16px;\n\n .skip-icon-disabled {\n cursor: default;\n\n & > path {\n fill: var(--level-dark-300);\n }\n }\n"])));
|
|
82564
|
+
var StyledControllerLeft = dt.div(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 16px;\n flex: 1;\n"], ["\n display: flex;\n align-items: center;\n gap: 16px;\n flex: 1;\n"])));
|
|
82565
|
+
var StyledControllerRight = dt.div(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 16px;\n flex-shrink: 0;\n\n .skip-icon-disabled {\n cursor: default;\n\n & > path {\n fill: var(--level-dark-300);\n }\n }\n"], ["\n display: flex;\n align-items: center;\n gap: 16px;\n flex-shrink: 0;\n\n .skip-icon-disabled {\n cursor: default;\n\n & > path {\n fill: var(--level-dark-300);\n }\n }\n"])));
|
|
82546
82566
|
var StyledTimeTrack = dt.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n color: #FFFFFF;\n ", "\n text-align: right;\n white-space: nowrap;\n"], ["\n color: #FFFFFF;\n ", "\n text-align: right;\n white-space: nowrap;\n"])), {
|
|
82547
82567
|
fontStyle: 'descriptor'
|
|
82548
82568
|
});
|
|
@@ -82550,10 +82570,11 @@ var StyledHeartIconContainer = dt.div(templateObject_8 || (templateObject_8 = __
|
|
|
82550
82570
|
var StyledDownloadIconContainer = dt.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg {\n width: 24px !important;\n height: 24px !important;\n \n @media screen and (max-width: 1500px) {\n width: 20px !important;\n height: 20px !important;\n }\n\n @media screen and (max-width: 1000px) {\n width: 16px !important;\n height: 16px !important;\n }\n }\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg {\n width: 24px !important;\n height: 24px !important;\n \n @media screen and (max-width: 1500px) {\n width: 20px !important;\n height: 20px !important;\n }\n\n @media screen and (max-width: 1000px) {\n width: 16px !important;\n height: 16px !important;\n }\n }\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"])));
|
|
82551
82571
|
var StyledSubtitlesIconContainer = dt.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"])));
|
|
82552
82572
|
var StyledFullscreenIconContainer = dt.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"])));
|
|
82553
|
-
var
|
|
82554
|
-
var
|
|
82555
|
-
var
|
|
82556
|
-
var
|
|
82573
|
+
var StyledPictureInPictureIconContainer = dt.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n\n &.pip-active > svg > path {\n fill: #08C694 !important;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n\n &.pip-active > svg > path {\n fill: #08C694 !important;\n }\n"])));
|
|
82574
|
+
var StyledVolumeIconContainer = dt.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"])));
|
|
82575
|
+
var StyledPlayPauseIconContainer = dt.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"])));
|
|
82576
|
+
var StyledRewindIconContainer = dt.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n \n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n \n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"])));
|
|
82577
|
+
var templateObject_1$8, templateObject_2$6, templateObject_3$3, templateObject_4$1, templateObject_5$1, templateObject_6$1, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15;
|
|
82557
82578
|
|
|
82558
82579
|
var PLAYBACK_SPEED_LIST = [{
|
|
82559
82580
|
label: 'playback_speed.2x',
|
|
@@ -82756,12 +82777,14 @@ var Controls = function Controls(_a) {
|
|
|
82756
82777
|
volumeChangeHandler = _a.volumeChangeHandler,
|
|
82757
82778
|
formatDuration = _a.formatDuration,
|
|
82758
82779
|
handleFullScreen = _a.handleFullScreen,
|
|
82780
|
+
handlePictureInPicture = _a.handlePictureInPicture,
|
|
82759
82781
|
playing = _a.playing,
|
|
82760
82782
|
isSubtitlesChecked = _a.isSubtitlesChecked,
|
|
82761
82783
|
toggleSubtitlesCheck = _a.toggleSubtitlesCheck,
|
|
82762
82784
|
isFavorite = _a.isFavorite,
|
|
82763
82785
|
toggleIsFavorite = _a.toggleIsFavorite,
|
|
82764
82786
|
isFullscreen = _a.isFullscreen,
|
|
82787
|
+
isPiPActive = _a.isPiPActive,
|
|
82765
82788
|
subtitle = _a.subtitle,
|
|
82766
82789
|
handleSkipBackward = _a.handleSkipBackward,
|
|
82767
82790
|
handleSkipForward = _a.handleSkipForward,
|
|
@@ -82771,7 +82794,9 @@ var Controls = function Controls(_a) {
|
|
|
82771
82794
|
showDownload = _a.showDownload,
|
|
82772
82795
|
downloadUrl = _a.downloadUrl,
|
|
82773
82796
|
downloadFileName = _a.downloadFileName,
|
|
82774
|
-
onDownload = _a.onDownload
|
|
82797
|
+
onDownload = _a.onDownload,
|
|
82798
|
+
_b = _a.showPictureInPicture,
|
|
82799
|
+
showPictureInPicture = _b === void 0 ? true : _b;
|
|
82775
82800
|
var handleDownloadClick = function handleDownloadClick() {
|
|
82776
82801
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
82777
82802
|
var response, blob, blobUrl, link, error_1, link;
|
|
@@ -82870,22 +82895,26 @@ var Controls = function Controls(_a) {
|
|
|
82870
82895
|
}), jsxRuntimeExports.jsxs(StyledControllerRight, {
|
|
82871
82896
|
children: [handleSkipBackward && jsxRuntimeExports.jsx(CustomTooltip, {
|
|
82872
82897
|
title: "Previous video",
|
|
82873
|
-
children: jsxRuntimeExports.jsx(
|
|
82874
|
-
|
|
82875
|
-
|
|
82876
|
-
|
|
82877
|
-
|
|
82878
|
-
|
|
82898
|
+
children: jsxRuntimeExports.jsx(StyledRewindIconContainer, {
|
|
82899
|
+
children: jsxRuntimeExports.jsx(SkipIcon, {
|
|
82900
|
+
onClick: function onClick() {
|
|
82901
|
+
if (!isPreviousVideo) return;
|
|
82902
|
+
handleSkipBackward();
|
|
82903
|
+
},
|
|
82904
|
+
className: isPreviousVideo ? '' : 'skip-icon-disabled'
|
|
82905
|
+
})
|
|
82879
82906
|
})
|
|
82880
82907
|
}), handleSkipForward && jsxRuntimeExports.jsx(CustomTooltip, {
|
|
82881
82908
|
title: "Next video",
|
|
82882
|
-
children: jsxRuntimeExports.jsx(
|
|
82883
|
-
|
|
82884
|
-
|
|
82885
|
-
|
|
82886
|
-
|
|
82887
|
-
|
|
82888
|
-
|
|
82909
|
+
children: jsxRuntimeExports.jsx(StyledRewindIconContainer, {
|
|
82910
|
+
children: jsxRuntimeExports.jsx(SkipIcon, {
|
|
82911
|
+
forward: true,
|
|
82912
|
+
onClick: function onClick() {
|
|
82913
|
+
if (!isNextVideo) return;
|
|
82914
|
+
handleSkipForward();
|
|
82915
|
+
},
|
|
82916
|
+
className: isNextVideo ? '' : 'skip-icon-disabled'
|
|
82917
|
+
})
|
|
82889
82918
|
})
|
|
82890
82919
|
}), showFavorite && jsxRuntimeExports.jsx(CustomTooltip, {
|
|
82891
82920
|
title: isFavorite ? 'Remove from favorites' : 'Add to favorites',
|
|
@@ -82926,6 +82955,13 @@ var Controls = function Controls(_a) {
|
|
|
82926
82955
|
onClick: toggleSubtitlesCheck
|
|
82927
82956
|
})
|
|
82928
82957
|
})
|
|
82958
|
+
}), showPictureInPicture && jsxRuntimeExports.jsx(CustomTooltip, {
|
|
82959
|
+
title: isPiPActive ? 'Exit picture-in-picture' : 'Enter picture-in-picture',
|
|
82960
|
+
children: jsxRuntimeExports.jsx(StyledPictureInPictureIconContainer, {
|
|
82961
|
+
className: isPiPActive ? 'pip-active' : '',
|
|
82962
|
+
onClick: handlePictureInPicture,
|
|
82963
|
+
children: jsxRuntimeExports.jsx(PictureInPictureIcon, {})
|
|
82964
|
+
})
|
|
82929
82965
|
}), jsxRuntimeExports.jsx(CustomTooltip, {
|
|
82930
82966
|
title: isFullscreen ? 'Exit fullscreen' : 'Enter fullscreen',
|
|
82931
82967
|
children: jsxRuntimeExports.jsx(StyledFullscreenIconContainer, {
|
|
@@ -88743,20 +88779,23 @@ function usePlayerControls(_a) {
|
|
|
88743
88779
|
isSubtitlesChecked = _e[0],
|
|
88744
88780
|
setIsSubtitlesChecked = _e[1];
|
|
88745
88781
|
var _f = React.useState(false),
|
|
88746
|
-
|
|
88747
|
-
|
|
88782
|
+
isPiPActive = _f[0],
|
|
88783
|
+
setIsPiPActive = _f[1];
|
|
88748
88784
|
var _g = React.useState(false),
|
|
88749
|
-
|
|
88750
|
-
|
|
88785
|
+
isFullscreen = _g[0],
|
|
88786
|
+
setIsFullscreen = _g[1];
|
|
88787
|
+
var _h = React.useState(false),
|
|
88788
|
+
isControlsActive = _h[0],
|
|
88789
|
+
setIsControlsActive = _h[1];
|
|
88751
88790
|
var videoPlayerRef = React.useRef(null);
|
|
88752
88791
|
var controlRef = React.useRef(null);
|
|
88753
88792
|
var playerContainerRef = React.useRef(null);
|
|
88754
|
-
var
|
|
88755
|
-
subtitles =
|
|
88756
|
-
setSubtitles =
|
|
88757
|
-
var
|
|
88758
|
-
currentSubtitle =
|
|
88759
|
-
setCurrentSubtitle =
|
|
88793
|
+
var _j = React.useState([]),
|
|
88794
|
+
subtitles = _j[0],
|
|
88795
|
+
setSubtitles = _j[1];
|
|
88796
|
+
var _k = React.useState(''),
|
|
88797
|
+
currentSubtitle = _k[0],
|
|
88798
|
+
setCurrentSubtitle = _k[1];
|
|
88760
88799
|
var lastSubtitleIndexRef = React.useRef(null);
|
|
88761
88800
|
var lastPlaybackTimeRef = React.useRef(0);
|
|
88762
88801
|
var lastCallTimeRef = React.useRef(Date.now());
|
|
@@ -88787,9 +88826,16 @@ function usePlayerControls(_a) {
|
|
|
88787
88826
|
var handleFullscreenChange = function handleFullscreenChange() {
|
|
88788
88827
|
setIsFullscreen(!!document.fullscreenElement);
|
|
88789
88828
|
};
|
|
88829
|
+
var handlePiPChange = function handlePiPChange() {
|
|
88830
|
+
setIsPiPActive(!!document.pictureInPictureElement);
|
|
88831
|
+
};
|
|
88790
88832
|
document.addEventListener('fullscreenchange', handleFullscreenChange);
|
|
88833
|
+
document.addEventListener('enterpictureinpicture', handlePiPChange);
|
|
88834
|
+
document.addEventListener('leavepictureinpicture', handlePiPChange);
|
|
88791
88835
|
return function () {
|
|
88792
88836
|
document.removeEventListener('fullscreenchange', handleFullscreenChange);
|
|
88837
|
+
document.removeEventListener('enterpictureinpicture', handlePiPChange);
|
|
88838
|
+
document.removeEventListener('leavepictureinpicture', handlePiPChange);
|
|
88793
88839
|
};
|
|
88794
88840
|
}, []);
|
|
88795
88841
|
React.useEffect(function () {
|
|
@@ -88979,6 +89025,22 @@ function usePlayerControls(_a) {
|
|
|
88979
89025
|
playerContainer.requestFullscreen()["catch"](console.error);
|
|
88980
89026
|
}
|
|
88981
89027
|
};
|
|
89028
|
+
var handlePictureInPicture = function handlePictureInPicture() {
|
|
89029
|
+
var _a;
|
|
89030
|
+
var videoElement = (_a = videoPlayerRef.current) === null || _a === void 0 ? void 0 : _a.getInternalPlayer();
|
|
89031
|
+
if (!videoElement || !(videoElement instanceof HTMLVideoElement)) {
|
|
89032
|
+
return;
|
|
89033
|
+
}
|
|
89034
|
+
if (!document.pictureInPictureEnabled) {
|
|
89035
|
+
console.warn('Picture-in-Picture is not supported in this browser');
|
|
89036
|
+
return;
|
|
89037
|
+
}
|
|
89038
|
+
if (document.pictureInPictureElement) {
|
|
89039
|
+
document.exitPictureInPicture()["catch"](console.error);
|
|
89040
|
+
} else {
|
|
89041
|
+
videoElement.requestPictureInPicture()["catch"](console.error);
|
|
89042
|
+
}
|
|
89043
|
+
};
|
|
88982
89044
|
var handleKeyDown = React.useCallback(function (event) {
|
|
88983
89045
|
if ('code' in event) {
|
|
88984
89046
|
switch (event.code) {
|
|
@@ -89045,6 +89107,7 @@ function usePlayerControls(_a) {
|
|
|
89045
89107
|
playerContainerRef: playerContainerRef,
|
|
89046
89108
|
playPauseHandler: playPauseHandler,
|
|
89047
89109
|
handleFullScreen: handleFullScreen,
|
|
89110
|
+
handlePictureInPicture: handlePictureInPicture,
|
|
89048
89111
|
videoPlayerRef: videoPlayerRef,
|
|
89049
89112
|
volume: volume,
|
|
89050
89113
|
muted: muted,
|
|
@@ -89068,6 +89131,7 @@ function usePlayerControls(_a) {
|
|
|
89068
89131
|
isSubtitlesChecked: isSubtitlesChecked,
|
|
89069
89132
|
toggleSubtitlesCheck: toggleSubtitlesCheck,
|
|
89070
89133
|
isFullscreen: isFullscreen,
|
|
89134
|
+
isPiPActive: isPiPActive,
|
|
89071
89135
|
isControlsActive: isControlsActive,
|
|
89072
89136
|
currentSubtitle: currentSubtitle,
|
|
89073
89137
|
setCurrentSubtitle: setCurrentSubtitle,
|
|
@@ -89180,9 +89244,11 @@ var VideoPlayer = function VideoPlayer(_a) {
|
|
|
89180
89244
|
showDownload = _a.showDownload,
|
|
89181
89245
|
downloadUrl = _a.downloadUrl,
|
|
89182
89246
|
downloadFileName = _a.downloadFileName,
|
|
89183
|
-
onDownload = _a.onDownload
|
|
89247
|
+
onDownload = _a.onDownload,
|
|
89248
|
+
_j = _a.showPictureInPicture,
|
|
89249
|
+
showPictureInPicture = _j === void 0 ? true : _j;
|
|
89184
89250
|
var videoRef = React.useRef(null);
|
|
89185
|
-
var
|
|
89251
|
+
var _k = usePlayerControls({
|
|
89186
89252
|
startTime: startTime,
|
|
89187
89253
|
setLoading: setLoading,
|
|
89188
89254
|
handleTrackProgress: handleTrackProgress,
|
|
@@ -89192,37 +89258,39 @@ var VideoPlayer = function VideoPlayer(_a) {
|
|
|
89192
89258
|
setIsPlaying: setIsPlaying,
|
|
89193
89259
|
shouldPlayerBeFocusedOnSpaceClick: shouldPlayerBeFocusedOnSpaceClick
|
|
89194
89260
|
}),
|
|
89195
|
-
mouseMoveHandler =
|
|
89196
|
-
playerContainerRef =
|
|
89197
|
-
playPauseHandler =
|
|
89198
|
-
handleFullScreen =
|
|
89199
|
-
|
|
89200
|
-
|
|
89201
|
-
|
|
89202
|
-
|
|
89203
|
-
|
|
89204
|
-
|
|
89205
|
-
|
|
89206
|
-
|
|
89207
|
-
|
|
89208
|
-
|
|
89209
|
-
|
|
89210
|
-
|
|
89211
|
-
|
|
89212
|
-
|
|
89213
|
-
|
|
89214
|
-
|
|
89215
|
-
|
|
89216
|
-
|
|
89217
|
-
|
|
89218
|
-
|
|
89219
|
-
|
|
89220
|
-
|
|
89221
|
-
|
|
89222
|
-
|
|
89223
|
-
|
|
89224
|
-
|
|
89225
|
-
|
|
89261
|
+
mouseMoveHandler = _k.mouseMoveHandler,
|
|
89262
|
+
playerContainerRef = _k.playerContainerRef,
|
|
89263
|
+
playPauseHandler = _k.playPauseHandler,
|
|
89264
|
+
handleFullScreen = _k.handleFullScreen,
|
|
89265
|
+
handlePictureInPicture = _k.handlePictureInPicture,
|
|
89266
|
+
videoPlayerRef = _k.videoPlayerRef,
|
|
89267
|
+
playing = _k.playing,
|
|
89268
|
+
volume = _k.volume,
|
|
89269
|
+
muted = _k.muted,
|
|
89270
|
+
progressHandler = _k.progressHandler,
|
|
89271
|
+
bufferStartHandler = _k.bufferStartHandler,
|
|
89272
|
+
bufferEndHandler = _k.bufferEndHandler,
|
|
89273
|
+
onPlayerStart = _k.onPlayerStart,
|
|
89274
|
+
setVideoState = _k.setVideoState,
|
|
89275
|
+
playbackRate = _k.playbackRate,
|
|
89276
|
+
controlRef = _k.controlRef,
|
|
89277
|
+
rewindHandler = _k.rewindHandler,
|
|
89278
|
+
handleFastForward = _k.handleFastForward,
|
|
89279
|
+
formatCurrentTime = _k.formatCurrentTime,
|
|
89280
|
+
played = _k.played,
|
|
89281
|
+
onSeekMouseDownHandler = _k.onSeekMouseDownHandler,
|
|
89282
|
+
seekHandler = _k.seekHandler,
|
|
89283
|
+
seekMouseUpHandler = _k.seekMouseUpHandler,
|
|
89284
|
+
muteHandler = _k.muteHandler,
|
|
89285
|
+
volumeChangeHandler = _k.volumeChangeHandler,
|
|
89286
|
+
formatDuration = _k.formatDuration,
|
|
89287
|
+
isSubtitlesChecked = _k.isSubtitlesChecked,
|
|
89288
|
+
toggleSubtitlesCheck = _k.toggleSubtitlesCheck,
|
|
89289
|
+
isFullscreen = _k.isFullscreen,
|
|
89290
|
+
isPiPActive = _k.isPiPActive,
|
|
89291
|
+
isControlsActive = _k.isControlsActive,
|
|
89292
|
+
currentSubtitle = _k.currentSubtitle,
|
|
89293
|
+
setCurrentSubtitle = _k.setCurrentSubtitle;
|
|
89226
89294
|
var setupHLSSubtitleTracking = useHLSSubtitles({
|
|
89227
89295
|
videoPlayerRef: videoPlayerRef,
|
|
89228
89296
|
isSubtitlesChecked: isSubtitlesChecked,
|
|
@@ -89321,12 +89389,14 @@ var VideoPlayer = function VideoPlayer(_a) {
|
|
|
89321
89389
|
volumeChangeHandler: volumeChangeHandler,
|
|
89322
89390
|
formatDuration: formatDuration,
|
|
89323
89391
|
handleFullScreen: handleFullScreen,
|
|
89392
|
+
handlePictureInPicture: handlePictureInPicture,
|
|
89324
89393
|
playing: playing,
|
|
89325
89394
|
isSubtitlesChecked: isSubtitlesChecked,
|
|
89326
89395
|
toggleSubtitlesCheck: toggleSubtitlesCheck,
|
|
89327
89396
|
isFavorite: isFavorite,
|
|
89328
89397
|
toggleIsFavorite: toggleFavorite,
|
|
89329
89398
|
isFullscreen: isFullscreen,
|
|
89399
|
+
isPiPActive: isPiPActive,
|
|
89330
89400
|
subtitle: !!subtitleUrl || ((_d = (_c = (_b = videoPlayerRef.current) === null || _b === void 0 ? void 0 : _b.getInternalPlayer()) === null || _c === void 0 ? void 0 : _c.textTracks) === null || _d === void 0 ? void 0 : _d.length) > 0,
|
|
89331
89401
|
handleSkipBackward: handlePreviousVideo,
|
|
89332
89402
|
handleSkipForward: handleNextVideo,
|
|
@@ -89336,7 +89406,8 @@ var VideoPlayer = function VideoPlayer(_a) {
|
|
|
89336
89406
|
showDownload: showDownload,
|
|
89337
89407
|
downloadUrl: downloadUrl,
|
|
89338
89408
|
downloadFileName: downloadFileName,
|
|
89339
|
-
onDownload: onDownload
|
|
89409
|
+
onDownload: onDownload,
|
|
89410
|
+
showPictureInPicture: showPictureInPicture
|
|
89340
89411
|
})
|
|
89341
89412
|
})]
|
|
89342
89413
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as AudioPlayer, k as Badge, h as Breadcrumb, B as Button, e as Checkbox, j as ColorPicker, o as ColumnNavigation, C as CourseCard, c as CustomSwitcher, m as CustomTooltip, d as DatePicker, u as DrawerTips, D as DropDown, G as GridActionMenu, L as Loader, N as NavigationBar, f as Pagination, P as PhoneCountryCode, R as RadioButton, v as RangeSlider, S as SearchInput, n as SplashScreen, p as StatusIndicator, s as TabNavigation, q as TabPanel, b as ThemeProvider, i as Tile, l as TooltipHeight, T as TranslationProvider, U as Uploader, V as VideoPlayer, t as activeTabClassName } from './index-
|
|
1
|
+
export { A as AudioPlayer, k as Badge, h as Breadcrumb, B as Button, e as Checkbox, j as ColorPicker, o as ColumnNavigation, C as CourseCard, c as CustomSwitcher, m as CustomTooltip, d as DatePicker, u as DrawerTips, D as DropDown, G as GridActionMenu, L as Loader, N as NavigationBar, f as Pagination, P as PhoneCountryCode, R as RadioButton, v as RangeSlider, S as SearchInput, n as SplashScreen, p as StatusIndicator, s as TabNavigation, q as TabPanel, b as ThemeProvider, i as Tile, l as TooltipHeight, T as TranslationProvider, U as Uploader, V as VideoPlayer, t as activeTabClassName } from './index-C5MULDlh.esm.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-dom';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
export var PictureInPictureIcon = function (_a) {
|
|
25
|
+
var className = _a.className, onClick = _a.onClick, props = __rest(_a, ["className", "onClick"]);
|
|
26
|
+
return (_jsx("svg", __assign({ width: '24', height: '24', viewBox: '0 0 24 24', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', className: className, onClick: onClick }, props, { children: _jsx("path", { d: 'M19 7H22V17C22 18.1 21.1 19 20 19H4C2.9 19 2 18.1 2 17V7C2 5.9 2.9 5 4 5H17V7H4V17H13V15H20V7H19ZM15 13H22V7H15V13Z', fill: 'white' }) })));
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=PictureInPicture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PictureInPicture.js","sourceRoot":"","sources":["../../src/icons/PictureInPicture.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAGA,MAAM,CAAC,IAAM,oBAAoB,GAAuB,UAAC,EAAgC;IAA9B,IAAA,SAAS,eAAA,EAAE,OAAO,aAAA,EAAK,KAAK,cAA9B,wBAAgC,CAAF;IACrF,OAAO,CACL,uBACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,EAClC,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,IACZ,KAAK,cAET,eACE,CAAC,EAAC,qHAAqH,EACvH,IAAI,EAAC,OAAO,GACZ,IACE,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -17,12 +17,14 @@ export interface ControlsProps {
|
|
|
17
17
|
volumeChangeHandler: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
18
18
|
formatDuration: string;
|
|
19
19
|
handleFullScreen: () => void;
|
|
20
|
+
handlePictureInPicture: () => void;
|
|
20
21
|
playing: boolean;
|
|
21
22
|
isSubtitlesChecked: boolean;
|
|
22
23
|
toggleSubtitlesCheck: () => void;
|
|
23
24
|
isFavorite: boolean;
|
|
24
25
|
toggleIsFavorite: () => Promise<void>;
|
|
25
26
|
isFullscreen: boolean;
|
|
27
|
+
isPiPActive: boolean;
|
|
26
28
|
subtitle?: boolean;
|
|
27
29
|
handleSkipBackward?: () => void;
|
|
28
30
|
handleSkipForward?: () => void;
|
|
@@ -33,4 +35,5 @@ export interface ControlsProps {
|
|
|
33
35
|
downloadUrl?: string;
|
|
34
36
|
downloadFileName?: string;
|
|
35
37
|
onDownload?: () => void;
|
|
38
|
+
showPictureInPicture?: boolean;
|
|
36
39
|
}
|
|
@@ -12,6 +12,7 @@ export declare const StyledHeartIconContainer: import("styled-components/dist/ty
|
|
|
12
12
|
export declare const StyledDownloadIconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
13
|
export declare const StyledSubtitlesIconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
14
|
export declare const StyledFullscreenIconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
15
|
+
export declare const StyledPictureInPictureIconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
15
16
|
export declare const StyledVolumeIconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
16
17
|
export declare const StyledPlayPauseIconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
17
18
|
export declare const StyledRewindIconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { PlayerProps } from './Player.interface';
|
|
3
|
-
export declare const VideoPlayer: ({ customStyles, startTime, loading, setLoading, handleTrackProgress, url, subtitle: subtitleUrl, handleNextVideo, handlePreviousVideo, isNextVideo, isPreviousVideo, isPlaying, setIsPlaying, shouldPlayerBeFocusedOnSpaceClick, showFavorite, isFavorite, toggleFavorite, showDownload, downloadUrl, downloadFileName, onDownload, }: PlayerProps) => ReactElement;
|
|
3
|
+
export declare const VideoPlayer: ({ customStyles, startTime, loading, setLoading, handleTrackProgress, url, subtitle: subtitleUrl, handleNextVideo, handlePreviousVideo, isNextVideo, isPreviousVideo, isPlaying, setIsPlaying, shouldPlayerBeFocusedOnSpaceClick, showFavorite, isFavorite, toggleFavorite, showDownload, downloadUrl, downloadFileName, onDownload, showPictureInPicture, }: PlayerProps) => ReactElement;
|
|
4
4
|
export default VideoPlayer;
|