suada-components 1.6.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.
Files changed (66) hide show
  1. package/dist/components/{DailyMotion-Cyo9mQyt.js → DailyMotion-C2fzQqF6.js} +1 -1
  2. package/dist/components/{DailyMotion-MzOn9ju_.esm.js → DailyMotion-D6-bQSDC.esm.js} +1 -1
  3. package/dist/components/{Facebook-CJbuSY04.esm.js → Facebook-CHgu-1qk.esm.js} +1 -1
  4. package/dist/components/{Facebook-CPs-Ms_X.js → Facebook-ngwgOcwS.js} +1 -1
  5. package/dist/components/{FilePlayer-CQvxGYWG.esm.js → FilePlayer-CnFGUWCJ.esm.js} +1 -1
  6. package/dist/components/{FilePlayer-DNH6fpJi.js → FilePlayer-gXcilMCz.js} +1 -1
  7. package/dist/components/{Kaltura-UmIP8SbX.esm.js → Kaltura-BKTRnPwX.esm.js} +1 -1
  8. package/dist/components/{Kaltura-CyreQk0X.js → Kaltura-Dwtf5bDJ.js} +1 -1
  9. package/dist/components/{Mixcloud-DJ_299OT.js → Mixcloud-CtZR5d1S.js} +1 -1
  10. package/dist/components/{Mixcloud-CIGHRTPD.esm.js → Mixcloud-HlioccZN.esm.js} +1 -1
  11. package/dist/components/{Mux-CPaUZQah.esm.js → Mux-CiE-LfDW.esm.js} +1 -1
  12. package/dist/components/{Mux-BWxS553y.js → Mux-DhMGRnH7.js} +1 -1
  13. package/dist/components/{Preview-CMj6CzdF.esm.js → Preview-BDrq-vcV.esm.js} +1 -1
  14. package/dist/components/{Preview-BO_4FDai.js → Preview-DuscX4du.js} +1 -1
  15. package/dist/components/{SoundCloud-CFXXBy2Z.esm.js → SoundCloud-BG1mh5fx.esm.js} +1 -1
  16. package/dist/components/{SoundCloud-CWfPIUXj.js → SoundCloud-pcTMWQVG.js} +1 -1
  17. package/dist/components/{Streamable-DrNjqXjt.esm.js → Streamable-3QXSsimo.esm.js} +1 -1
  18. package/dist/components/{Streamable-Dqtzhuip.js → Streamable-B-2t9AZh.js} +1 -1
  19. package/dist/components/{Twitch-DjgALZAq.esm.js → Twitch-B2wmDlW8.esm.js} +1 -1
  20. package/dist/components/{Twitch-CJuQ6-kx.js → Twitch-Ccg79Yis.js} +1 -1
  21. package/dist/components/VideoPlayer/Controls/Controls.interface.d.ts +3 -0
  22. package/dist/components/VideoPlayer/Controls/Controls.js +4 -4
  23. package/dist/components/VideoPlayer/Controls/Controls.js.map +1 -1
  24. package/dist/components/VideoPlayer/Controls/Controls.styles.d.ts +1 -0
  25. package/dist/components/VideoPlayer/Controls/Controls.styles.js +5 -4
  26. package/dist/components/VideoPlayer/Controls/Controls.styles.js.map +1 -1
  27. package/dist/components/VideoPlayer/Player.d.ts +1 -1
  28. package/dist/components/VideoPlayer/Player.interface.d.ts +3 -0
  29. package/dist/components/VideoPlayer/Player.js +4 -4
  30. package/dist/components/VideoPlayer/Player.js.map +1 -1
  31. package/dist/components/VideoPlayer/VideoPlayer.stories.d.ts +1 -0
  32. package/dist/components/VideoPlayer/VideoPlayer.stories.js +11 -0
  33. package/dist/components/VideoPlayer/VideoPlayer.stories.js.map +1 -1
  34. package/dist/components/VideoPlayer/usePlayerControls.js +31 -4
  35. package/dist/components/VideoPlayer/usePlayerControls.js.map +1 -1
  36. package/dist/components/{Vidyard-BkuV0Ftd.js → Vidyard-BcZfnHmw.js} +1 -1
  37. package/dist/components/{Vidyard-M-vpaxMt.esm.js → Vidyard-stasLAXI.esm.js} +1 -1
  38. package/dist/components/{Vimeo-BCG247ek.js → Vimeo-9D0LyMV4.js} +1 -1
  39. package/dist/components/{Vimeo-0VVg6nMH.esm.js → Vimeo-U2HYvdiG.esm.js} +1 -1
  40. package/dist/components/{Wistia-D2KJJODu.js → Wistia-3LaD3aiP.js} +1 -1
  41. package/dist/components/{Wistia-CEi72MTW.esm.js → Wistia-BNvoofR9.esm.js} +1 -1
  42. package/dist/components/{YouTube-Bko04PXB.js → YouTube-CdcE3nmm.js} +1 -1
  43. package/dist/components/{YouTube-kQuElqJG.esm.js → YouTube-DJZyY4jW.esm.js} +1 -1
  44. package/dist/components/components/VideoPlayer/Controls/Controls.interface.d.ts +3 -0
  45. package/dist/components/components/VideoPlayer/Controls/Controls.styles.d.ts +1 -0
  46. package/dist/components/components/VideoPlayer/Player.d.ts +1 -1
  47. package/dist/components/components/VideoPlayer/Player.interface.d.ts +3 -0
  48. package/dist/components/icons/PictureInPicture.d.ts +3 -0
  49. package/dist/components/icons/index.d.ts +1 -0
  50. package/dist/components/{index-BYbdvIBD.esm.js → index-C5MULDlh.esm.js} +134 -67
  51. package/dist/components/{index-Cb05_mlX.js → index-Debc-Hq8.js} +134 -67
  52. package/dist/components/index.esm.js +1 -1
  53. package/dist/icons/PictureInPicture.d.ts +3 -0
  54. package/dist/icons/PictureInPicture.js +28 -0
  55. package/dist/icons/PictureInPicture.js.map +1 -0
  56. package/dist/icons/components/VideoPlayer/Controls/Controls.interface.d.ts +3 -0
  57. package/dist/icons/components/VideoPlayer/Controls/Controls.styles.d.ts +1 -0
  58. package/dist/icons/components/VideoPlayer/Player.d.ts +1 -1
  59. package/dist/icons/components/VideoPlayer/Player.interface.d.ts +3 -0
  60. package/dist/icons/icons/PictureInPicture.d.ts +3 -0
  61. package/dist/icons/icons/index.d.ts +1 -0
  62. package/dist/icons/index.d.ts +1 -0
  63. package/dist/icons/index.esm.js +21 -1
  64. package/dist/icons/index.js +1 -0
  65. package/dist/icons/index.js.map +1 -1
  66. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { r as requireUtils, a as requirePatterns, g as getDefaultExportFromCjs } from './index-BYbdvIBD.esm.js';
