suada-components 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/components/{DailyMotion-D1GfS99W.js → DailyMotion-C2fzQqF6.js} +1 -1
  2. package/dist/components/{DailyMotion-DIc5BN6G.esm.js → DailyMotion-D6-bQSDC.esm.js} +1 -1
  3. package/dist/components/{Facebook-B1WhW-N8.esm.js → Facebook-CHgu-1qk.esm.js} +1 -1
  4. package/dist/components/{Facebook-CCzLezvE.js → Facebook-ngwgOcwS.js} +1 -1
  5. package/dist/components/{FilePlayer-BVX0TAd4.esm.js → FilePlayer-CnFGUWCJ.esm.js} +1 -1
  6. package/dist/components/{FilePlayer-CSeIQE-t.js → FilePlayer-gXcilMCz.js} +1 -1
  7. package/dist/components/{Kaltura-Dv3nF_qk.esm.js → Kaltura-BKTRnPwX.esm.js} +1 -1
  8. package/dist/components/{Kaltura-Ybj6tj4c.js → Kaltura-Dwtf5bDJ.js} +1 -1
  9. package/dist/components/{Mixcloud-NSXYlse6.js → Mixcloud-CtZR5d1S.js} +1 -1
  10. package/dist/components/{Mixcloud-DgO-TXVn.esm.js → Mixcloud-HlioccZN.esm.js} +1 -1
  11. package/dist/components/{Mux-BVKUzr2W.esm.js → Mux-CiE-LfDW.esm.js} +1 -1
  12. package/dist/components/{Mux-CWsIfXgR.js → Mux-DhMGRnH7.js} +1 -1
  13. package/dist/components/{Preview-BYYoOVhE.esm.js → Preview-BDrq-vcV.esm.js} +1 -1
  14. package/dist/components/{Preview-YEvp75ub.js → Preview-DuscX4du.js} +1 -1
  15. package/dist/components/{SoundCloud-oy_T9Aiu.esm.js → SoundCloud-BG1mh5fx.esm.js} +1 -1
  16. package/dist/components/{SoundCloud-D5RE0hBN.js → SoundCloud-pcTMWQVG.js} +1 -1
  17. package/dist/components/{Streamable-BEA6SKQj.esm.js → Streamable-3QXSsimo.esm.js} +1 -1
  18. package/dist/components/{Streamable-cVBLCtV4.js → Streamable-B-2t9AZh.js} +1 -1
  19. package/dist/components/{Twitch-DPtzkrmp.esm.js → Twitch-B2wmDlW8.esm.js} +1 -1
  20. package/dist/components/{Twitch-DK8g5mI9.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 +13 -13
  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 +8 -7
  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/Player.styles.js +1 -1
  32. package/dist/components/VideoPlayer/Player.styles.js.map +1 -1
  33. package/dist/components/VideoPlayer/VideoPlayer.stories.d.ts +1 -0
  34. package/dist/components/VideoPlayer/VideoPlayer.stories.js +11 -0
  35. package/dist/components/VideoPlayer/VideoPlayer.stories.js.map +1 -1
  36. package/dist/components/VideoPlayer/usePlayerControls.js +31 -4
  37. package/dist/components/VideoPlayer/usePlayerControls.js.map +1 -1
  38. package/dist/components/{Vidyard-BfoXiL7u.js → Vidyard-BcZfnHmw.js} +1 -1
  39. package/dist/components/{Vidyard-C80XYDQJ.esm.js → Vidyard-stasLAXI.esm.js} +1 -1
  40. package/dist/components/{Vimeo-C71PHmy8.js → Vimeo-9D0LyMV4.js} +1 -1
  41. package/dist/components/{Vimeo-BuGV9164.esm.js → Vimeo-U2HYvdiG.esm.js} +1 -1
  42. package/dist/components/{Wistia-DZLhakqM.js → Wistia-3LaD3aiP.js} +1 -1
  43. package/dist/components/{Wistia-ZeBeRmW3.esm.js → Wistia-BNvoofR9.esm.js} +1 -1
  44. package/dist/components/{YouTube-D2V4Z5LG.js → YouTube-CdcE3nmm.js} +1 -1
  45. package/dist/components/{YouTube-DVacs1Or.esm.js → YouTube-DJZyY4jW.esm.js} +1 -1
  46. package/dist/components/components/VideoPlayer/Controls/Controls.interface.d.ts +3 -0
  47. package/dist/components/components/VideoPlayer/Controls/Controls.styles.d.ts +1 -0
  48. package/dist/components/components/VideoPlayer/Player.d.ts +1 -1
  49. package/dist/components/components/VideoPlayer/Player.interface.d.ts +3 -0
  50. package/dist/components/icons/PictureInPicture.d.ts +3 -0
  51. package/dist/components/icons/index.d.ts +1 -0
  52. package/dist/components/{index-0oGMHkIv.esm.js → index-C5MULDlh.esm.js} +155 -84
  53. package/dist/components/{index-CUdpL49N.js → index-Debc-Hq8.js} +155 -84
  54. package/dist/components/index.esm.js +1 -1
  55. package/dist/icons/PictureInPicture.d.ts +3 -0
  56. package/dist/icons/PictureInPicture.js +28 -0
  57. package/dist/icons/PictureInPicture.js.map +1 -0
  58. package/dist/icons/components/VideoPlayer/Controls/Controls.interface.d.ts +3 -0
  59. package/dist/icons/components/VideoPlayer/Controls/Controls.styles.d.ts +1 -0
  60. package/dist/icons/components/VideoPlayer/Player.d.ts +1 -1
  61. package/dist/icons/components/VideoPlayer/Player.interface.d.ts +3 -0
  62. package/dist/icons/icons/PictureInPicture.d.ts +3 -0
  63. package/dist/icons/icons/index.d.ts +1 -0
  64. package/dist/icons/index.d.ts +1 -0
  65. package/dist/icons/index.esm.js +21 -1
  66. package/dist/icons/index.js +1 -0
  67. package/dist/icons/index.js.map +1 -1
  68. package/package.json +1 -1
@@ -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-DVacs1Or.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-oy_T9Aiu.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-BuGV9164.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-BVKUzr2W.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-B1WhW-N8.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-BEA6SKQj.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-ZeBeRmW3.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-DPtzkrmp.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-DIc5BN6G.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-DgO-TXVn.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-C80XYDQJ.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-Dv3nF_qk.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-BVX0TAd4.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-BYYoOVhE.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;
@@ -82481,7 +82501,7 @@ var StyledWrapper = dt.div(templateObject_2$7 || (templateObject_2$7 = __makeTem
82481
82501
  var StyledPlayerLoader = dt.div(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: 8px;\n background: #e7e9ed;\n display: flex;\n align-items: center;\n top: 0;\n bottom: 0;\n margin: auto 0;\n color: var(--neutral-colors-light);\n justify-content: center;\n z-index: 5;\n"], ["\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: 8px;\n background: #e7e9ed;\n display: flex;\n align-items: center;\n top: 0;\n bottom: 0;\n margin: auto 0;\n color: var(--neutral-colors-light);\n justify-content: center;\n z-index: 5;\n"])));
82482
82502
  var rotate = mt(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"], ["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
82483
82503
  var StyledLoader = dt.div(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n margin: 60px auto;\n font-size: 10px;\n position: relative;\n text-indent: -9999em;\n border-top: 3px solid var(--neutral-colors-light);\n border-right: 3px solid var(--neutral-colors-light);\n border-bottom: 3px solid var(--neutral-colors-light);\n border-left: 3px solid var(--brand-colors-accent);\n transform: translateZ(0);\n animation: ", " 1.1s infinite linear;\n border-radius: 50%;\n width: 46px;\n height: 46px;\n\n &:after {\n border-radius: 50%;\n width: 46px;\n height: 46px;\n }\n"], ["\n margin: 60px auto;\n font-size: 10px;\n position: relative;\n text-indent: -9999em;\n border-top: 3px solid var(--neutral-colors-light);\n border-right: 3px solid var(--neutral-colors-light);\n border-bottom: 3px solid var(--neutral-colors-light);\n border-left: 3px solid var(--brand-colors-accent);\n transform: translateZ(0);\n animation: ", " 1.1s infinite linear;\n border-radius: 50%;\n width: 46px;\n height: 46px;\n\n &:after {\n border-radius: 50%;\n width: 46px;\n height: 46px;\n }\n"])), rotate);
82484
- var StyledControlsContainer = dt.div(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n width: 100%;\n height: fit-content;\n display: flex;\n align-items: flex-end;\n position: absolute;\n flex-direction: column;\n left: 0;\n bottom: 0;\n z-index: 2;\n"], ["\n width: 100%;\n height: fit-content;\n display: flex;\n align-items: flex-end;\n position: absolute;\n flex-direction: column;\n left: 0;\n bottom: 0;\n z-index: 2;\n"])));
82504
+ var StyledControlsContainer = dt.div(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n width: 100%;\n height: fit-content;\n display: flex;\n align-items: flex-end;\n position: absolute;\n flex-direction: column;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 2;\n"], ["\n width: 100%;\n height: fit-content;\n display: flex;\n align-items: flex-end;\n position: absolute;\n flex-direction: column;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 2;\n"])));
82485
82505
  var StyledSubtitles = dt.div(templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject(["\n background-color: rgba(2, 2, 16, 0.32);\n color: #fff;\n font-family: 'Open Sans', sans-serif;\n font-size: 18px;\n font-style: normal;\n font-weight: 400;\n line-height: 150%;\n padding: 8px;\n position: absolute;\n z-index: 100;\n bottom: ", ";\n right: 0;\n left: 0;\n width: fit-content;\n margin: 0 auto;\n max-width: 80%;\n width: fit-content;\n"], ["\n background-color: rgba(2, 2, 16, 0.32);\n color: #fff;\n font-family: 'Open Sans', sans-serif;\n font-size: 18px;\n font-style: normal;\n font-weight: 400;\n line-height: 150%;\n padding: 8px;\n position: absolute;\n z-index: 100;\n bottom: ", ";\n right: 0;\n left: 0;\n width: fit-content;\n margin: 0 auto;\n max-width: 80%;\n width: fit-content;\n"])), function (_a) {
82486
82506
  var $controls = _a.$controls;
82487
82507
  return $controls ? '60px' : '10px';
@@ -82509,7 +82529,7 @@ var injectHLSSubtitleStyles = function injectHLSSubtitleStyles() {
82509
82529
  };
82510
82530
  var templateObject_1$9, templateObject_2$7, templateObject_3$4, templateObject_4$2, templateObject_5$2, templateObject_6$2, templateObject_7$1;
82511
82531
 
82512
- var StyledControls = dt.div(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n width: 100%;\n border-radius: 0px 0px 8px 8px;\n background: #565a62;\n padding: 12px 16px;\n position: relative;\n\n svg {\n cursor: pointer;\n\n @media screen and (max-width: 1500px) {\n width: 20px;\n height: 20px;\n }\n\n @media screen and (max-width: 1000px) {\n width: 16px;\n height: 16px;\n }\n }\n\n & > p {\n color: var(--neutral-colors-light);\n font-family: 'Poppins', sans-serif;\n ", "\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n width: 100%;\n border-radius: 0px 0px 8px 8px;\n background: #565a62;\n padding: 12px 16px;\n position: relative;\n\n svg {\n cursor: pointer;\n\n @media screen and (max-width: 1500px) {\n width: 20px;\n height: 20px;\n }\n\n @media screen and (max-width: 1000px) {\n width: 16px;\n height: 16px;\n }\n }\n\n & > p {\n color: var(--neutral-colors-light);\n font-family: 'Poppins', sans-serif;\n ", "\n }\n"])), {
82532
+ var StyledControls = dt.div(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n width: 100%;\n border-radius: 0px 0px 8px 8px;\n background: rgba(86, 90, 98, 0.6);\n backdrop-filter: blur(4px);\n padding: 12px 16px;\n position: relative;\n opacity: 0.8;\n\n\n svg {\n cursor: pointer;\n\n @media screen and (max-width: 1500px) {\n width: 20px;\n height: 20px;\n }\n\n @media screen and (max-width: 1000px) {\n width: 16px;\n height: 16px;\n }\n }\n\n & > p {\n color: var(--neutral-colors-light);\n font-family: 'Poppins', sans-serif;\n ", "\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n width: 100%;\n border-radius: 0px 0px 8px 8px;\n background: rgba(86, 90, 98, 0.6);\n backdrop-filter: blur(4px);\n padding: 12px 16px;\n position: relative;\n opacity: 0.8;\n\n\n svg {\n cursor: pointer;\n\n @media screen and (max-width: 1500px) {\n width: 20px;\n height: 20px;\n }\n\n @media screen and (max-width: 1000px) {\n width: 16px;\n height: 16px;\n }\n }\n\n & > p {\n color: var(--neutral-colors-light);\n font-family: 'Poppins', sans-serif;\n ", "\n }\n"])), {
82513
82533
  fontStyle: 'descriptor'
82514
82534
  });
82515
82535
  var StyledSlider = dt.input(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n width: 100%;\n height: 2px;\n border-radius: 5px;\n position: absolute;\n top: 0;\n left: 0;\n background: ", ";\n outline: none;\n -webkit-transition: 0.2s;\n transition: opacity 0.2s;\n cursor: pointer;\n\n &::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background: var(--brand-colors-accent);\n cursor: pointer;\n }\n\n &::-moz-range-thumb {\n appearance: none;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background: var(--brand-colors-accent);\n cursor: pointer;\n }\n"], ["\n width: 100%;\n height: 2px;\n border-radius: 5px;\n position: absolute;\n top: 0;\n left: 0;\n background: ", ";\n outline: none;\n -webkit-transition: 0.2s;\n transition: opacity 0.2s;\n cursor: pointer;\n\n &::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background: var(--brand-colors-accent);\n cursor: pointer;\n }\n\n &::-moz-range-thumb {\n appearance: none;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background: var(--brand-colors-accent);\n cursor: pointer;\n }\n"])), function (_a) {
@@ -82521,8 +82541,8 @@ var StyledVolumeSlider = dt.input(templateObject_4$1 || (templateObject_4$1 = __
82521
82541
  var value = _a.value;
82522
82542
  return "linear-gradient(\n to right,\n var(--neutral-colors-light) 0%,\n var(--neutral-colors-light) ".concat(value, "%,\n var(--level-grey-500) ").concat(value, "%,\n var(--level-grey-500) 100%\n )");
82523
82543
  });
82524
- var StyledControllerLeft = dt.div(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 16px;\n"], ["\n display: flex;\n align-items: center;\n gap: 16px;\n"])));
82525
- var StyledControllerRight = dt.div(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 16px;\n\n .skip-icon-disabled {\n cursor: default;\n\n & > path {\n fill: var(--level-dark-300);\n }\n }\n"], ["\n display: flex;\n align-items: center;\n gap: 16px;\n\n .skip-icon-disabled {\n cursor: default;\n\n & > path {\n fill: var(--level-dark-300);\n }\n }\n"])));
82544
+ var StyledControllerLeft = dt.div(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 16px;\n flex: 1;\n"], ["\n display: flex;\n align-items: center;\n gap: 16px;\n flex: 1;\n"])));
82545
+ var StyledControllerRight = dt.div(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 16px;\n flex-shrink: 0;\n\n .skip-icon-disabled {\n cursor: default;\n\n & > path {\n fill: var(--level-dark-300);\n }\n }\n"], ["\n display: flex;\n align-items: center;\n gap: 16px;\n flex-shrink: 0;\n\n .skip-icon-disabled {\n cursor: default;\n\n & > path {\n fill: var(--level-dark-300);\n }\n }\n"])));
82526
82546
  var StyledTimeTrack = dt.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n color: #FFFFFF;\n ", "\n text-align: right;\n white-space: nowrap;\n"], ["\n color: #FFFFFF;\n ", "\n text-align: right;\n white-space: nowrap;\n"])), {
82527
82547
  fontStyle: 'descriptor'
82528
82548
  });
@@ -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 & > 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"])));
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;
@@ -82850,22 +82875,26 @@ var Controls = function Controls(_a) {
82850
82875
  }), jsxRuntimeExports.jsxs(StyledControllerRight, {
82851
82876
  children: [handleSkipBackward && jsxRuntimeExports.jsx(CustomTooltip, {
82852
82877
  title: "Previous video",
82853
- children: jsxRuntimeExports.jsx(SkipIcon, {
82854
- onClick: function onClick() {
82855
- if (!isPreviousVideo) return;
82856
- handleSkipBackward();
82857
- },
82858
- className: isPreviousVideo ? '' : 'skip-icon-disabled'
82878
+ children: jsxRuntimeExports.jsx(StyledRewindIconContainer, {
82879
+ children: jsxRuntimeExports.jsx(SkipIcon, {
82880
+ onClick: function onClick() {
82881
+ if (!isPreviousVideo) return;
82882
+ handleSkipBackward();
82883
+ },
82884
+ className: isPreviousVideo ? '' : 'skip-icon-disabled'
82885
+ })
82859
82886
  })
82860
82887
  }), handleSkipForward && jsxRuntimeExports.jsx(CustomTooltip, {
82861
82888
  title: "Next video",
82862
- children: jsxRuntimeExports.jsx(SkipIcon, {
82863
- forward: true,
82864
- onClick: function onClick() {
82865
- if (!isNextVideo) return;
82866
- handleSkipForward();
82867
- },
82868
- className: isNextVideo ? '' : 'skip-icon-disabled'
82889
+ children: jsxRuntimeExports.jsx(StyledRewindIconContainer, {
82890
+ children: jsxRuntimeExports.jsx(SkipIcon, {
82891
+ forward: true,
82892
+ onClick: function onClick() {
82893
+ if (!isNextVideo) return;
82894
+ handleSkipForward();
82895
+ },
82896
+ className: isNextVideo ? '' : 'skip-icon-disabled'
82897
+ })
82869
82898
  })
82870
82899
  }), showFavorite && jsxRuntimeExports.jsx(CustomTooltip, {
82871
82900
  title: isFavorite ? 'Remove from favorites' : 'Add to favorites',
@@ -82906,6 +82935,13 @@ var Controls = function Controls(_a) {
82906
82935
  onClick: toggleSubtitlesCheck
82907
82936
  })
82908
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
+ })
82909
82945
  }), jsxRuntimeExports.jsx(CustomTooltip, {
82910
82946
  title: isFullscreen ? 'Exit fullscreen' : 'Enter fullscreen',
82911
82947
  children: jsxRuntimeExports.jsx(StyledFullscreenIconContainer, {
@@ -88723,20 +88759,23 @@ function usePlayerControls(_a) {
88723
88759
  isSubtitlesChecked = _e[0],
88724
88760
  setIsSubtitlesChecked = _e[1];
88725
88761
  var _f = useState(false),
88726
- isFullscreen = _f[0],
88727
- setIsFullscreen = _f[1];
88762
+ isPiPActive = _f[0],
88763
+ setIsPiPActive = _f[1];
88728
88764
  var _g = useState(false),
88729
- isControlsActive = _g[0],
88730
- setIsControlsActive = _g[1];
88765
+ isFullscreen = _g[0],
88766
+ setIsFullscreen = _g[1];
88767
+ var _h = useState(false),
88768
+ isControlsActive = _h[0],
88769
+ setIsControlsActive = _h[1];
88731
88770
  var videoPlayerRef = useRef(null);
88732
88771
  var controlRef = useRef(null);
88733
88772
  var playerContainerRef = useRef(null);
88734
- var _h = useState([]),
88735
- subtitles = _h[0],
88736
- setSubtitles = _h[1];
88737
- var _j = useState(''),
88738
- currentSubtitle = _j[0],
88739
- 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];
88740
88779
  var lastSubtitleIndexRef = useRef(null);
88741
88780
  var lastPlaybackTimeRef = useRef(0);
88742
88781
  var lastCallTimeRef = useRef(Date.now());
@@ -88767,9 +88806,16 @@ function usePlayerControls(_a) {
88767
88806
  var handleFullscreenChange = function handleFullscreenChange() {
88768
88807
  setIsFullscreen(!!document.fullscreenElement);
88769
88808
  };
88809
+ var handlePiPChange = function handlePiPChange() {
88810
+ setIsPiPActive(!!document.pictureInPictureElement);
88811
+ };
88770
88812
  document.addEventListener('fullscreenchange', handleFullscreenChange);
88813
+ document.addEventListener('enterpictureinpicture', handlePiPChange);
88814
+ document.addEventListener('leavepictureinpicture', handlePiPChange);
88771
88815
  return function () {
88772
88816
  document.removeEventListener('fullscreenchange', handleFullscreenChange);
88817
+ document.removeEventListener('enterpictureinpicture', handlePiPChange);
88818
+ document.removeEventListener('leavepictureinpicture', handlePiPChange);
88773
88819
  };
88774
88820
  }, []);
88775
88821
  useEffect(function () {
@@ -88959,6 +89005,22 @@ function usePlayerControls(_a) {
88959
89005
  playerContainer.requestFullscreen()["catch"](console.error);
88960
89006
  }
88961
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
+ };
88962
89024
  var handleKeyDown = useCallback(function (event) {
88963
89025
  if ('code' in event) {
88964
89026
  switch (event.code) {
@@ -89025,6 +89087,7 @@ function usePlayerControls(_a) {
89025
89087
  playerContainerRef: playerContainerRef,
89026
89088
  playPauseHandler: playPauseHandler,
89027
89089
  handleFullScreen: handleFullScreen,
89090
+ handlePictureInPicture: handlePictureInPicture,
89028
89091
  videoPlayerRef: videoPlayerRef,
89029
89092
  volume: volume,
89030
89093
  muted: muted,
@@ -89048,6 +89111,7 @@ function usePlayerControls(_a) {
89048
89111
  isSubtitlesChecked: isSubtitlesChecked,
89049
89112
  toggleSubtitlesCheck: toggleSubtitlesCheck,
89050
89113
  isFullscreen: isFullscreen,
89114
+ isPiPActive: isPiPActive,
89051
89115
  isControlsActive: isControlsActive,
89052
89116
  currentSubtitle: currentSubtitle,
89053
89117
  setCurrentSubtitle: setCurrentSubtitle,
@@ -89160,9 +89224,11 @@ var VideoPlayer = function VideoPlayer(_a) {
89160
89224
  showDownload = _a.showDownload,
89161
89225
  downloadUrl = _a.downloadUrl,
89162
89226
  downloadFileName = _a.downloadFileName,
89163
- onDownload = _a.onDownload;
89227
+ onDownload = _a.onDownload,
89228
+ _j = _a.showPictureInPicture,
89229
+ showPictureInPicture = _j === void 0 ? true : _j;
89164
89230
  var videoRef = useRef(null);
89165
- var _j = usePlayerControls({
89231
+ var _k = usePlayerControls({
89166
89232
  startTime: startTime,
89167
89233
  setLoading: setLoading,
89168
89234
  handleTrackProgress: handleTrackProgress,
@@ -89172,37 +89238,39 @@ var VideoPlayer = function VideoPlayer(_a) {
89172
89238
  setIsPlaying: setIsPlaying,
89173
89239
  shouldPlayerBeFocusedOnSpaceClick: shouldPlayerBeFocusedOnSpaceClick
89174
89240
  }),
89175
- mouseMoveHandler = _j.mouseMoveHandler,
89176
- playerContainerRef = _j.playerContainerRef,
89177
- playPauseHandler = _j.playPauseHandler,
89178
- handleFullScreen = _j.handleFullScreen,
89179
- videoPlayerRef = _j.videoPlayerRef,
89180
- playing = _j.playing,
89181
- volume = _j.volume,
89182
- muted = _j.muted,
89183
- progressHandler = _j.progressHandler,
89184
- bufferStartHandler = _j.bufferStartHandler,
89185
- bufferEndHandler = _j.bufferEndHandler,
89186
- onPlayerStart = _j.onPlayerStart,
89187
- setVideoState = _j.setVideoState,
89188
- playbackRate = _j.playbackRate,
89189
- controlRef = _j.controlRef,
89190
- rewindHandler = _j.rewindHandler,
89191
- handleFastForward = _j.handleFastForward,
89192
- formatCurrentTime = _j.formatCurrentTime,
89193
- played = _j.played,
89194
- onSeekMouseDownHandler = _j.onSeekMouseDownHandler,
89195
- seekHandler = _j.seekHandler,
89196
- seekMouseUpHandler = _j.seekMouseUpHandler,
89197
- muteHandler = _j.muteHandler,
89198
- volumeChangeHandler = _j.volumeChangeHandler,
89199
- formatDuration = _j.formatDuration,
89200
- isSubtitlesChecked = _j.isSubtitlesChecked,
89201
- toggleSubtitlesCheck = _j.toggleSubtitlesCheck,
89202
- isFullscreen = _j.isFullscreen,
89203
- isControlsActive = _j.isControlsActive,
89204
- currentSubtitle = _j.currentSubtitle,
89205
- 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;
89206
89274
  var setupHLSSubtitleTracking = useHLSSubtitles({
89207
89275
  videoPlayerRef: videoPlayerRef,
89208
89276
  isSubtitlesChecked: isSubtitlesChecked,
@@ -89301,12 +89369,14 @@ var VideoPlayer = function VideoPlayer(_a) {
89301
89369
  volumeChangeHandler: volumeChangeHandler,
89302
89370
  formatDuration: formatDuration,
89303
89371
  handleFullScreen: handleFullScreen,
89372
+ handlePictureInPicture: handlePictureInPicture,
89304
89373
  playing: playing,
89305
89374
  isSubtitlesChecked: isSubtitlesChecked,
89306
89375
  toggleSubtitlesCheck: toggleSubtitlesCheck,
89307
89376
  isFavorite: isFavorite,
89308
89377
  toggleIsFavorite: toggleFavorite,
89309
89378
  isFullscreen: isFullscreen,
89379
+ isPiPActive: isPiPActive,
89310
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,
89311
89381
  handleSkipBackward: handlePreviousVideo,
89312
89382
  handleSkipForward: handleNextVideo,
@@ -89316,7 +89386,8 @@ var VideoPlayer = function VideoPlayer(_a) {
89316
89386
  showDownload: showDownload,
89317
89387
  downloadUrl: downloadUrl,
89318
89388
  downloadFileName: downloadFileName,
89319
- onDownload: onDownload
89389
+ onDownload: onDownload,
89390
+ showPictureInPicture: showPictureInPicture
89320
89391
  })
89321
89392
  })]
89322
89393
  });