suada-components 1.18.1 → 1.19.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/{DailyMotion-CltB9Fwx.esm.js → DailyMotion-D5nJd4-h.esm.js} +1 -1
- package/dist/{DailyMotion-CU-mEwwt.js → DailyMotion-JJZTLKZr.js} +1 -1
- package/dist/{components/Facebook-D96yZ-Wv.js → Facebook-Bqs-EC0v.js} +1 -1
- package/dist/{components/Facebook-DDWWEbeK.esm.js → Facebook-DdpU_xoN.esm.js} +1 -1
- package/dist/{FilePlayer-BkFHURpZ.js → FilePlayer-C2SGGIRk.js} +1 -1
- package/dist/{FilePlayer-15mK_T2y.esm.js → FilePlayer-DTsXbfI5.esm.js} +1 -1
- package/dist/{Kaltura-CZC5JjxC.js → Kaltura-Cxsyz4Em.js} +1 -1
- package/dist/{components/Kaltura-Btn1U8Zf.esm.js → Kaltura-DnMB2Npt.esm.js} +1 -1
- package/dist/{components/Mixcloud-BlY20QI9.js → Mixcloud-42bjMwaY.js} +1 -1
- package/dist/{Mixcloud-C2W41_xU.esm.js → Mixcloud-DFaEcVq9.esm.js} +1 -1
- package/dist/{components/Mux-BU7bD4pe.esm.js → Mux-Be62rZ8-.esm.js} +1 -1
- package/dist/{Mux-B7VqwEAU.js → Mux-C7RaB2cz.js} +1 -1
- package/dist/{components/Preview-DsGgU4H5.esm.js → Preview-36d_9JnR.esm.js} +1 -1
- package/dist/{Preview-D7VLiRWL.js → Preview-CAl1o0Ma.js} +1 -1
- package/dist/{SoundCloud-BuJ6yNTP.esm.js → SoundCloud-B4t1f0lx.esm.js} +1 -1
- package/dist/{SoundCloud-CczyZgu_.js → SoundCloud-CvjcvRjV.js} +1 -1
- package/dist/{Streamable-D4JFFtoC.js → Streamable-BZdE_Ndt.js} +1 -1
- package/dist/{components/Streamable-B602PXxI.esm.js → Streamable-Bsg5L0hH.esm.js} +1 -1
- package/dist/{components/Twitch-BHVmZejB.js → Twitch-B8zoaHTL.js} +1 -1
- package/dist/{Twitch-DvrY7N_t.esm.js → Twitch-CdTP1X8w.esm.js} +1 -1
- package/dist/{components/Vidyard-CN_G9dre.esm.js → Vidyard-CTZhlDW6.esm.js} +1 -1
- package/dist/{components/Vidyard-ClFsw8nL.js → Vidyard-CqnDZQKA.js} +1 -1
- package/dist/{components/Vimeo-vOGC9mBk.esm.js → Vimeo-CGGvSkX8.esm.js} +1 -1
- package/dist/{Vimeo-CFofcECV.js → Vimeo-CixUJobp.js} +1 -1
- package/dist/{components/Wistia-BNx386Rg.esm.js → Wistia-CDgLi6_R.esm.js} +1 -1
- package/dist/{Wistia-B2cvtDql.js → Wistia-D-u1TfgQ.js} +1 -1
- package/dist/{YouTube-CL56XD1_.js → YouTube-Cyj5HR5i.js} +1 -1
- package/dist/{components/YouTube-CQ70BkZw.esm.js → YouTube-yy2Uavsn.esm.js} +1 -1
- package/dist/components/{DailyMotion-Cigxd-Jz.esm.js → DailyMotion-DKW4SudL.esm.js} +1 -1
- package/dist/components/{DailyMotion-Dc8Jt5rL.js → DailyMotion-Dkh5SzZB.js} +1 -1
- package/dist/{Facebook-1PeZXckV.js → components/Facebook-DN-bnkyz.js} +1 -1
- package/dist/{Facebook-C5bsXWOw.esm.js → components/Facebook-M26lt9JS.esm.js} +1 -1
- package/dist/components/{FilePlayer-B60YEygK.js → FilePlayer-C5GjZzte.js} +1 -1
- package/dist/components/{FilePlayer-B3meC4EP.esm.js → FilePlayer-H4TaoGEM.esm.js} +1 -1
- package/dist/{Kaltura-DMRyYkly.esm.js → components/Kaltura-DNjn1mqm.esm.js} +1 -1
- package/dist/components/{Kaltura-DK-h5jtl.js → Kaltura-PL9ecbQJ.js} +1 -1
- package/dist/{Mixcloud-CobFyox1.js → components/Mixcloud-CSldoRJr.js} +1 -1
- package/dist/components/{Mixcloud-D3hCVvRi.esm.js → Mixcloud-DS8ac0Ij.esm.js} +1 -1
- package/dist/{Mux-CR4kJZz1.esm.js → components/Mux-CWPr13eU.esm.js} +1 -1
- package/dist/components/{Mux-Bp6MFxPb.js → Mux-CxwxtKLt.js} +1 -1
- package/dist/components/{Preview-Ipafps1S.js → Preview-CT0L-RXb.js} +1 -1
- package/dist/{Preview-ChyEERBP.esm.js → components/Preview-CkwYg4Oz.esm.js} +1 -1
- package/dist/components/{SoundCloud-CLTAypO_.js → SoundCloud-Dwv3cks1.js} +1 -1
- package/dist/components/{SoundCloud-Cezo6lfg.esm.js → SoundCloud-l8TzDccc.esm.js} +1 -1
- package/dist/{Streamable-CjvpmkOH.esm.js → components/Streamable-CnhiRe_a.esm.js} +1 -1
- package/dist/components/{Streamable-BYw1N66m.js → Streamable-DwBF689P.js} +1 -1
- package/dist/components/{Twitch-tLysm9DK.esm.js → Twitch-7jY4MlMf.esm.js} +1 -1
- package/dist/{Twitch-B1vASMAw.js → components/Twitch-DK5uyki4.js} +1 -1
- package/dist/components/VideoPlayer/Player.interface.d.ts +7 -0
- package/dist/components/VideoPlayer/Player.styles.d.ts +6 -0
- package/dist/{Vidyard-CZtc16q9.esm.js → components/Vidyard-B8v8rG68.esm.js} +1 -1
- package/dist/{Vidyard-s3lK5PSZ.js → components/Vidyard-D5IvvdHO.js} +1 -1
- package/dist/{Vimeo-BWyRDwE0.esm.js → components/Vimeo-CjQkQYkM.esm.js} +1 -1
- package/dist/components/{Vimeo-D3_12JJC.js → Vimeo-LECgXlVy.js} +1 -1
- package/dist/{Wistia-sSsycsJH.esm.js → components/Wistia-B1dZ0gTV.esm.js} +1 -1
- package/dist/components/{Wistia-DyxKLkXI.js → Wistia-CScMysg_.js} +1 -1
- package/dist/components/{YouTube-aCsy9GCc.js → YouTube-9I1042qH.js} +1 -1
- package/dist/{YouTube-B6EhYDWl.esm.js → components/YouTube-Ch65WX-B.esm.js} +1 -1
- package/dist/components/components/VideoPlayer/Player.interface.d.ts +7 -0
- package/dist/components/components/VideoPlayer/Player.styles.d.ts +6 -0
- package/dist/components/{index-WnDl7x-R.esm.js → index-BsssmZVQ.esm.js} +252 -77
- package/dist/components/{index-BIuwQ7Ul.js → index-FqkSI6GJ.js} +252 -77
- package/dist/components/index.esm.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/icons/components/VideoPlayer/Player.interface.d.ts +7 -0
- package/dist/icons/components/VideoPlayer/Player.styles.d.ts +6 -0
- package/dist/{index-c5_4-PQZ.js → index-CxlWr9VU.js} +252 -77
- package/dist/{index-D2OcKIp8.esm.js → index-DoYKtF1S.esm.js} +252 -77
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -29998,7 +29998,7 @@ var RecordVoiceOverOutlined$1 = createSvgIcon$1( /*#__PURE__*/require$$2$2.jsx("
|
|
|
29998
29998
|
d: "M9 13c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 8c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4m-6 4c.22-.72 3.31-2 6-2 2.7 0 5.8 1.29 6 2zM15.08 7.05c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.02 2.02-5.07 0-7.27zM20.07 2l-1.63 1.63c2.77 3.02 2.77 7.56 0 10.74L20.07 16c3.9-3.89 3.91-9.95 0-14"
|
|
29999
29999
|
}), 'RecordVoiceOverOutlined');
|
|
30000
30000
|
|
|
30001
|
-
var _templateObject$q, _templateObject2$k, _templateObject3$g, _templateObject4$d, _templateObject5$9, _templateObject6$8, _templateObject7$6, _templateObject8$6, _templateObject9$5, _templateObject10$4, _templateObject11$4, _templateObject12$4, _templateObject13$3, _templateObject14$
|
|
30001
|
+
var _templateObject$q, _templateObject2$k, _templateObject3$g, _templateObject4$d, _templateObject5$9, _templateObject6$8, _templateObject7$6, _templateObject8$6, _templateObject9$5, _templateObject10$4, _templateObject11$4, _templateObject12$4, _templateObject13$3, _templateObject14$3, _templateObject15$3, _templateObject16$3, _templateObject17$3, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23$1, _templateObject24$1, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32;
|
|
30002
30002
|
// CourseLayout
|
|
30003
30003
|
dt.span(_templateObject$q || (_templateObject$q = _taggedTemplateLiteral$1([""])));
|
|
30004
30004
|
var GridItemContentHeader = dt.header(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteral$1(["\n display: flex;\n justify-content: space-between;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
@@ -30031,10 +30031,10 @@ var CourseStatusContainer = dt.div(_templateObject13$3 || (_templateObject13$3 =
|
|
|
30031
30031
|
var $status = _ref6.$status;
|
|
30032
30032
|
return !$status ? '#EA382A' : '#00905E';
|
|
30033
30033
|
});
|
|
30034
|
-
dt.div(_templateObject14$
|
|
30035
|
-
var TooltipContent = dt.div(_templateObject15$
|
|
30036
|
-
var StyledCardBottomContainer = dt.div(_templateObject16$
|
|
30037
|
-
var StyledActionsContainer = dt.div(_templateObject17$
|
|
30034
|
+
dt.div(_templateObject14$3 || (_templateObject14$3 = _taggedTemplateLiteral$1(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n div {\n font-size: 13px;\n }\n"])));
|
|
30035
|
+
var TooltipContent = dt.div(_templateObject15$3 || (_templateObject15$3 = _taggedTemplateLiteral$1(["\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"])));
|
|
30036
|
+
var StyledCardBottomContainer = dt.div(_templateObject16$3 || (_templateObject16$3 = _taggedTemplateLiteral$1(["\n display: flex;\n width: 100%;\n flex-direction: column !important;\n align-self: flex-end;\n gap: 10px;\n padding-bottom: 10px;\n"])));
|
|
30037
|
+
var StyledActionsContainer = dt.div(_templateObject17$3 || (_templateObject17$3 = _taggedTemplateLiteral$1(["\n display: flex;\n flex-direction: row !important;\n width: 100%;\n"])));
|
|
30038
30038
|
var StyledActionItem = dt.span(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteral$1(["\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 (_ref7) {
|
|
30039
30039
|
var disabled = _ref7.disabled;
|
|
30040
30040
|
return disabled ? 'default' : 'pointer';
|
|
@@ -40677,7 +40677,7 @@ function requireCancel () {
|
|
|
40677
40677
|
var CancelExports = /*@__PURE__*/ requireCancel();
|
|
40678
40678
|
var CancelIcon = /*@__PURE__*/getDefaultExportFromCjs(CancelExports);
|
|
40679
40679
|
|
|
40680
|
-
var _templateObject$k, _templateObject2$f, _templateObject3$b, _templateObject4$8, _templateObject5$7, _templateObject6$6, _templateObject7$4, _templateObject8$4, _templateObject9$3, _templateObject10$3, _templateObject11$3, _templateObject12$3, _templateObject13$2, _templateObject14$
|
|
40680
|
+
var _templateObject$k, _templateObject2$f, _templateObject3$b, _templateObject4$8, _templateObject5$7, _templateObject6$6, _templateObject7$4, _templateObject8$4, _templateObject9$3, _templateObject10$3, _templateObject11$3, _templateObject12$3, _templateObject13$2, _templateObject14$2, _templateObject15$2, _templateObject16$2, _templateObject17$2, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24;
|
|
40681
40681
|
dt.div(_templateObject$k || (_templateObject$k = _taggedTemplateLiteral$1(["\n position: relative;\n cursor: pointer;\n overflow: hidden;\n padding: 10px;\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-radius: 4px;\n height: 100%;\n transition: border 0.2s ease;\n\n .image_wrapper {\n position: relative;\n padding-top: 10px;\n width: 100px;\n height: 100px;\n border-radius: 4px;\n svg {\n position: absolute;\n right: -11px;\n top: 0px;\n }\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n\n .video_wrapper {\n padding: 5px 10px;\n background: #eee;\n margin-top: 10px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n svg {\n color: red;\n }\n }\n\n .file_wrapper {\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n svg {\n font-size: 20px;\n color: red;\n margin-left: 10px;\n }\n }\n\n label {\n cursor: pointer;\n display: flex;\n .MuiSvgIcon-fontSizeLarge {\n font-size: 5.1875rem;\n }\n\n svg {\n transform: scale(0.8);\n transition: transform 0.2s ease;\n }\n }\n input {\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n\n &.full {\n display: flex;\n align-items: center;\n justify-content: center;\n\n header {\n margin-right: 15px;\n }\n\n label {\n align-items: center;\n justify-content: center;\n width: 100%;\n }\n\n label svg {\n transform: scale(1);\n }\n }\n\n &.uploaded {\n border: 1px solid rgba(0, 0, 0, 0.3);\n\n header {\n color: rgba(0, 0, 0, 0.74);\n }\n\n label svg {\n transform: scale(1);\n }\n }\n"])));
|
|
40682
40682
|
dt.div(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteral$1(["\n position: absolute;\n z-index: 2;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n border-radius: 4px;\n"])));
|
|
40683
40683
|
dt.div(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteral$1(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n padding: 0 30px;\n > div {\n width: 100%;\n text-align: center;\n }\n"])));
|
|
@@ -40698,9 +40698,9 @@ var CancelButton = dt.div(_templateObject11$3 || (_templateObject11$3 = _taggedT
|
|
|
40698
40698
|
});
|
|
40699
40699
|
var InputFileContainer = dt.div(_templateObject12$3 || (_templateObject12$3 = _taggedTemplateLiteral$1(["\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"])));
|
|
40700
40700
|
var UploadInput = dt.input(_templateObject13$2 || (_templateObject13$2 = _taggedTemplateLiteral$1(["\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n width: 0;\n top: 0;\n overflow: hidden;\n"])));
|
|
40701
|
-
dt.div(_templateObject14$
|
|
40702
|
-
var ImagePlaceholder = dt.div(_templateObject15$
|
|
40703
|
-
var InputLabel = dt.label(_templateObject16$
|
|
40701
|
+
dt.div(_templateObject14$2 || (_templateObject14$2 = _taggedTemplateLiteral$1(["\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"])));
|
|
40702
|
+
var ImagePlaceholder = dt.div(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteral$1(["\n img {\n position: relative;\n width: 72px;\n height: 48px;\n border-radius: 4px;\n padding: 4px;\n top: 2px;\n }\n"])));
|
|
40703
|
+
var InputLabel = dt.label(_templateObject16$2 || (_templateObject16$2 = _taggedTemplateLiteral$1(["\n cursor: pointer;\n color: #fff;\n background: ", ";\n font-size: 11px;\n padding: 9px 6px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n"])), function (_ref3) {
|
|
40704
40704
|
var theme = _ref3.theme;
|
|
40705
40705
|
var _a;
|
|
40706
40706
|
var primaryColor = (_a = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _a === void 0 ? void 0 : _a.primary;
|
|
@@ -40709,7 +40709,7 @@ var InputLabel = dt.label(_templateObject16$1 || (_templateObject16$1 = _taggedT
|
|
|
40709
40709
|
return 'var(--primary-color, #06c68f)';
|
|
40710
40710
|
});
|
|
40711
40711
|
// UploaderButton
|
|
40712
|
-
dt.label(_templateObject17$
|
|
40712
|
+
dt.label(_templateObject17$2 || (_templateObject17$2 = _taggedTemplateLiteral$1(["\n cursor: pointer;\n color: #fff;\n background: ", ";\n font-size: 11px;\n padding: 4px 6px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n"])), function (_ref4) {
|
|
40713
40713
|
var theme = _ref4.theme;
|
|
40714
40714
|
var _a;
|
|
40715
40715
|
var primaryColor = (_a = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _a === void 0 ? void 0 : _a.primary;
|
|
@@ -76987,7 +76987,7 @@ function requirePlayers () {
|
|
|
76987
76987
|
canPlay: import_patterns.canPlay.youtube,
|
|
76988
76988
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
76989
76989
|
/* webpackChunkName: 'reactPlayerYouTube' */
|
|
76990
|
-
'./YouTube-
|
|
76990
|
+
'./YouTube-Cyj5HR5i.js'
|
|
76991
76991
|
); }).then(function (n) { return n.YouTube; }))
|
|
76992
76992
|
},
|
|
76993
76993
|
{
|
|
@@ -76996,7 +76996,7 @@ function requirePlayers () {
|
|
|
76996
76996
|
canPlay: import_patterns.canPlay.soundcloud,
|
|
76997
76997
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
76998
76998
|
/* webpackChunkName: 'reactPlayerSoundCloud' */
|
|
76999
|
-
'./SoundCloud-
|
|
76999
|
+
'./SoundCloud-CvjcvRjV.js'
|
|
77000
77000
|
); }).then(function (n) { return n.SoundCloud; }))
|
|
77001
77001
|
},
|
|
77002
77002
|
{
|
|
@@ -77005,7 +77005,7 @@ function requirePlayers () {
|
|
|
77005
77005
|
canPlay: import_patterns.canPlay.vimeo,
|
|
77006
77006
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77007
77007
|
/* webpackChunkName: 'reactPlayerVimeo' */
|
|
77008
|
-
'./Vimeo-
|
|
77008
|
+
'./Vimeo-CixUJobp.js'
|
|
77009
77009
|
); }).then(function (n) { return n.Vimeo; }))
|
|
77010
77010
|
},
|
|
77011
77011
|
{
|
|
@@ -77014,7 +77014,7 @@ function requirePlayers () {
|
|
|
77014
77014
|
canPlay: import_patterns.canPlay.mux,
|
|
77015
77015
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77016
77016
|
/* webpackChunkName: 'reactPlayerMux' */
|
|
77017
|
-
'./Mux-
|
|
77017
|
+
'./Mux-C7RaB2cz.js'
|
|
77018
77018
|
); }).then(function (n) { return n.Mux; }))
|
|
77019
77019
|
},
|
|
77020
77020
|
{
|
|
@@ -77023,7 +77023,7 @@ function requirePlayers () {
|
|
|
77023
77023
|
canPlay: import_patterns.canPlay.facebook,
|
|
77024
77024
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77025
77025
|
/* webpackChunkName: 'reactPlayerFacebook' */
|
|
77026
|
-
'./Facebook-
|
|
77026
|
+
'./Facebook-Bqs-EC0v.js'
|
|
77027
77027
|
); }).then(function (n) { return n.Facebook; }))
|
|
77028
77028
|
},
|
|
77029
77029
|
{
|
|
@@ -77032,7 +77032,7 @@ function requirePlayers () {
|
|
|
77032
77032
|
canPlay: import_patterns.canPlay.streamable,
|
|
77033
77033
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77034
77034
|
/* webpackChunkName: 'reactPlayerStreamable' */
|
|
77035
|
-
'./Streamable-
|
|
77035
|
+
'./Streamable-BZdE_Ndt.js'
|
|
77036
77036
|
); }).then(function (n) { return n.Streamable; }))
|
|
77037
77037
|
},
|
|
77038
77038
|
{
|
|
@@ -77041,7 +77041,7 @@ function requirePlayers () {
|
|
|
77041
77041
|
canPlay: import_patterns.canPlay.wistia,
|
|
77042
77042
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77043
77043
|
/* webpackChunkName: 'reactPlayerWistia' */
|
|
77044
|
-
'./Wistia-
|
|
77044
|
+
'./Wistia-D-u1TfgQ.js'
|
|
77045
77045
|
); }).then(function (n) { return n.Wistia; }))
|
|
77046
77046
|
},
|
|
77047
77047
|
{
|
|
@@ -77050,7 +77050,7 @@ function requirePlayers () {
|
|
|
77050
77050
|
canPlay: import_patterns.canPlay.twitch,
|
|
77051
77051
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77052
77052
|
/* webpackChunkName: 'reactPlayerTwitch' */
|
|
77053
|
-
'./Twitch-
|
|
77053
|
+
'./Twitch-B8zoaHTL.js'
|
|
77054
77054
|
); }).then(function (n) { return n.Twitch; }))
|
|
77055
77055
|
},
|
|
77056
77056
|
{
|
|
@@ -77059,7 +77059,7 @@ function requirePlayers () {
|
|
|
77059
77059
|
canPlay: import_patterns.canPlay.dailymotion,
|
|
77060
77060
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77061
77061
|
/* webpackChunkName: 'reactPlayerDailyMotion' */
|
|
77062
|
-
'./DailyMotion-
|
|
77062
|
+
'./DailyMotion-JJZTLKZr.js'
|
|
77063
77063
|
); }).then(function (n) { return n.DailyMotion; }))
|
|
77064
77064
|
},
|
|
77065
77065
|
{
|
|
@@ -77068,7 +77068,7 @@ function requirePlayers () {
|
|
|
77068
77068
|
canPlay: import_patterns.canPlay.mixcloud,
|
|
77069
77069
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77070
77070
|
/* webpackChunkName: 'reactPlayerMixcloud' */
|
|
77071
|
-
'./Mixcloud-
|
|
77071
|
+
'./Mixcloud-42bjMwaY.js'
|
|
77072
77072
|
); }).then(function (n) { return n.Mixcloud; }))
|
|
77073
77073
|
},
|
|
77074
77074
|
{
|
|
@@ -77077,7 +77077,7 @@ function requirePlayers () {
|
|
|
77077
77077
|
canPlay: import_patterns.canPlay.vidyard,
|
|
77078
77078
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77079
77079
|
/* webpackChunkName: 'reactPlayerVidyard' */
|
|
77080
|
-
'./Vidyard-
|
|
77080
|
+
'./Vidyard-CqnDZQKA.js'
|
|
77081
77081
|
); }).then(function (n) { return n.Vidyard; }))
|
|
77082
77082
|
},
|
|
77083
77083
|
{
|
|
@@ -77086,7 +77086,7 @@ function requirePlayers () {
|
|
|
77086
77086
|
canPlay: import_patterns.canPlay.kaltura,
|
|
77087
77087
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77088
77088
|
/* webpackChunkName: 'reactPlayerKaltura' */
|
|
77089
|
-
'./Kaltura-
|
|
77089
|
+
'./Kaltura-Cxsyz4Em.js'
|
|
77090
77090
|
); }).then(function (n) { return n.Kaltura; }))
|
|
77091
77091
|
},
|
|
77092
77092
|
{
|
|
@@ -77098,7 +77098,7 @@ function requirePlayers () {
|
|
|
77098
77098
|
},
|
|
77099
77099
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77100
77100
|
/* webpackChunkName: 'reactPlayerFilePlayer' */
|
|
77101
|
-
'./FilePlayer-
|
|
77101
|
+
'./FilePlayer-C2SGGIRk.js'
|
|
77102
77102
|
); }).then(function (n) { return n.FilePlayer; }))
|
|
77103
77103
|
}
|
|
77104
77104
|
];
|
|
@@ -77919,7 +77919,7 @@ function requireReactPlayer () {
|
|
|
77919
77919
|
var import_Player = __toESM(/*@__PURE__*/ requirePlayer());
|
|
77920
77920
|
const Preview = (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
77921
77921
|
/* webpackChunkName: 'reactPlayerPreview' */
|
|
77922
|
-
'./Preview-
|
|
77922
|
+
'./Preview-CAl1o0Ma.js'
|
|
77923
77923
|
); }).then(function (n) { return n.Preview; }));
|
|
77924
77924
|
const IS_BROWSER = typeof window !== "undefined" && window.document && typeof document !== "undefined";
|
|
77925
77925
|
const IS_GLOBAL = typeof commonjsGlobal !== "undefined" && commonjsGlobal.window && commonjsGlobal.window.document;
|
|
@@ -78128,7 +78128,7 @@ function requireLib () {
|
|
|
78128
78128
|
var libExports = /*@__PURE__*/ requireLib();
|
|
78129
78129
|
var ReactPlayer = /*@__PURE__*/getDefaultExportFromCjs(libExports);
|
|
78130
78130
|
|
|
78131
|
-
var _templateObject$a, _templateObject2$8, _templateObject3$5, _templateObject4$3, _templateObject5$3, _templateObject6$3, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$2, _templateObject12$2, _templateObject13$1;
|
|
78131
|
+
var _templateObject$a, _templateObject2$8, _templateObject3$5, _templateObject4$3, _templateObject5$3, _templateObject6$3, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$2, _templateObject12$2, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1;
|
|
78132
78132
|
var StyledVideoPlayerWrapper = dt.div(_templateObject$a || (_templateObject$a = _taggedTemplateLiteral$1(["\n cursor: pointer;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n & > .react-player {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n border-radius: 8px;\n height: 50%;\n\n & > video {\n height: fit-content;\n width: 100%;\n object-fit: contain;\n border-radius: 8px;\n background-color: var(--neutral-colors-dark);\n }\n }\n"])));
|
|
78133
78133
|
var StyledWrapper = dt.div(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteral$1(["\n position: relative;\n z-index: 1;\n width: 100%;\n border-radius: 8px;\n overflow: hidden;\n\n &::before {\n content: '';\n display: block;\n padding-top: 56.25%;\n }\n\n & > ", " {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n"])), StyledVideoPlayerWrapper);
|
|
78134
78134
|
var StyledPlayerLoader = dt.div(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteral$1(["\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"])));
|
|
@@ -78139,6 +78139,19 @@ var StyledSubtitles = dt.div(_templateObject7$2 || (_templateObject7$2 = _tagged
|
|
|
78139
78139
|
var $controls = _ref.$controls;
|
|
78140
78140
|
return $controls ? '60px' : '10px';
|
|
78141
78141
|
});
|
|
78142
|
+
var StyledKeyboardIndicatorContainer = dt.div(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteral$1(["\n position: absolute;\n ", "\n z-index: 110;\n pointer-events: none;\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 88px;\n min-height: 72px;\n padding: 14px 18px;\n border-radius: 12px;\n background: rgba(2, 2, 16, 0.62);\n color: #fff;\n backdrop-filter: blur(4px);\n"])), function (_ref2) {
|
|
78143
|
+
var $position = _ref2.$position;
|
|
78144
|
+
if ($position === 'center') {
|
|
78145
|
+
return "\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n ";
|
|
78146
|
+
}
|
|
78147
|
+
if ($position === 'left') {
|
|
78148
|
+
return "\n top: 50%;\n left: 24px;\n transform: translateY(-50%);\n ";
|
|
78149
|
+
}
|
|
78150
|
+
return "\n top: 50%;\n right: 24px;\n transform: translateY(-50%);\n ";
|
|
78151
|
+
});
|
|
78152
|
+
var StyledKeyboardSeekContainer = dt.div(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteral$1(["\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 16px;\n font-weight: 700;\n line-height: 1;\n"])));
|
|
78153
|
+
var StyledKeyboardVolumeContainer = dt.div(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteral$1(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n"])));
|
|
78154
|
+
var StyledKeyboardVolumeLabel = dt.span(_templateObject11$2 || (_templateObject11$2 = _taggedTemplateLiteral$1(["\n font-size: 14px;\n font-weight: 700;\n line-height: 1;\n"])));
|
|
78142
78155
|
var HLS_SUBTITLE_STYLES = "\n /* Hide native HLS subtitles completely - comprehensive approach */\n video::cue {\n display: none !important;\n visibility: hidden !important;\n opacity: 0 !important;\n }\n \n video::-webkit-media-text-track-display {\n display: none !important;\n visibility: hidden !important;\n opacity: 0 !important;\n }\n \n video::cue-region {\n display: none !important;\n visibility: hidden !important;\n opacity: 0 !important;\n }\n \n video::-webkit-media-text-track-container {\n display: none !important;\n visibility: hidden !important;\n opacity: 0 !important;\n }\n \n /* Target ReactPlayer specifically */\n .react-player video::cue {\n display: none !important;\n visibility: hidden !important;\n opacity: 0 !important;\n }\n \n .react-player video::-webkit-media-text-track-display {\n display: none !important;\n visibility: hidden !important;\n opacity: 0 !important;\n }\n \n .react-player video::cue-region {\n display: none !important;\n visibility: hidden !important;\n opacity: 0 !important;\n }\n \n .react-player video::-webkit-media-text-track-container {\n display: none !important;\n visibility: hidden !important;\n opacity: 0 !important;\n }\n \n /* Additional selectors for different browsers */\n video::-moz-media-text-track-display {\n display: none !important;\n visibility: hidden !important;\n opacity: 0 !important;\n }\n \n video::-ms-media-text-track-display {\n display: none !important;\n visibility: hidden !important;\n opacity: 0 !important;\n }\n \n /* Hide any subtitle overlays */\n .react-player video + div[style*=\"position: absolute\"] {\n display: none !important;\n }\n \n /* Target HLS video player specifically */\n .hls-video-player::cue {\n display: none !important;\n visibility: hidden !important;\n opacity: 0 !important;\n }\n \n .hls-video-player::-webkit-media-text-track-display {\n display: none !important;\n visibility: hidden !important;\n opacity: 0 !important;\n }\n \n .hls-video-player::-webkit-media-text-track-container {\n display: none !important;\n visibility: hidden !important;\n opacity: 0 !important;\n }\n \n .hls-video-player::cue-region {\n display: none !important;\n visibility: hidden !important;\n opacity: 0 !important;\n }\n";
|
|
78143
78156
|
var injectHLSSubtitleStyles = function injectHLSSubtitleStyles() {
|
|
78144
78157
|
var addSubtitleStyles = function addSubtitleStyles() {
|
|
@@ -78161,14 +78174,14 @@ var injectHLSSubtitleStyles = function injectHLSSubtitleStyles() {
|
|
|
78161
78174
|
};
|
|
78162
78175
|
};
|
|
78163
78176
|
// Notes functionality styles
|
|
78164
|
-
var StyledNoteMarkersOverlay = dt.div(
|
|
78177
|
+
var StyledNoteMarkersOverlay = dt.div(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteral$1(["\n position: absolute;\n bottom: 45px;\n left: 5px;\n right: 5px;\n height: 6px;\n z-index: ", ";\n opacity: 0;\n transition: opacity 0.3s ease;\n pointer-events: none;\n overflow: visible;\n\n ", "\n\n ", "\n\n &.controls-visible {\n opacity: 1 !important;\n }\n"])), function (props) {
|
|
78165
78178
|
return props.$isFullscreen ? 2147483646 : 15;
|
|
78166
78179
|
}, function (props) {
|
|
78167
78180
|
return props.$isFullscreen ? "\n position: absolute;\n left: 5px;\n right: 5px;\n bottom: 42px;\n top: auto;\n height: 6px;\n z-index: 2147483646;\n width: 100%;\n opacity: 1;\n visibility: visible;\n " : '';
|
|
78168
78181
|
}, function (props) {
|
|
78169
78182
|
return !props.$isFullscreen ? "\n ".concat(StyledWrapper, ":hover & {\n opacity: 1 !important;\n }\n ") : '';
|
|
78170
78183
|
});
|
|
78171
|
-
var StyledNoteMarker = dt.div(
|
|
78184
|
+
var StyledNoteMarker = dt.div(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteral$1(["\n position: absolute;\n ", "\n left: 0;\n right: 0;\n bottom: -3px;\n width: ", ";\n height: ", ";\n background-color: #ffd700;\n border-radius: 50%;\n cursor: pointer;\n pointer-events: auto;\n border: 2px solid #fff;\n box-shadow: ", ";\n transition: all 0.2s ease;\n z-index: ", ";\n\n &:hover {\n transform: translateX(-50%) scale(1.2);\n background-color: #ffed4e;\n box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);\n }\n"])), function (props) {
|
|
78172
78185
|
return props.$isFullscreen ? "top: auto; bottom: 0; transform: translateX(-50%);" : "bottom: -3px; transform: translateX(-50%);";
|
|
78173
78186
|
}, function (props) {
|
|
78174
78187
|
return props.$isFullscreen ? '12px' : '10px';
|
|
@@ -78179,12 +78192,12 @@ var StyledNoteMarker = dt.div(_templateObject9$2 || (_templateObject9$2 = _tagge
|
|
|
78179
78192
|
}, function (props) {
|
|
78180
78193
|
return props.$isFullscreen ? 2147483647 : 20;
|
|
78181
78194
|
});
|
|
78182
|
-
var StyledNoteTooltip = dt.div(
|
|
78183
|
-
var StyledNoteTime = dt.div(
|
|
78184
|
-
dt.div(
|
|
78195
|
+
var StyledNoteTooltip = dt.div(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteral$1(["\n position: absolute;\n bottom: 20px;\n left: 50%;\n transform: translateX(-50%);\n background: rgba(0, 0, 0, 0.9);\n color: white;\n padding: 8px 12px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 500;\n white-space: nowrap;\n max-width: 200px;\n text-overflow: ellipsis;\n overflow: hidden;\n pointer-events: none;\n z-index: 2147483647;\n\n &::after {\n content: '';\n position: absolute;\n top: 100%;\n left: 50%;\n transform: translateX(-50%);\n border: 4px solid transparent;\n border-top-color: rgba(0, 0, 0, 0.9);\n }\n"])));
|
|
78196
|
+
var StyledNoteTime = dt.div(_templateObject15$1 || (_templateObject15$1 = _taggedTemplateLiteral$1(["\n font-size: 10px;\n opacity: 0.8;\n margin-top: 2px;\n"])));
|
|
78197
|
+
dt.div(_templateObject16$1 || (_templateObject16$1 = _taggedTemplateLiteral$1(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: ", ";\n pointer-events: none;\n"])), function (props) {
|
|
78185
78198
|
return props.$isFullscreen ? 2147483646 : 999;
|
|
78186
78199
|
});
|
|
78187
|
-
var StyledNoteModal = dt.div(
|
|
78200
|
+
var StyledNoteModal = dt.div(_templateObject17$1 || (_templateObject17$1 = _taggedTemplateLiteral$1(["\n position: absolute;\n bottom: 70px;\n background: white;\n border-radius: 16px;\n box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);\n border: 1px solid #e2e8f0;\n z-index: ", ";\n width: 320px;\n height: 270px;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n pointer-events: auto;\n\n ", "\n\n &::after,\n &::before {\n content: '';\n position: absolute;\n top: 100%;\n transform: translateX(-50%);\n border: 8px solid transparent;\n }\n\n &::after {\n border-top-color: white;\n z-index: 2;\n }\n\n &::before {\n border-top-color: #e2e8f0;\n z-index: 1;\n margin-top: 1px;\n }\n"])), function (props) {
|
|
78188
78201
|
return props.$isFullscreen ? 2147483647 : 1000;
|
|
78189
78202
|
}, function (props) {
|
|
78190
78203
|
var position = props.$position || 50;
|
|
@@ -84815,9 +84828,14 @@ function usePlayerControls(_ref) {
|
|
|
84815
84828
|
_useState14 = _slicedToArray$1(_useState13, 2),
|
|
84816
84829
|
currentSubtitle = _useState14[0],
|
|
84817
84830
|
setCurrentSubtitle = _useState14[1];
|
|
84831
|
+
var _useState15 = React.useState(null),
|
|
84832
|
+
_useState16 = _slicedToArray$1(_useState15, 2),
|
|
84833
|
+
keyboardIndicator = _useState16[0],
|
|
84834
|
+
setKeyboardIndicator = _useState16[1];
|
|
84818
84835
|
var lastSubtitleIndexRef = React.useRef(null);
|
|
84819
84836
|
var lastPlaybackTimeRef = React.useRef(0);
|
|
84820
84837
|
var lastCallTimeRef = React.useRef(Date.now());
|
|
84838
|
+
var keyboardIndicatorTimeoutRef = React.useRef(null);
|
|
84821
84839
|
// Use PiP context instead of local state
|
|
84822
84840
|
var _usePiP = usePiP(),
|
|
84823
84841
|
isPiPActive = _usePiP.isPiPActive,
|
|
@@ -84897,6 +84915,23 @@ function usePlayerControls(_ref) {
|
|
|
84897
84915
|
React.useEffect(function () {
|
|
84898
84916
|
setStartPlayed(false);
|
|
84899
84917
|
}, [url]);
|
|
84918
|
+
React.useEffect(function () {
|
|
84919
|
+
var _a;
|
|
84920
|
+
var activeElement = document.activeElement;
|
|
84921
|
+
var isEditableTarget = activeElement instanceof HTMLInputElement || activeElement instanceof HTMLTextAreaElement || activeElement instanceof HTMLElement && activeElement.isContentEditable;
|
|
84922
|
+
if (!isEditableTarget) {
|
|
84923
|
+
(_a = playerContainerRef.current) === null || _a === void 0 ? void 0 : _a.focus({
|
|
84924
|
+
preventScroll: true
|
|
84925
|
+
});
|
|
84926
|
+
}
|
|
84927
|
+
}, [url]);
|
|
84928
|
+
React.useEffect(function () {
|
|
84929
|
+
return function () {
|
|
84930
|
+
if (keyboardIndicatorTimeoutRef.current) {
|
|
84931
|
+
window.clearTimeout(keyboardIndicatorTimeoutRef.current);
|
|
84932
|
+
}
|
|
84933
|
+
};
|
|
84934
|
+
}, []);
|
|
84900
84935
|
// Cleanup effect to handle component unmounting while in PiP mode
|
|
84901
84936
|
React.useEffect(function () {
|
|
84902
84937
|
var currentVideoPlayerRef = videoPlayerRef.current;
|
|
@@ -85158,21 +85193,51 @@ function usePlayerControls(_ref) {
|
|
|
85158
85193
|
enterPiP(videoElement, pipVideoState);
|
|
85159
85194
|
}
|
|
85160
85195
|
};
|
|
85196
|
+
var showKeyboardIndicator = React.useCallback(function (indicator) {
|
|
85197
|
+
setKeyboardIndicator(indicator);
|
|
85198
|
+
if (keyboardIndicatorTimeoutRef.current) {
|
|
85199
|
+
window.clearTimeout(keyboardIndicatorTimeoutRef.current);
|
|
85200
|
+
}
|
|
85201
|
+
keyboardIndicatorTimeoutRef.current = window.setTimeout(function () {
|
|
85202
|
+
setKeyboardIndicator(null);
|
|
85203
|
+
}, 900);
|
|
85204
|
+
}, []);
|
|
85161
85205
|
var handleKeyDown = React.useCallback(function (event) {
|
|
85162
85206
|
if ('code' in event) {
|
|
85163
85207
|
switch (event.code) {
|
|
85164
85208
|
case 'ArrowLeft':
|
|
85165
85209
|
event.preventDefault();
|
|
85166
|
-
|
|
85210
|
+
if (videoPlayerRef.current) {
|
|
85211
|
+
var current = videoPlayerRef.current.getCurrentTime();
|
|
85212
|
+
videoPlayerRef.current.seekTo(Math.max(current - 15, 0));
|
|
85213
|
+
}
|
|
85214
|
+
showKeyboardIndicator({
|
|
85215
|
+
type: 'seek-backward',
|
|
85216
|
+
position: 'left'
|
|
85217
|
+
});
|
|
85167
85218
|
break;
|
|
85168
85219
|
case 'ArrowRight':
|
|
85169
85220
|
event.preventDefault();
|
|
85170
|
-
|
|
85221
|
+
if (videoPlayerRef.current) {
|
|
85222
|
+
var _current = videoPlayerRef.current.getCurrentTime();
|
|
85223
|
+
var _duration = videoPlayerRef.current.getDuration();
|
|
85224
|
+
var nextTime = _current + 15;
|
|
85225
|
+
videoPlayerRef.current.seekTo(_duration ? Math.min(nextTime, _duration) : nextTime);
|
|
85226
|
+
}
|
|
85227
|
+
showKeyboardIndicator({
|
|
85228
|
+
type: 'seek-forward',
|
|
85229
|
+
position: 'right'
|
|
85230
|
+
});
|
|
85171
85231
|
break;
|
|
85172
85232
|
case 'ArrowUp':
|
|
85173
85233
|
event.preventDefault();
|
|
85174
85234
|
setVideoState(function (prev) {
|
|
85175
85235
|
var newVolume = Math.min(prev.volume + 0.1, 1);
|
|
85236
|
+
showKeyboardIndicator({
|
|
85237
|
+
type: 'volume-up',
|
|
85238
|
+
position: 'center',
|
|
85239
|
+
volume: newVolume
|
|
85240
|
+
});
|
|
85176
85241
|
return _objectSpread2$1(_objectSpread2$1({}, prev), {}, {
|
|
85177
85242
|
volume: newVolume,
|
|
85178
85243
|
muted: newVolume === 0,
|
|
@@ -85184,6 +85249,11 @@ function usePlayerControls(_ref) {
|
|
|
85184
85249
|
event.preventDefault();
|
|
85185
85250
|
setVideoState(function (prev) {
|
|
85186
85251
|
var newVolume = Math.max(prev.volume - 0.1, 0);
|
|
85252
|
+
showKeyboardIndicator({
|
|
85253
|
+
type: 'volume-down',
|
|
85254
|
+
position: 'center',
|
|
85255
|
+
volume: newVolume
|
|
85256
|
+
});
|
|
85187
85257
|
return _objectSpread2$1(_objectSpread2$1({}, prev), {}, {
|
|
85188
85258
|
volume: newVolume,
|
|
85189
85259
|
muted: newVolume === 0,
|
|
@@ -85193,7 +85263,7 @@ function usePlayerControls(_ref) {
|
|
|
85193
85263
|
break;
|
|
85194
85264
|
}
|
|
85195
85265
|
}
|
|
85196
|
-
}, [
|
|
85266
|
+
}, [setVideoState, showKeyboardIndicator]);
|
|
85197
85267
|
var handleSpaceKeyDown = React.useCallback(function (event) {
|
|
85198
85268
|
if ('code' in event) {
|
|
85199
85269
|
switch (event.code) {
|
|
@@ -85252,6 +85322,7 @@ function usePlayerControls(_ref) {
|
|
|
85252
85322
|
isControlsActive: isControlsActive,
|
|
85253
85323
|
currentSubtitle: currentSubtitle,
|
|
85254
85324
|
setCurrentSubtitle: setCurrentSubtitle,
|
|
85325
|
+
keyboardIndicator: keyboardIndicator,
|
|
85255
85326
|
playing: isPlaying
|
|
85256
85327
|
};
|
|
85257
85328
|
}
|
|
@@ -85421,28 +85492,121 @@ var NoteEditModal = function NoteEditModal(_ref) {
|
|
|
85421
85492
|
|
|
85422
85493
|
var MAX_FULLSCREEN_Z_INDEX = 2147483646;
|
|
85423
85494
|
var MAX_FULLSCREEN_MARKER_Z_INDEX = 2147483647;
|
|
85424
|
-
var
|
|
85425
|
-
var
|
|
85426
|
-
_ref$
|
|
85427
|
-
|
|
85428
|
-
|
|
85429
|
-
|
|
85430
|
-
|
|
85431
|
-
|
|
85432
|
-
|
|
85433
|
-
|
|
85434
|
-
|
|
85435
|
-
|
|
85436
|
-
|
|
85437
|
-
|
|
85438
|
-
|
|
85439
|
-
|
|
85440
|
-
|
|
85441
|
-
|
|
85442
|
-
|
|
85443
|
-
|
|
85444
|
-
|
|
85445
|
-
|
|
85495
|
+
var VolumeIndicatorIcon = function VolumeIndicatorIcon(_ref) {
|
|
85496
|
+
var _ref$volume = _ref.volume,
|
|
85497
|
+
volume = _ref$volume === void 0 ? 0 : _ref$volume,
|
|
85498
|
+
isVolumeDown = _ref.isVolumeDown;
|
|
85499
|
+
var percent = Math.round(volume * 100);
|
|
85500
|
+
var waveOpacity = percent === 0 ? 0.18 : 1;
|
|
85501
|
+
return require$$2$2.jsxs("svg", {
|
|
85502
|
+
width: '44',
|
|
85503
|
+
height: '44',
|
|
85504
|
+
viewBox: '0 0 24 24',
|
|
85505
|
+
fill: 'none',
|
|
85506
|
+
"aria-hidden": true,
|
|
85507
|
+
children: [require$$2$2.jsx("path", {
|
|
85508
|
+
d: 'M3 9V15H7L12 20V4L7 9H3Z',
|
|
85509
|
+
fill: 'white'
|
|
85510
|
+
}), require$$2$2.jsx("path", {
|
|
85511
|
+
d: 'M16.5 12C16.5 10.62 15.7 9.42 14.55 8.85V15.15C15.7 14.58 16.5 13.38 16.5 12Z',
|
|
85512
|
+
fill: 'white',
|
|
85513
|
+
style: {
|
|
85514
|
+
opacity: waveOpacity
|
|
85515
|
+
}
|
|
85516
|
+
}), require$$2$2.jsx("path", {
|
|
85517
|
+
d: 'M14.5 3.23V5.29C17.39 6.15 19.5 8.83 19.5 12C19.5 15.17 17.39 17.85 14.5 18.71V20.77C18.51 19.86 21.5 16.28 21.5 12C21.5 7.72 18.51 4.14 14.5 3.23Z',
|
|
85518
|
+
fill: 'white',
|
|
85519
|
+
style: {
|
|
85520
|
+
opacity: waveOpacity
|
|
85521
|
+
}
|
|
85522
|
+
}), isVolumeDown ? require$$2$2.jsx("path", {
|
|
85523
|
+
d: 'M7 12H17',
|
|
85524
|
+
stroke: 'white',
|
|
85525
|
+
strokeWidth: '2',
|
|
85526
|
+
strokeLinecap: 'round'
|
|
85527
|
+
}) : require$$2$2.jsxs(require$$2$2.Fragment, {
|
|
85528
|
+
children: [require$$2$2.jsx("path", {
|
|
85529
|
+
d: 'M7 12H17',
|
|
85530
|
+
stroke: 'white',
|
|
85531
|
+
strokeWidth: '2',
|
|
85532
|
+
strokeLinecap: 'round'
|
|
85533
|
+
}), require$$2$2.jsx("path", {
|
|
85534
|
+
d: 'M12 7V17',
|
|
85535
|
+
stroke: 'white',
|
|
85536
|
+
strokeWidth: '2',
|
|
85537
|
+
strokeLinecap: 'round'
|
|
85538
|
+
})]
|
|
85539
|
+
})]
|
|
85540
|
+
});
|
|
85541
|
+
};
|
|
85542
|
+
var KeyboardIndicator = function KeyboardIndicator(_ref2) {
|
|
85543
|
+
var indicator = _ref2.indicator;
|
|
85544
|
+
var _a;
|
|
85545
|
+
if (!indicator) return null;
|
|
85546
|
+
return require$$2$2.jsxs(StyledKeyboardIndicatorContainer, {
|
|
85547
|
+
"$position": indicator.position,
|
|
85548
|
+
children: [(indicator.type === 'volume-up' || indicator.type === 'volume-down') && require$$2$2.jsxs(StyledKeyboardVolumeContainer, {
|
|
85549
|
+
children: [require$$2$2.jsx(VolumeIndicatorIcon, {
|
|
85550
|
+
volume: indicator.volume,
|
|
85551
|
+
isVolumeDown: indicator.type === 'volume-down'
|
|
85552
|
+
}), require$$2$2.jsxs(StyledKeyboardVolumeLabel, {
|
|
85553
|
+
children: [Math.round(((_a = indicator.volume) !== null && _a !== void 0 ? _a : 0) * 100), "%"]
|
|
85554
|
+
})]
|
|
85555
|
+
}), indicator.type === 'seek-backward' && require$$2$2.jsxs(StyledKeyboardSeekContainer, {
|
|
85556
|
+
children: [require$$2$2.jsxs("svg", {
|
|
85557
|
+
width: '34',
|
|
85558
|
+
height: '34',
|
|
85559
|
+
viewBox: '0 0 24 24',
|
|
85560
|
+
fill: 'white',
|
|
85561
|
+
"aria-hidden": true,
|
|
85562
|
+
children: [require$$2$2.jsx("path", {
|
|
85563
|
+
d: 'M15.7 6.3A1 1 0 0 1 17 7.9L12.9 12L17 16.1A1 1 0 1 1 15.6 17.5L10.8 12.7A1 1 0 0 1 10.8 11.3L15.7 6.3Z'
|
|
85564
|
+
}), require$$2$2.jsx("path", {
|
|
85565
|
+
d: 'M11.4 6.3A1 1 0 0 1 12.8 7.7L8.5 12L12.8 16.3A1 1 0 0 1 11.4 17.7L6.4 12.7A1 1 0 0 1 6.4 11.3L11.4 6.3Z'
|
|
85566
|
+
})]
|
|
85567
|
+
}), require$$2$2.jsx("span", {
|
|
85568
|
+
children: "-15s"
|
|
85569
|
+
})]
|
|
85570
|
+
}), indicator.type === 'seek-forward' && require$$2$2.jsxs(StyledKeyboardSeekContainer, {
|
|
85571
|
+
children: [require$$2$2.jsx("span", {
|
|
85572
|
+
children: "+15s"
|
|
85573
|
+
}), require$$2$2.jsxs("svg", {
|
|
85574
|
+
width: '34',
|
|
85575
|
+
height: '34',
|
|
85576
|
+
viewBox: '0 0 24 24',
|
|
85577
|
+
fill: 'white',
|
|
85578
|
+
"aria-hidden": true,
|
|
85579
|
+
children: [require$$2$2.jsx("path", {
|
|
85580
|
+
d: 'M8.3 6.3A1 1 0 0 0 7 7.9L11.1 12L7 16.1A1 1 0 1 0 8.4 17.5L13.2 12.7A1 1 0 0 0 13.2 11.3L8.3 6.3Z'
|
|
85581
|
+
}), require$$2$2.jsx("path", {
|
|
85582
|
+
d: 'M12.6 6.3A1 1 0 0 0 11.2 7.7L15.5 12L11.2 16.3A1 1 0 0 0 12.6 17.7L17.6 12.7A1 1 0 0 0 17.6 11.3L12.6 6.3Z'
|
|
85583
|
+
})]
|
|
85584
|
+
})]
|
|
85585
|
+
})]
|
|
85586
|
+
});
|
|
85587
|
+
};
|
|
85588
|
+
var VideoPlayer = function VideoPlayer(_ref3) {
|
|
85589
|
+
var customStyles = _ref3.customStyles,
|
|
85590
|
+
_ref3$startTime = _ref3.startTime,
|
|
85591
|
+
startTime = _ref3$startTime === void 0 ? 0 : _ref3$startTime,
|
|
85592
|
+
loading = _ref3.loading,
|
|
85593
|
+
setLoading = _ref3.setLoading,
|
|
85594
|
+
handleTrackProgress = _ref3.handleTrackProgress,
|
|
85595
|
+
url = _ref3.url,
|
|
85596
|
+
subtitleUrl = _ref3.subtitle,
|
|
85597
|
+
handleNextVideo = _ref3.handleNextVideo,
|
|
85598
|
+
handlePreviousVideo = _ref3.handlePreviousVideo,
|
|
85599
|
+
isNextVideo = _ref3.isNextVideo,
|
|
85600
|
+
isPreviousVideo = _ref3.isPreviousVideo,
|
|
85601
|
+
isPlaying = _ref3.isPlaying,
|
|
85602
|
+
setIsPlaying = _ref3.setIsPlaying,
|
|
85603
|
+
_ref3$shouldPlayerBeF = _ref3.shouldPlayerBeFocusedOnSpaceClick,
|
|
85604
|
+
shouldPlayerBeFocusedOnSpaceClick = _ref3$shouldPlayerBeF === void 0 ? false : _ref3$shouldPlayerBeF,
|
|
85605
|
+
showFavorite = _ref3.showFavorite,
|
|
85606
|
+
_ref3$isFavorite = _ref3.isFavorite,
|
|
85607
|
+
isFavorite = _ref3$isFavorite === void 0 ? false : _ref3$isFavorite,
|
|
85608
|
+
_ref3$toggleFavorite = _ref3.toggleFavorite,
|
|
85609
|
+
toggleFavorite = _ref3$toggleFavorite === void 0 ? /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
85446
85610
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
85447
85611
|
while (1) switch (_context.prev = _context.next) {
|
|
85448
85612
|
case 0:
|
|
@@ -85450,22 +85614,22 @@ var VideoPlayer = function VideoPlayer(_ref) {
|
|
|
85450
85614
|
return _context.stop();
|
|
85451
85615
|
}
|
|
85452
85616
|
}, _callee);
|
|
85453
|
-
})) :
|
|
85454
|
-
showDownload =
|
|
85455
|
-
downloadUrl =
|
|
85456
|
-
downloadFileName =
|
|
85457
|
-
onDownload =
|
|
85458
|
-
|
|
85459
|
-
showPictureInPicture =
|
|
85460
|
-
notes =
|
|
85461
|
-
videoDuration =
|
|
85462
|
-
onNoteClick =
|
|
85463
|
-
editingNote =
|
|
85464
|
-
onNoteEdit =
|
|
85465
|
-
onNoteSave =
|
|
85466
|
-
onNoteDelete =
|
|
85467
|
-
onNoteCancelEdit =
|
|
85468
|
-
onAddNote =
|
|
85617
|
+
})) : _ref3$toggleFavorite,
|
|
85618
|
+
showDownload = _ref3.showDownload,
|
|
85619
|
+
downloadUrl = _ref3.downloadUrl,
|
|
85620
|
+
downloadFileName = _ref3.downloadFileName,
|
|
85621
|
+
onDownload = _ref3.onDownload,
|
|
85622
|
+
_ref3$showPictureInPi = _ref3.showPictureInPicture,
|
|
85623
|
+
showPictureInPicture = _ref3$showPictureInPi === void 0 ? true : _ref3$showPictureInPi,
|
|
85624
|
+
notes = _ref3.notes,
|
|
85625
|
+
videoDuration = _ref3.videoDuration,
|
|
85626
|
+
onNoteClick = _ref3.onNoteClick,
|
|
85627
|
+
editingNote = _ref3.editingNote,
|
|
85628
|
+
onNoteEdit = _ref3.onNoteEdit,
|
|
85629
|
+
onNoteSave = _ref3.onNoteSave,
|
|
85630
|
+
onNoteDelete = _ref3.onNoteDelete,
|
|
85631
|
+
onNoteCancelEdit = _ref3.onNoteCancelEdit,
|
|
85632
|
+
onAddNote = _ref3.onAddNote;
|
|
85469
85633
|
var _a, _b, _c;
|
|
85470
85634
|
var videoRef = React.useRef(null);
|
|
85471
85635
|
var overlayRef = React.useRef(null);
|
|
@@ -85533,7 +85697,8 @@ var VideoPlayer = function VideoPlayer(_ref) {
|
|
|
85533
85697
|
isPiPActive = _usePlayerControls.isPiPActive,
|
|
85534
85698
|
isControlsActive = _usePlayerControls.isControlsActive,
|
|
85535
85699
|
currentSubtitle = _usePlayerControls.currentSubtitle,
|
|
85536
|
-
setCurrentSubtitle = _usePlayerControls.setCurrentSubtitle
|
|
85700
|
+
setCurrentSubtitle = _usePlayerControls.setCurrentSubtitle,
|
|
85701
|
+
keyboardIndicator = _usePlayerControls.keyboardIndicator;
|
|
85537
85702
|
// Initialize PiP state on component mount/URL change
|
|
85538
85703
|
React.useEffect(function () {
|
|
85539
85704
|
// Sync PiP state with actual browser state on mount and URL changes
|
|
@@ -85593,7 +85758,7 @@ var VideoPlayer = function VideoPlayer(_ref) {
|
|
|
85593
85758
|
}
|
|
85594
85759
|
}, [onNoteClick, onNoteEdit]);
|
|
85595
85760
|
var handleSaveNote = /*#__PURE__*/function () {
|
|
85596
|
-
var
|
|
85761
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
85597
85762
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
85598
85763
|
while (1) switch (_context2.prev = _context2.next) {
|
|
85599
85764
|
case 0:
|
|
@@ -85625,7 +85790,7 @@ var VideoPlayer = function VideoPlayer(_ref) {
|
|
|
85625
85790
|
}, _callee2);
|
|
85626
85791
|
}));
|
|
85627
85792
|
return function handleSaveNote() {
|
|
85628
|
-
return
|
|
85793
|
+
return _ref5.apply(this, arguments);
|
|
85629
85794
|
};
|
|
85630
85795
|
}();
|
|
85631
85796
|
var handleCancelEdit = function handleCancelEdit() {
|
|
@@ -85638,7 +85803,7 @@ var VideoPlayer = function VideoPlayer(_ref) {
|
|
|
85638
85803
|
}
|
|
85639
85804
|
};
|
|
85640
85805
|
var handleDeleteNote = /*#__PURE__*/function () {
|
|
85641
|
-
var
|
|
85806
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
85642
85807
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
85643
85808
|
while (1) switch (_context3.prev = _context3.next) {
|
|
85644
85809
|
case 0:
|
|
@@ -85663,7 +85828,7 @@ var VideoPlayer = function VideoPlayer(_ref) {
|
|
|
85663
85828
|
}, _callee3);
|
|
85664
85829
|
}));
|
|
85665
85830
|
return function handleDeleteNote() {
|
|
85666
|
-
return
|
|
85831
|
+
return _ref6.apply(this, arguments);
|
|
85667
85832
|
};
|
|
85668
85833
|
}();
|
|
85669
85834
|
// Sync editing state when external editing note changes
|
|
@@ -85795,10 +85960,18 @@ var VideoPlayer = function VideoPlayer(_ref) {
|
|
|
85795
85960
|
videoRef.current = videoElement;
|
|
85796
85961
|
}
|
|
85797
85962
|
};
|
|
85963
|
+
var handleWrapperInteraction = function handleWrapperInteraction() {
|
|
85964
|
+
var _a;
|
|
85965
|
+
(_a = playerContainerRef.current) === null || _a === void 0 ? void 0 : _a.focus({
|
|
85966
|
+
preventScroll: true
|
|
85967
|
+
});
|
|
85968
|
+
};
|
|
85798
85969
|
return require$$2$2.jsxs(StyledWrapper, {
|
|
85799
85970
|
ref: playerContainerRef,
|
|
85800
85971
|
tabIndex: 0,
|
|
85801
85972
|
onMouseMove: mouseMoveHandler,
|
|
85973
|
+
onMouseDown: handleWrapperInteraction,
|
|
85974
|
+
onTouchStart: handleWrapperInteraction,
|
|
85802
85975
|
style: customStyles,
|
|
85803
85976
|
onClick: function onClick(e) {
|
|
85804
85977
|
return e.stopPropagation();
|
|
@@ -85855,6 +86028,8 @@ var VideoPlayer = function VideoPlayer(_ref) {
|
|
|
85855
86028
|
}), isSubtitlesChecked && currentSubtitle && require$$2$2.jsx(StyledSubtitles, {
|
|
85856
86029
|
"$controls": isControlsActive,
|
|
85857
86030
|
children: currentSubtitle
|
|
86031
|
+
}), require$$2$2.jsx(KeyboardIndicator, {
|
|
86032
|
+
indicator: keyboardIndicator
|
|
85858
86033
|
})]
|
|
85859
86034
|
}), require$$2$2.jsx(StyledControlsContainer, {
|
|
85860
86035
|
ref: controlRef,
|