1
+ import { r as requireUtils, a as requirePatterns, g as getDefaultExportFromCjs } from './index-C5MULDlh.esm.js';
2
2
  import React__default from 'react';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Cb05_mlX.js');
3
+ var index = require('./index-Debc-Hq8.js');
4
4
  var React = require('react');
5
5
 
6
6
  function _mergeNamespaces(n, m) {
@@ -1,4 +1,4 @@
1
- import { r as requireUtils, a as requirePatterns, g as getDefaultExportFromCjs } from './index-BYbdvIBD.esm.js';
1
+ import { r as requireUtils, a as requirePatterns, g as getDefaultExportFromCjs } from './index-C5MULDlh.esm.js';
2
2
  import React__default from 'react';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Cb05_mlX.js');
3
+ var index = require('./index-Debc-Hq8.js');
4
4
  var React = require('react');
5
5
 
6
6
  function _mergeNamespaces(n, m) {
@@ -1,4 +1,4 @@
1
- import { r as requireUtils, a as requirePatterns, g as getDefaultExportFromCjs } from './index-BYbdvIBD.esm.js';
1
+ import { r as requireUtils, a as requirePatterns, g as getDefaultExportFromCjs } from './index-C5MULDlh.esm.js';
2
2
  import React__default from 'react';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Cb05_mlX.js');
3
+ var index = require('./index-Debc-Hq8.js');
4
4
  var React = require('react');
5
5
 
6
6
  function _mergeNamespaces(n, m) {
@@ -1,4 +1,4 @@
1
- import { r as requireUtils, a as requirePatterns, g as getDefaultExportFromCjs } from './index-BYbdvIBD.esm.js';
1
+ import { r as requireUtils, a as requirePatterns, g as getDefaultExportFromCjs } from './index-C5MULDlh.esm.js';
2
2
  import React__default from 'react';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -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;
@@ -34,6 +34,7 @@ export interface PlayerProps {
34
34
  downloadUrl?: string;
35
35
  downloadFileName?: string;
36
36
  onDownload?: () => void;
37
+ showPictureInPicture?: boolean;
37
38
  }
38
39
  export interface UsePlayerControlsProps {
39
40
  startTime?: number;
@@ -61,6 +62,8 @@ export interface UsePlayerControlsState extends Omit<ControlsProps, 'isFavorite'
61
62
  onPlayerStart: () => void;
62
63
  controlRef: RefObject<HTMLDivElement>;
63
64
  isFullscreen: boolean;
65
+ isPiPActive: boolean;
66
+ handlePictureInPicture: () => void;
64
67
  isControlsActive: boolean;
65
68
  currentSubtitle: string;
66
69
  setCurrentSubtitle: Dispatch<SetStateAction<string>>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { SvgProps } from './svgTypes.interface';
3
+ export declare const PictureInPictureIcon: React.FC<SvgProps>;
@@ -149,6 +149,7 @@ export { GetAppIcon } from './GetAppIcon';
149
149
  export { HighlightOffRoundedIcon } from './HighlightOffRoundedIcon';
150
150
  export { InsertDriveFileIcon } from './InsertDriveFileIcon';
151
151
  export { OndemandVideoIcon } from './OndemandVideoIcon';
152
+ export { PictureInPictureIcon } from './PictureInPicture';
152
153
  export { PublishIcon } from './PublishIcon';
153
154
  export { RemoveCircleIcon } from './RemoveCircleIcon';
154
155
  export { ReportProblemIcon } from './ReportProblemIcon';
@@ -32376,7 +32376,7 @@ var CourseStatusContainer = dt.div(templateObject_13$2 || (templateObject_13$2 =
32376
32376
  return !$status ? '#EA382A' : '#00905E';
32377
32377
  });
32378
32378
  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"])));
32379
- var TooltipContent = dt.div(templateObject_15$1 || (templateObject_15$1 = __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"])));
32379
+ 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"])));
32380
32380
  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"])));
32381
32381
  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"])));
32382
32382
  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) {
@@ -32426,7 +32426,7 @@ var GridItem = dt.div(templateObject_32 || (templateObject_32 = __makeTemplateOb
32426
32426
  var $isFromUser = _a.$isFromUser;
32427
32427
  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 " || '';
32428
32428
  });
32429
- 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$1, 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;
32429
+ 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;
32430
32430
 
32431
32431
  var TooltipHeight$1 = function TooltipHeight(_a) {
32432
32432
  var text = _a.text,
@@ -37508,6 +37508,26 @@ var OndemandVideoIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
37508
37508
  });
37509
37509
  OndemandVideoIcon.displayName = 'OndemandVideoIcon';
37510
37510
 
37511
+ var PictureInPictureIcon = function PictureInPictureIcon(_a) {
37512
+ var className = _a.className,
37513
+ onClick = _a.onClick,
37514
+ props = __rest(_a, ["className", "onClick"]);
37515
+ return jsxRuntimeExports.jsx("svg", __assign({
37516
+ width: '24',
37517
+ height: '24',
37518
+ viewBox: '0 0 24 24',
37519
+ fill: 'none',
37520
+ xmlns: 'http://www.w3.org/2000/svg',
37521
+ className: className,
37522
+ onClick: onClick
37523
+ }, props, {
37524
+ children: jsxRuntimeExports.jsx("path", {
37525
+ 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',
37526
+ fill: 'white'
37527
+ })
37528
+ }));
37529
+ };
37530
+
37511
37531
  var PublishIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
37512
37532
  var className = _a.className,
37513
37533
  onClick = _a.onClick,
@@ -42790,7 +42810,7 @@ var CancelButton = dt.div(templateObject_11$1 || (templateObject_11$1 = __makeTe
42790
42810
  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"])));
42791
42811
  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"])));
42792
42812
  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"])));
42793
- 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"])));
42813
+ 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"])));
42794
42814
  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"
42795
42815
  // UploaderButton
42796
42816
  ])));
@@ -42813,7 +42833,7 @@ var styles$1 = {
42813
42833
  padding: '4px'
42814
42834
  }
42815
42835
  };
42816
- 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;
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$1, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23;
42817
42837
 
42818
42838
  var ImageWithFallback = function ImageWithFallback(_a) {
42819
42839
  var src = _a.src,
@@ -81335,7 +81355,7 @@ function requirePlayers () {
81335
81355
  canPlay: import_patterns.canPlay.youtube,
81336
81356
  lazyPlayer: (0, import_utils.lazy)(() => import(
81337
81357
  /* webpackChunkName: 'reactPlayerYouTube' */
81338
- './YouTube-kQuElqJG.esm.js'
81358
+ './YouTube-DJZyY4jW.esm.js'
81339
81359
  ).then(function (n) { return n.Y; }))
81340
81360
  },
81341
81361
  {
@@ -81344,7 +81364,7 @@ function requirePlayers () {
81344
81364
  canPlay: import_patterns.canPlay.soundcloud,
81345
81365
  lazyPlayer: (0, import_utils.lazy)(() => import(
81346
81366
  /* webpackChunkName: 'reactPlayerSoundCloud' */
81347
- './SoundCloud-CFXXBy2Z.esm.js'
81367
+ './SoundCloud-BG1mh5fx.esm.js'
81348
81368
  ).then(function (n) { return n.S; }))
81349
81369
  },
81350
81370
  {
@@ -81353,7 +81373,7 @@ function requirePlayers () {
81353
81373
  canPlay: import_patterns.canPlay.vimeo,
81354
81374
  lazyPlayer: (0, import_utils.lazy)(() => import(
81355
81375
  /* webpackChunkName: 'reactPlayerVimeo' */
81356
- './Vimeo-0VVg6nMH.esm.js'
81376
+ './Vimeo-U2HYvdiG.esm.js'
81357
81377
  ).then(function (n) { return n.V; }))
81358
81378
  },
81359
81379
  {
@@ -81362,7 +81382,7 @@ function requirePlayers () {
81362
81382
  canPlay: import_patterns.canPlay.mux,
81363
81383
  lazyPlayer: (0, import_utils.lazy)(() => import(
81364
81384
  /* webpackChunkName: 'reactPlayerMux' */
81365
- './Mux-CPaUZQah.esm.js'
81385
+ './Mux-CiE-LfDW.esm.js'
81366
81386
  ).then(function (n) { return n.M; }))
81367
81387
  },
81368
81388
  {
@@ -81371,7 +81391,7 @@ function requirePlayers () {
81371
81391
  canPlay: import_patterns.canPlay.facebook,
81372
81392
  lazyPlayer: (0, import_utils.lazy)(() => import(
81373
81393
  /* webpackChunkName: 'reactPlayerFacebook' */
81374
- './Facebook-CJbuSY04.esm.js'
81394
+ './Facebook-CHgu-1qk.esm.js'
81375
81395
  ).then(function (n) { return n.F; }))
81376
81396
  },
81377
81397
  {
@@ -81380,7 +81400,7 @@ function requirePlayers () {
81380
81400
  canPlay: import_patterns.canPlay.streamable,
81381
81401
  lazyPlayer: (0, import_utils.lazy)(() => import(
81382
81402
  /* webpackChunkName: 'reactPlayerStreamable' */
81383
- './Streamable-DrNjqXjt.esm.js'
81403
+ './Streamable-3QXSsimo.esm.js'
81384
81404
  ).then(function (n) { return n.S; }))
81385
81405
  },
81386
81406
  {
@@ -81389,7 +81409,7 @@ function requirePlayers () {
81389
81409
  canPlay: import_patterns.canPlay.wistia,
81390
81410
  lazyPlayer: (0, import_utils.lazy)(() => import(
81391
81411
  /* webpackChunkName: 'reactPlayerWistia' */
81392
- './Wistia-CEi72MTW.esm.js'
81412
+ './Wistia-BNvoofR9.esm.js'
81393
81413
  ).then(function (n) { return n.W; }))
81394
81414
  },
81395
81415
  {
@@ -81398,7 +81418,7 @@ function requirePlayers () {
81398
81418
  canPlay: import_patterns.canPlay.twitch,
81399
81419
  lazyPlayer: (0, import_utils.lazy)(() => import(
81400
81420
  /* webpackChunkName: 'reactPlayerTwitch' */
81401
- './Twitch-DjgALZAq.esm.js'
81421
+ './Twitch-B2wmDlW8.esm.js'
81402
81422
  ).then(function (n) { return n.T; }))
81403
81423
  },
81404
81424
  {
@@ -81407,7 +81427,7 @@ function requirePlayers () {
81407
81427
  canPlay: import_patterns.canPlay.dailymotion,
81408
81428
  lazyPlayer: (0, import_utils.lazy)(() => import(
81409
81429
  /* webpackChunkName: 'reactPlayerDailyMotion' */
81410
- './DailyMotion-MzOn9ju_.esm.js'
81430
+ './DailyMotion-D6-bQSDC.esm.js'
81411
81431
  ).then(function (n) { return n.D; }))
81412
81432
  },
81413
81433
  {
@@ -81416,7 +81436,7 @@ function requirePlayers () {
81416
81436
  canPlay: import_patterns.canPlay.mixcloud,
81417
81437
  lazyPlayer: (0, import_utils.lazy)(() => import(
81418
81438
  /* webpackChunkName: 'reactPlayerMixcloud' */
81419
- './Mixcloud-CIGHRTPD.esm.js'
81439
+ './Mixcloud-HlioccZN.esm.js'
81420
81440
  ).then(function (n) { return n.M; }))
81421
81441
  },
81422
81442
  {
@@ -81425,7 +81445,7 @@ function requirePlayers () {
81425
81445
  canPlay: import_patterns.canPlay.vidyard,
81426
81446
  lazyPlayer: (0, import_utils.lazy)(() => import(
81427
81447
  /* webpackChunkName: 'reactPlayerVidyard' */
81428
- './Vidyard-M-vpaxMt.esm.js'
81448
+ './Vidyard-stasLAXI.esm.js'
81429
81449
  ).then(function (n) { return n.V; }))
81430
81450
  },
81431
81451
  {
@@ -81434,7 +81454,7 @@ function requirePlayers () {
81434
81454
  canPlay: import_patterns.canPlay.kaltura,
81435
81455
  lazyPlayer: (0, import_utils.lazy)(() => import(
81436
81456
  /* webpackChunkName: 'reactPlayerKaltura' */
81437
- './Kaltura-UmIP8SbX.esm.js'
81457
+ './Kaltura-BKTRnPwX.esm.js'
81438
81458
  ).then(function (n) { return n.K; }))
81439
81459
  },
81440
81460
  {
@@ -81446,7 +81466,7 @@ function requirePlayers () {
81446
81466
  },
81447
81467
  lazyPlayer: (0, import_utils.lazy)(() => import(
81448
81468
  /* webpackChunkName: 'reactPlayerFilePlayer' */
81449
- './FilePlayer-CQvxGYWG.esm.js'
81469
+ './FilePlayer-CnFGUWCJ.esm.js'
81450
81470
  ).then(function (n) { return n.F; }))
81451
81471
  }
81452
81472
  ];
@@ -82267,7 +82287,7 @@ function requireReactPlayer () {
82267
82287
  var import_Player = __toESM(/*@__PURE__*/ requirePlayer());
82268
82288
  const Preview = (0, import_utils.lazy)(() => import(
82269
82289
  /* webpackChunkName: 'reactPlayerPreview' */
82270
- './Preview-CMj6CzdF.esm.js'
82290
+ './Preview-BDrq-vcV.esm.js'
82271
82291
  ).then(function (n) { return n.P; }));
82272
82292
  const IS_BROWSER = typeof window !== "undefined" && window.document && typeof document !== "undefined";
82273
82293
  const IS_GLOBAL = typeof commonjsGlobal !== "undefined" && commonjsGlobal.window && commonjsGlobal.window.document;
@@ -82530,10 +82550,11 @@ var StyledHeartIconContainer = dt.div(templateObject_8 || (templateObject_8 = __
82530
82550
  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"])));
82531
82551
  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"])));
82532
82552
  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"])));
82533
- var StyledVolumeIconContainer = 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 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"])));
82534
- var StyledPlayPauseIconContainer = 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"])));
82535
- var StyledRewindIconContainer = dt.div(templateObject_14 || (templateObject_14 = __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"])));
82536
- 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;
82553
+ 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"])));
82554
+ 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"])));
82555
+ 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"])));
82556
+ 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"])));
82557
+ 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;
82537
82558
 
82538
82559
  var PLAYBACK_SPEED_LIST = [{
82539
82560
  label: 'playback_speed.2x',
@@ -82736,12 +82757,14 @@ var Controls = function Controls(_a) {
82736
82757
  volumeChangeHandler = _a.volumeChangeHandler,
82737
82758
  formatDuration = _a.formatDuration,
82738
82759
  handleFullScreen = _a.handleFullScreen,
82760
+ handlePictureInPicture = _a.handlePictureInPicture,
82739
82761
  playing = _a.playing,
82740
82762
  isSubtitlesChecked = _a.isSubtitlesChecked,
82741
82763
  toggleSubtitlesCheck = _a.toggleSubtitlesCheck,
82742
82764
  isFavorite = _a.isFavorite,
82743
82765
  toggleIsFavorite = _a.toggleIsFavorite,
82744
82766
  isFullscreen = _a.isFullscreen,
82767
+ isPiPActive = _a.isPiPActive,
82745
82768
  subtitle = _a.subtitle,
82746
82769
  handleSkipBackward = _a.handleSkipBackward,
82747
82770
  handleSkipForward = _a.handleSkipForward,
@@ -82751,7 +82774,9 @@ var Controls = function Controls(_a) {
82751
82774
  showDownload = _a.showDownload,
82752
82775
  downloadUrl = _a.downloadUrl,
82753
82776
  downloadFileName = _a.downloadFileName,
82754
- onDownload = _a.onDownload;
82777
+ onDownload = _a.onDownload,
82778
+ _b = _a.showPictureInPicture,
82779
+ showPictureInPicture = _b === void 0 ? true : _b;
82755
82780
  var handleDownloadClick = function handleDownloadClick() {
82756
82781
  return __awaiter(void 0, void 0, void 0, function () {
82757
82782
  var response, blob, blobUrl, link, error_1, link;
@@ -82910,6 +82935,13 @@ var Controls = function Controls(_a) {
82910
82935
  onClick: toggleSubtitlesCheck
82911
82936
  })
82912
82937
  })
82938
+ }), showPictureInPicture && jsxRuntimeExports.jsx(CustomTooltip, {
82939
+ title: isPiPActive ? 'Exit picture-in-picture' : 'Enter picture-in-picture',
82940
+ children: jsxRuntimeExports.jsx(StyledPictureInPictureIconContainer, {
82941
+ className: isPiPActive ? 'pip-active' : '',
82942
+ onClick: handlePictureInPicture,
82943
+ children: jsxRuntimeExports.jsx(PictureInPictureIcon, {})
82944
+ })
82913
82945
  }), jsxRuntimeExports.jsx(CustomTooltip, {
82914
82946
  title: isFullscreen ? 'Exit fullscreen' : 'Enter fullscreen',
82915
82947
  children: jsxRuntimeExports.jsx(StyledFullscreenIconContainer, {
@@ -88727,20 +88759,23 @@ function usePlayerControls(_a) {
88727
88759
  isSubtitlesChecked = _e[0],
88728
88760
  setIsSubtitlesChecked = _e[1];
88729
88761
  var _f = useState(false),
88730
- isFullscreen = _f[0],
88731
- setIsFullscreen = _f[1];
88762
+ isPiPActive = _f[0],
88763
+ setIsPiPActive = _f[1];
88732
88764
  var _g = useState(false),
88733
- isControlsActive = _g[0],
88734
- setIsControlsActive = _g[1];
88765
+ isFullscreen = _g[0],
88766
+ setIsFullscreen = _g[1];
88767
+ var _h = useState(false),
88768
+ isControlsActive = _h[0],
88769
+ setIsControlsActive = _h[1];
88735
88770
  var videoPlayerRef = useRef(null);
88736
88771
  var controlRef = useRef(null);
88737
88772
  var playerContainerRef = useRef(null);
88738
- var _h = useState([]),
88739
- subtitles = _h[0],
88740
- setSubtitles = _h[1];
88741
- var _j = useState(''),
88742
- currentSubtitle = _j[0],
88743
- setCurrentSubtitle = _j[1];
88773
+ var _j = useState([]),
88774
+ subtitles = _j[0],
88775
+ setSubtitles = _j[1];
88776
+ var _k = useState(''),
88777
+ currentSubtitle = _k[0],
88778
+ setCurrentSubtitle = _k[1];
88744
88779
  var lastSubtitleIndexRef = useRef(null);
88745
88780
  var lastPlaybackTimeRef = useRef(0);
88746
88781
  var lastCallTimeRef = useRef(Date.now());
@@ -88771,9 +88806,16 @@ function usePlayerControls(_a) {
88771
88806
  var handleFullscreenChange = function handleFullscreenChange() {
88772
88807
  setIsFullscreen(!!document.fullscreenElement);
88773
88808
  };
88809
+ var handlePiPChange = function handlePiPChange() {
88810
+ setIsPiPActive(!!document.pictureInPictureElement);
88811
+ };
88774
88812
  document.addEventListener('fullscreenchange', handleFullscreenChange);
88813
+ document.addEventListener('enterpictureinpicture', handlePiPChange);
88814
+ document.addEventListener('leavepictureinpicture', handlePiPChange);
88775
88815
  return function () {
88776
88816
  document.removeEventListener('fullscreenchange', handleFullscreenChange);
88817
+ document.removeEventListener('enterpictureinpicture', handlePiPChange);
88818
+ document.removeEventListener('leavepictureinpicture', handlePiPChange);
88777
88819
  };
88778
88820
  }, []);
88779
88821
  useEffect(function () {
@@ -88963,6 +89005,22 @@ function usePlayerControls(_a) {
88963
89005
  playerContainer.requestFullscreen()["catch"](console.error);
88964
89006
  }
88965
89007
  };
89008
+ var handlePictureInPicture = function handlePictureInPicture() {
89009
+ var _a;
89010
+ var videoElement = (_a = videoPlayerRef.current) === null || _a === void 0 ? void 0 : _a.getInternalPlayer();
89011
+ if (!videoElement || !(videoElement instanceof HTMLVideoElement)) {
89012
+ return;
89013
+ }
89014
+ if (!document.pictureInPictureEnabled) {
89015
+ console.warn('Picture-in-Picture is not supported in this browser');
89016
+ return;
89017
+ }
89018
+ if (document.pictureInPictureElement) {
89019
+ document.exitPictureInPicture()["catch"](console.error);
89020
+ } else {
89021
+ videoElement.requestPictureInPicture()["catch"](console.error);
89022
+ }
89023
+ };
88966
89024
  var handleKeyDown = useCallback(function (event) {
88967
89025
  if ('code' in event) {
88968
89026
  switch (event.code) {
@@ -89029,6 +89087,7 @@ function usePlayerControls(_a) {
89029
89087
  playerContainerRef: playerContainerRef,
89030
89088
  playPauseHandler: playPauseHandler,
89031
89089
  handleFullScreen: handleFullScreen,
89090
+ handlePictureInPicture: handlePictureInPicture,
89032
89091
  videoPlayerRef: videoPlayerRef,
89033
89092
  volume: volume,
89034
89093
  muted: muted,
@@ -89052,6 +89111,7 @@ function usePlayerControls(_a) {
89052
89111
  isSubtitlesChecked: isSubtitlesChecked,
89053
89112
  toggleSubtitlesCheck: toggleSubtitlesCheck,
89054
89113
  isFullscreen: isFullscreen,
89114
+ isPiPActive: isPiPActive,
89055
89115
  isControlsActive: isControlsActive,
89056
89116
  currentSubtitle: currentSubtitle,
89057
89117
  setCurrentSubtitle: setCurrentSubtitle,
@@ -89164,9 +89224,11 @@ var VideoPlayer = function VideoPlayer(_a) {
89164
89224
  showDownload = _a.showDownload,
89165
89225
  downloadUrl = _a.downloadUrl,
89166
89226
  downloadFileName = _a.downloadFileName,
89167
- onDownload = _a.onDownload;
89227
+ onDownload = _a.onDownload,
89228
+ _j = _a.showPictureInPicture,
89229
+ showPictureInPicture = _j === void 0 ? true : _j;
89168
89230
  var videoRef = useRef(null);
89169
- var _j = usePlayerControls({
89231
+ var _k = usePlayerControls({
89170
89232
  startTime: startTime,
89171
89233
  setLoading: setLoading,
89172
89234
  handleTrackProgress: handleTrackProgress,
@@ -89176,37 +89238,39 @@ var VideoPlayer = function VideoPlayer(_a) {
89176
89238
  setIsPlaying: setIsPlaying,
89177
89239
  shouldPlayerBeFocusedOnSpaceClick: shouldPlayerBeFocusedOnSpaceClick
89178
89240
  }),
89179
- mouseMoveHandler = _j.mouseMoveHandler,
89180
- playerContainerRef = _j.playerContainerRef,
89181
- playPauseHandler = _j.playPauseHandler,
89182
- handleFullScreen = _j.handleFullScreen,
89183
- videoPlayerRef = _j.videoPlayerRef,
89184
- playing = _j.playing,
89185
- volume = _j.volume,
89186
- muted = _j.muted,
89187
- progressHandler = _j.progressHandler,
89188
- bufferStartHandler = _j.bufferStartHandler,
89189
- bufferEndHandler = _j.bufferEndHandler,
89190
- onPlayerStart = _j.onPlayerStart,
89191
- setVideoState = _j.setVideoState,
89192
- playbackRate = _j.playbackRate,
89193
- controlRef = _j.controlRef,
89194
- rewindHandler = _j.rewindHandler,
89195
- handleFastForward = _j.handleFastForward,
89196
- formatCurrentTime = _j.formatCurrentTime,
89197
- played = _j.played,
89198
- onSeekMouseDownHandler = _j.onSeekMouseDownHandler,
89199
- seekHandler = _j.seekHandler,
89200
- seekMouseUpHandler = _j.seekMouseUpHandler,
89201
- muteHandler = _j.muteHandler,
89202
- volumeChangeHandler = _j.volumeChangeHandler,
89203
- formatDuration = _j.formatDuration,
89204
- isSubtitlesChecked = _j.isSubtitlesChecked,
89205
- toggleSubtitlesCheck = _j.toggleSubtitlesCheck,
89206
- isFullscreen = _j.isFullscreen,
89207
- isControlsActive = _j.isControlsActive,
89208
- currentSubtitle = _j.currentSubtitle,
89209
- setCurrentSubtitle = _j.setCurrentSubtitle;
89241
+ mouseMoveHandler = _k.mouseMoveHandler,
89242
+ playerContainerRef = _k.playerContainerRef,
89243
+ playPauseHandler = _k.playPauseHandler,
89244
+ handleFullScreen = _k.handleFullScreen,
89245
+ handlePictureInPicture = _k.handlePictureInPicture,
89246
+ videoPlayerRef = _k.videoPlayerRef,
89247
+ playing = _k.playing,
89248
+ volume = _k.volume,
89249
+ muted = _k.muted,
89250
+ progressHandler = _k.progressHandler,
89251
+ bufferStartHandler = _k.bufferStartHandler,
89252
+ bufferEndHandler = _k.bufferEndHandler,
89253
+ onPlayerStart = _k.onPlayerStart,
89254
+ setVideoState = _k.setVideoState,
89255
+ playbackRate = _k.playbackRate,
89256
+ controlRef = _k.controlRef,
89257
+ rewindHandler = _k.rewindHandler,
89258
+ handleFastForward = _k.handleFastForward,
89259
+ formatCurrentTime = _k.formatCurrentTime,
89260
+ played = _k.played,
89261
+ onSeekMouseDownHandler = _k.onSeekMouseDownHandler,
89262
+ seekHandler = _k.seekHandler,
89263
+ seekMouseUpHandler = _k.seekMouseUpHandler,
89264
+ muteHandler = _k.muteHandler,
89265
+ volumeChangeHandler = _k.volumeChangeHandler,
89266
+ formatDuration = _k.formatDuration,
89267
+ isSubtitlesChecked = _k.isSubtitlesChecked,
89268
+ toggleSubtitlesCheck = _k.toggleSubtitlesCheck,
89269
+ isFullscreen = _k.isFullscreen,
89270
+ isPiPActive = _k.isPiPActive,
89271
+ isControlsActive = _k.isControlsActive,
89272
+ currentSubtitle = _k.currentSubtitle,
89273
+ setCurrentSubtitle = _k.setCurrentSubtitle;
89210
89274
  var setupHLSSubtitleTracking = useHLSSubtitles({
89211
89275
  videoPlayerRef: videoPlayerRef,
89212
89276
  isSubtitlesChecked: isSubtitlesChecked,
@@ -89305,12 +89369,14 @@ var VideoPlayer = function VideoPlayer(_a) {
89305
89369
  volumeChangeHandler: volumeChangeHandler,
89306
89370
  formatDuration: formatDuration,
89307
89371
  handleFullScreen: handleFullScreen,
89372
+ handlePictureInPicture: handlePictureInPicture,
89308
89373
  playing: playing,
89309
89374
  isSubtitlesChecked: isSubtitlesChecked,
89310
89375
  toggleSubtitlesCheck: toggleSubtitlesCheck,
89311
89376
  isFavorite: isFavorite,
89312
89377
  toggleIsFavorite: toggleFavorite,
89313
89378
  isFullscreen: isFullscreen,
89379
+ isPiPActive: isPiPActive,
89314
89380
  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,
89315
89381
  handleSkipBackward: handlePreviousVideo,
89316
89382
  handleSkipForward: handleNextVideo,
@@ -89320,7 +89386,8 @@ var VideoPlayer = function VideoPlayer(_a) {
89320
89386
  showDownload: showDownload,
89321
89387
  downloadUrl: downloadUrl,
89322
89388
  downloadFileName: downloadFileName,
89323
- onDownload: onDownload
89389
+ onDownload: onDownload,
89390
+ showPictureInPicture: showPictureInPicture
89324
89391
  })
89325
89392
  })]
89326
89393
  });