suada-components 1.3.0 → 1.5.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 (55) hide show
  1. package/dist/components/{DailyMotion-BRR94A6R.js → DailyMotion-D1GfS99W.js} +1 -1
  2. package/dist/components/{DailyMotion-fTfJbAKR.esm.js → DailyMotion-DIc5BN6G.esm.js} +1 -1
  3. package/dist/components/{Facebook-g8siL1GN.esm.js → Facebook-B1WhW-N8.esm.js} +1 -1
  4. package/dist/components/{Facebook-BYAo-2rH.js → Facebook-CCzLezvE.js} +1 -1
  5. package/dist/components/{FilePlayer--e_TvukB.esm.js → FilePlayer-BVX0TAd4.esm.js} +1 -1
  6. package/dist/components/{FilePlayer-CBlW9Z-Z.js → FilePlayer-CSeIQE-t.js} +1 -1
  7. package/dist/components/FileUploader/FileUploader.stories.d.ts +16 -0
  8. package/dist/components/FileUploader/FileUploader.stories.js +15 -1
  9. package/dist/components/FileUploader/FileUploader.stories.js.map +1 -1
  10. package/dist/components/FileUploader/Uploader.d.ts +1 -1
  11. package/dist/components/FileUploader/Uploader.js +37 -36
  12. package/dist/components/FileUploader/Uploader.js.map +1 -1
  13. package/dist/components/FileUploader/styled-components.d.ts +11 -8
  14. package/dist/components/FileUploader/styled-components.js +27 -26
  15. package/dist/components/FileUploader/styled-components.js.map +1 -1
  16. package/dist/components/{Kaltura-CgG6fwG2.esm.js → Kaltura-Dv3nF_qk.esm.js} +1 -1
  17. package/dist/components/{Kaltura-Cw4p4d7w.js → Kaltura-Ybj6tj4c.js} +1 -1
  18. package/dist/components/{Mixcloud-1pcndu_p.esm.js → Mixcloud-DgO-TXVn.esm.js} +1 -1
  19. package/dist/components/{Mixcloud-FU7dfnB-.js → Mixcloud-NSXYlse6.js} +1 -1
  20. package/dist/components/{Mux-bOE4IGCQ.esm.js → Mux-BVKUzr2W.esm.js} +1 -1
  21. package/dist/components/{Mux-CFgk1TgE.js → Mux-CWsIfXgR.js} +1 -1
  22. package/dist/components/{Preview-ZZ8yCxMr.esm.js → Preview-BYYoOVhE.esm.js} +1 -1
  23. package/dist/components/{Preview-CFFnVBFk.js → Preview-YEvp75ub.js} +1 -1
  24. package/dist/components/{SoundCloud-BsdovEa4.js → SoundCloud-D5RE0hBN.js} +1 -1
  25. package/dist/components/{SoundCloud-1OvUzexh.esm.js → SoundCloud-oy_T9Aiu.esm.js} +1 -1
  26. package/dist/components/{Streamable-DkZbzMhq.esm.js → Streamable-BEA6SKQj.esm.js} +1 -1
  27. package/dist/components/{Streamable-C18bUmk1.js → Streamable-cVBLCtV4.js} +1 -1
  28. package/dist/components/{Twitch-BwMnK2K5.js → Twitch-DK8g5mI9.js} +1 -1
  29. package/dist/components/{Twitch-CAR5VDqo.esm.js → Twitch-DPtzkrmp.esm.js} +1 -1
  30. package/dist/components/VideoPlayer/Controls/Controls.js +12 -11
  31. package/dist/components/VideoPlayer/Controls/Controls.js.map +1 -1
  32. package/dist/components/VideoPlayer/Controls/Controls.styles.d.ts +1 -0
  33. package/dist/components/VideoPlayer/Controls/Controls.styles.js +8 -7
  34. package/dist/components/VideoPlayer/Controls/Controls.styles.js.map +1 -1
  35. package/dist/components/{Vidyard-DjdEjiba.js → Vidyard-BfoXiL7u.js} +1 -1
  36. package/dist/components/{Vidyard-Dj__VHEu.esm.js → Vidyard-C80XYDQJ.esm.js} +1 -1
  37. package/dist/components/{Vimeo-B6eklZts.esm.js → Vimeo-BuGV9164.esm.js} +1 -1
  38. package/dist/components/{Vimeo-B2sdU2eb.js → Vimeo-C71PHmy8.js} +1 -1
  39. package/dist/components/{Wistia-D8WmgJRA.js → Wistia-DZLhakqM.js} +1 -1
  40. package/dist/components/{Wistia-T3lTN9f9.esm.js → Wistia-ZeBeRmW3.esm.js} +1 -1
  41. package/dist/components/{YouTube-DpQU6ZH9.js → YouTube-D2V4Z5LG.js} +1 -1
  42. package/dist/components/{YouTube-DvS99YSi.esm.js → YouTube-DVacs1Or.esm.js} +1 -1
  43. package/dist/components/components/FileUploader/Uploader.d.ts +1 -1
  44. package/dist/components/components/FileUploader/styled-components.d.ts +11 -8
  45. package/dist/components/components/VideoPlayer/Controls/Controls.styles.d.ts +1 -0
  46. package/dist/components/{index-C_u0zRwP.esm.js → index-0oGMHkIv.esm.js} +307 -336
  47. package/dist/components/{index-D4JJ3W7g.js → index-CUdpL49N.js} +307 -336
  48. package/dist/components/index.esm.js +1 -1
  49. package/dist/icons/VolumeUpIcon.js +2 -2
  50. package/dist/icons/VolumeUpIcon.js.map +1 -1
  51. package/dist/icons/components/FileUploader/Uploader.d.ts +1 -1
  52. package/dist/icons/components/FileUploader/styled-components.d.ts +11 -8
  53. package/dist/icons/components/VideoPlayer/Controls/Controls.styles.d.ts +1 -0
  54. package/dist/icons/index.esm.js +3 -6
  55. package/package.json +1 -1
@@ -18837,7 +18837,7 @@ const _excluded$13 = ["onChange", "maxRows", "minRows", "style", "value"];
18837
18837
  function getStyleValue(value) {
18838
18838
  return parseInt(value, 10) || 0;
18839
18839
  }
18840
- const styles$3 = {
18840
+ const styles$4 = {
18841
18841
  shadow: {
18842
18842
  // Visibility needed to hide the extra text area on iPads
18843
18843
  visibility: 'hidden',
@@ -19025,7 +19025,7 @@ const TextareaAutosize = /*#__PURE__*/React.forwardRef(function TextareaAutosize
19025
19025
  readOnly: true,
19026
19026
  ref: hiddenTextareaRef,
19027
19027
  tabIndex: -1,
19028
- style: _extends$2({}, styles$3.shadow, style, {
19028
+ style: _extends$2({}, styles$4.shadow, style, {
19029
19029
  paddingTop: 0,
19030
19030
  paddingBottom: 0
19031
19031
  })
@@ -19853,7 +19853,7 @@ var ArrowDropDownIcon$2 = createSvgIcon$1( /*#__PURE__*/jsxRuntimeExports.jsx("p
19853
19853
  }), 'ArrowDropDown');
19854
19854
 
19855
19855
  const _excluded$11 = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
19856
- const styles$2 = {
19856
+ const styles$3 = {
19857
19857
  entering: {
19858
19858
  opacity: 1
19859
19859
  },
@@ -19962,7 +19962,7 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
19962
19962
  style: _extends$2({
19963
19963
  opacity: 0,
19964
19964
  visibility: state === 'exited' && !inProp ? 'hidden' : undefined
19965
- }, styles$2[state], style, children.props.style),
19965
+ }, styles$3[state], style, children.props.style),
19966
19966
  ref: handleRef
19967
19967
  }, childProps));
19968
19968
  }
@@ -23975,7 +23975,7 @@ const _excluded$O = ["addEndListener", "appear", "children", "easing", "in", "on
23975
23975
  function getScale$1(value) {
23976
23976
  return `scale(${value}, ${value ** 2})`;
23977
23977
  }
23978
- const styles$1 = {
23978
+ const styles$2 = {
23979
23979
  entering: {
23980
23980
  opacity: 1,
23981
23981
  transform: getScale$1(1)
@@ -24131,7 +24131,7 @@ const Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {
24131
24131
  opacity: 0,
24132
24132
  transform: getScale$1(0.75),
24133
24133
  visibility: state === 'exited' && !inProp ? 'hidden' : undefined
24134
- }, styles$1[state], style, children.props.style),
24134
+ }, styles$2[state], style, children.props.style),
24135
24135
  ref: handleRef
24136
24136
  }, childProps));
24137
24137
  }
@@ -32375,7 +32375,7 @@ var CourseStatusContainer = dt.div(templateObject_13$2 || (templateObject_13$2 =
32375
32375
  var $status = _a.$status;
32376
32376
  return !$status ? '#EA382A' : '#00905E';
32377
32377
  });
32378
- dt.div(templateObject_14$1 || (templateObject_14$1 = __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"])));
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
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"])));
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"])));
@@ -32411,7 +32411,7 @@ var GridItemLessons = dt.div(templateObject_23$1 || (templateObject_23$1 = __mak
32411
32411
  }, function (props) {
32412
32412
  return props.checked ? '#333333' : '#20a8c6';
32413
32413
  });
32414
- var StyledToolTipContainer = dt.div(templateObject_24$1 || (templateObject_24$1 = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
32414
+ var StyledToolTipContainer = dt.div(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
32415
32415
  dt.div(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n cursor: pointer;\n padding: 6px 10px;\n transition: 0.3s ease;\n border-radius: 5px;\n opacity: ", ";\n &:hover {\n background: rgba(0, 0, 0, 0.1);\n }\n svg {\n font-size: 1rem;\n margin-right: 6px;\n width: 20px;\n height: 20px;\n }\n svg path {\n width: 20px;\n height: 20px;\n fill: #717882;\n }\n /* .MuiTypography-body1 {\n font-size: 0.875rem;\n } */\n"], ["\n display: flex;\n align-items: center;\n cursor: pointer;\n padding: 6px 10px;\n transition: 0.3s ease;\n border-radius: 5px;\n opacity: ", ";\n &:hover {\n background: rgba(0, 0, 0, 0.1);\n }\n svg {\n font-size: 1rem;\n margin-right: 6px;\n width: 20px;\n height: 20px;\n }\n svg path {\n width: 20px;\n height: 20px;\n fill: #717882;\n }\n /* .MuiTypography-body1 {\n font-size: 0.875rem;\n } */\n"])), function (_a) {
32416
32416
  var disabled = _a.disabled;
32417
32417
  return disabled ? '0.5' : '1';
@@ -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$1, 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$1, 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$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;
32430
32430
 
32431
32431
  var TooltipHeight$1 = function TooltipHeight(_a) {
32432
32432
  var text = _a.text,
@@ -36473,7 +36473,7 @@ var FileCopyIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
36473
36473
  });
36474
36474
  FileCopyIcon.displayName = 'FileCopyIcon';
36475
36475
 
36476
- var HeadsetIcon$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
36476
+ var HeadsetIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
36477
36477
  var className = _a.className,
36478
36478
  onClick = _a.onClick,
36479
36479
  _b = _a.fill,
@@ -36495,7 +36495,7 @@ var HeadsetIcon$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
36495
36495
  })
36496
36496
  }));
36497
36497
  });
36498
- HeadsetIcon$1.displayName = 'HeadsetIcon';
36498
+ HeadsetIcon.displayName = 'HeadsetIcon';
36499
36499
 
36500
36500
  var LockIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
36501
36501
  var className = _a.className,
@@ -37454,7 +37454,7 @@ var HighlightOffRoundedIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
37454
37454
  });
37455
37455
  HighlightOffRoundedIcon.displayName = 'HighlightOffRoundedIcon';
37456
37456
 
37457
- var InsertDriveFileIcon$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
37457
+ var InsertDriveFileIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
37458
37458
  var className = _a.className,
37459
37459
  onClick = _a.onClick,
37460
37460
  _b = _a.fill,
@@ -37479,9 +37479,9 @@ var InsertDriveFileIcon$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
37479
37479
  })]
37480
37480
  }));
37481
37481
  });
37482
- InsertDriveFileIcon$1.displayName = 'InsertDriveFileIcon';
37482
+ InsertDriveFileIcon.displayName = 'InsertDriveFileIcon';
37483
37483
 
37484
- var OndemandVideoIcon$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
37484
+ var OndemandVideoIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
37485
37485
  var className = _a.className,
37486
37486
  onClick = _a.onClick,
37487
37487
  _b = _a.fill,
@@ -37506,7 +37506,7 @@ var OndemandVideoIcon$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
37506
37506
  })]
37507
37507
  }));
37508
37508
  });
37509
- OndemandVideoIcon$1.displayName = 'OndemandVideoIcon';
37509
+ OndemandVideoIcon.displayName = 'OndemandVideoIcon';
37510
37510
 
37511
37511
  var PublishIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
37512
37512
  var className = _a.className,
@@ -37676,7 +37676,7 @@ var VolumeUpIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
37676
37676
  _b = _a.fill,
37677
37677
  fill = _b === void 0 ? '#68707A' : _b,
37678
37678
  props = __rest(_a, ["className", "onClick", "fill"]);
37679
- return jsxRuntimeExports.jsxs("svg", __assign({
37679
+ return jsxRuntimeExports.jsx("svg", __assign({
37680
37680
  ref: ref,
37681
37681
  width: '24',
37682
37682
  height: '24',
@@ -37686,18 +37686,15 @@ var VolumeUpIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
37686
37686
  className: className,
37687
37687
  onClick: onClick
37688
37688
  }, props, {
37689
- children: [jsxRuntimeExports.jsx("path", {
37690
- d: 'M0 0h24v24H0V0z',
37691
- fill: 'none'
37692
- }), jsxRuntimeExports.jsx("path", {
37689
+ children: jsxRuntimeExports.jsx("path", {
37693
37690
  d: 'M3 9v6h4l5 5V4L7 9H3zm7-.17v6.34L7.83 13H5v-2h2.83L10 8.83zM16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77z',
37694
37691
  fill: fill
37695
- })]
37692
+ })
37696
37693
  }));
37697
37694
  });
37698
37695
  VolumeUpIcon.displayName = 'VolumeUpIcon';
37699
37696
 
37700
- var FileUploadOutlinedIcon$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
37697
+ var FileUploadOutlinedIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
37701
37698
  var className = _a.className,
37702
37699
  onClick = _a.onClick,
37703
37700
  _b = _a.fill,
@@ -37727,7 +37724,7 @@ var FileUploadOutlinedIcon$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
37727
37724
  })]
37728
37725
  }));
37729
37726
  });
37730
- FileUploadOutlinedIcon$1.displayName = 'FileUploadOutlinedIcon';
37727
+ FileUploadOutlinedIcon.displayName = 'FileUploadOutlinedIcon';
37731
37728
 
37732
37729
  var DashboardIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
37733
37730
  var className = _a.className,
@@ -42770,30 +42767,6 @@ function requireCancel () {
42770
42767
  var CancelExports = /*@__PURE__*/ requireCancel();
42771
42768
  var CancelIcon = /*@__PURE__*/getDefaultExportFromCjs(CancelExports);
42772
42769
 
42773
- var OndemandVideo = {};
42774
-
42775
- var hasRequiredOndemandVideo;
42776
-
42777
- function requireOndemandVideo () {
42778
- if (hasRequiredOndemandVideo) return OndemandVideo;
42779
- hasRequiredOndemandVideo = 1;
42780
-
42781
- var _interopRequireDefault = requireInteropRequireDefault();
42782
- Object.defineProperty(OndemandVideo, "__esModule", {
42783
- value: true
42784
- });
42785
- OndemandVideo.default = void 0;
42786
- var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
42787
- var _jsxRuntime = requireJsxRuntime();
42788
- OndemandVideo.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
42789
- d: "M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2m0 14H3V5h18zm-5-6-7 4V7z"
42790
- }), 'OndemandVideo');
42791
- return OndemandVideo;
42792
- }
42793
-
42794
- var OndemandVideoExports = /*@__PURE__*/ requireOndemandVideo();
42795
- var OndemandVideoIcon = /*@__PURE__*/getDefaultExportFromCjs(OndemandVideoExports);
42796
-
42797
42770
  dt.div(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n position: relative;\n cursor: pointer;\n overflow: hidden;\n padding: 10px;\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-radius: 4px;\n height: 100%;\n transition: border 0.2s ease;\n\n .image_wrapper {\n position: relative;\n padding-top: 10px;\n width: 100px;\n height: 100px;\n border-radius: 4px;\n svg {\n position: absolute;\n right: -11px;\n top: 0px;\n }\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n\n .video_wrapper {\n padding: 5px 10px;\n background: #eee;\n margin-top: 10px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n svg {\n color: red;\n }\n }\n\n .file_wrapper {\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n svg {\n font-size: 20px;\n color: red;\n margin-left: 10px;\n }\n }\n\n label {\n cursor: pointer;\n display: flex;\n .MuiSvgIcon-fontSizeLarge {\n font-size: 5.1875rem;\n }\n\n svg {\n transform: scale(0.8);\n transition: transform 0.2s ease;\n }\n }\n input {\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n\n &.full {\n display: flex;\n align-items: center;\n justify-content: center;\n\n header {\n margin-right: 15px;\n }\n\n label {\n align-items: center;\n justify-content: center;\n width: 100%;\n }\n\n label svg {\n transform: scale(1);\n }\n }\n\n &.uploaded {\n border: 1px solid rgba(0, 0, 0, 0.3);\n\n header {\n color: rgba(0, 0, 0, 0.74);\n }\n\n label svg {\n transform: scale(1);\n }\n }\n"], ["\n position: relative;\n cursor: pointer;\n overflow: hidden;\n padding: 10px;\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-radius: 4px;\n height: 100%;\n transition: border 0.2s ease;\n\n .image_wrapper {\n position: relative;\n padding-top: 10px;\n width: 100px;\n height: 100px;\n border-radius: 4px;\n svg {\n position: absolute;\n right: -11px;\n top: 0px;\n }\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n\n .video_wrapper {\n padding: 5px 10px;\n background: #eee;\n margin-top: 10px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n svg {\n color: red;\n }\n }\n\n .file_wrapper {\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n svg {\n font-size: 20px;\n color: red;\n margin-left: 10px;\n }\n }\n\n label {\n cursor: pointer;\n display: flex;\n .MuiSvgIcon-fontSizeLarge {\n font-size: 5.1875rem;\n }\n\n svg {\n transform: scale(0.8);\n transition: transform 0.2s ease;\n }\n }\n input {\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n\n &.full {\n display: flex;\n align-items: center;\n justify-content: center;\n\n header {\n margin-right: 15px;\n }\n\n label {\n align-items: center;\n justify-content: center;\n width: 100%;\n }\n\n label svg {\n transform: scale(1);\n }\n }\n\n &.uploaded {\n border: 1px solid rgba(0, 0, 0, 0.3);\n\n header {\n color: rgba(0, 0, 0, 0.74);\n }\n\n label svg {\n transform: scale(1);\n }\n }\n"])));
42798
42771
  dt.div(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\n position: absolute;\n z-index: 2;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n border-radius: 4px;\n"], ["\n position: absolute;\n z-index: 2;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n border-radius: 4px;\n"])));
42799
42772
  dt.div(templateObject_3$a || (templateObject_3$a = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n padding: 0 30px;\n > div {\n width: 100%;\n text-align: center;\n }\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n padding: 0 30px;\n > div {\n width: 100%;\n text-align: center;\n }\n"])));
@@ -42804,147 +42777,87 @@ dt.div(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\n ba
42804
42777
  // Uploader
42805
42778
  ])));
42806
42779
  // Uploader
42807
- var Container$3 = dt.div(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n width: 100%;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n position: relative;\n"], ["\n width: 100%;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n position: relative;\n"])));
42808
- var ErrorText = dt.div(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\n font-size: 12px;\n color: #d32f2f;\n margin-left: 5px;\n margin-top: -15px;\n"], ["\n font-size: 12px;\n color: #d32f2f;\n margin-left: 5px;\n margin-top: -15px;\n"])));
42809
- var FlexContainer = dt.div(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n align-items: center;\n"], ["\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n align-items: center;\n"])));
42810
- var ItemContainer = dt.div(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\n width: ", ";\n position: relative;\n"], ["\n width: ", ";\n position: relative;\n"])), function (_a) {
42811
- var width = _a.width;
42812
- return width || '100%';
42813
- });
42814
- dt.div(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n width: 390px;\n"], ["\n width: 390px;\n"])));
42815
- var CancelButton = dt.div(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n top: ", ";\n cursor: pointer;\n"], ["\n position: absolute;\n right: ", ";\n top: ", ";\n cursor: pointer;\n"])), function (_a) {
42780
+ var Container$3 = dt.div(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n width: 100%;\n box-sizing: border-box;\n padding: 14px 10px;\n border: 1px solid rgba(0, 0, 0, 0.23);\n display: grid;\n grid-template-columns: 86px auto;\n align-items: center;\n position: relative;\n"], ["\n width: 100%;\n box-sizing: border-box;\n padding: 14px 10px;\n border: 1px solid rgba(0, 0, 0, 0.23);\n display: grid;\n grid-template-columns: 86px auto;\n align-items: center;\n position: relative;\n"])));
42781
+ var ItemContainer = dt.div(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject([""], [""])));
42782
+ dt.div(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n width: 390px;\n"], ["\n width: 390px;\n"])));
42783
+ var CancelButton = dt.div(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n top: ", ";\n cursor: pointer;\n"], ["\n position: absolute;\n right: ", ";\n top: ", ";\n cursor: pointer;\n"])), function (_a) {
42816
42784
  var right = _a.right;
42817
- return right || '-13px';
42785
+ return right || '-12px';
42818
42786
  }, function (_a) {
42819
42787
  var top = _a.top;
42820
- return top || '5px';
42821
- });
42822
- var InputFileContainer = dt.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n position: relative;\n display: flex;\n justify-content: flex-end;\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: flex-end;\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"])));
42823
- var UploadInput = dt.input(templateObject_15 || (templateObject_15 = __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"])));
42824
- dt.div(templateObject_16 || (templateObject_16 = __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"])));
42825
- var ImagePlaceholder = dt.div(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n cursor: pointer;\n\n img {\n position: relative;\n border: 1px solid #08c694;\n width: 100%;\n height: ", "px;\n object-fit: cover;\n top: 2px;\n }\n"], ["\n display: flex;\n justify-content: flex-end;\n cursor: pointer;\n\n img {\n position: relative;\n border: 1px solid #08c694;\n width: 100%;\n height: ", "px;\n object-fit: cover;\n top: 2px;\n }\n"])), function (_a) {
42826
- var height = _a.height;
42827
- return height || 60;
42788
+ return top || '-12px';
42828
42789
  });
42829
- var InputLabel = dt.label(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 2px;\n padding: 5px 5px;\n max-width: 150px;\n cursor: pointer;\n background: #fff;\n border: 1px solid #08c694;\n color: #08c694;\n font-size: 19px;\n font-weight: 400;\n border-radius: 4px;\n width: 130px;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 2px;\n padding: 5px 5px;\n max-width: 150px;\n cursor: pointer;\n background: #fff;\n border: 1px solid #08c694;\n color: #08c694;\n font-size: 19px;\n font-weight: 400;\n border-radius: 4px;\n width: 130px;\n"
42790
+ 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
+ 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
+ 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"])));
42794
+ 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"
42830
42795
  // UploaderButton
42831
42796
  ])));
42832
42797
  // UploaderButton
42833
- dt.label(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n cursor: pointer;\n color: #fff;\n background: #06c68f;\n font-size: 11px;\n padding: 4px 6px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n"], ["\n cursor: pointer;\n color: #fff;\n background: #06c68f;\n font-size: 11px;\n padding: 4px 6px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n"])));
42834
- dt.div(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n input {\n opacity: 0;\n width: 1px;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n"], ["\n input {\n opacity: 0;\n width: 1px;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n"])));
42835
- var VideoPlaceholder = dt.div(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n margin-left: auto;\n margin-top: 3px;\n width: 60px;\n cursor: pointer;\n"], ["\n margin-left: auto;\n margin-top: 3px;\n width: 60px;\n cursor: pointer;\n"])));
42836
- var DefaultPlaceholder = dt.div(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n margin-left: 23px;\n margin-top: 3px;\n cursor: pointer;\n"], ["\n margin-left: 23px;\n margin-top: 3px;\n cursor: pointer;\n"])));
42837
- var LoadingProgressContainer = dt.div(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n margin-left: 19px;\n margin-top: 2px;\n"], ["\n margin-left: 19px;\n margin-top: 2px;\n"])));
42838
- var CircularProgressStyles = {
42839
- width: '32px',
42840
- height: '32px'
42841
- };
42842
- var Title = dt.h2(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n font-size: 16px;\n font-weight: 550;\n margin-bottom: 5px;\n\n ", "\n"], ["\n font-size: 16px;\n font-weight: 550;\n margin-bottom: 5px;\n\n ", "\n"])), function (_a) {
42798
+ dt.label(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n cursor: pointer;\n color: #fff;\n background: #06c68f;\n font-size: 11px;\n padding: 4px 6px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n"], ["\n cursor: pointer;\n color: #fff;\n background: #06c68f;\n font-size: 11px;\n padding: 4px 6px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n"])));
42799
+ dt.div(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n input {\n opacity: 0;\n width: 1px;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n"], ["\n input {\n opacity: 0;\n width: 1px;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n"])));
42800
+ dt.div(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n margin-left: auto;\n margin-top: 3px;\n width: 60px;\n cursor: pointer;\n"], ["\n margin-left: auto;\n margin-top: 3px;\n width: 60px;\n cursor: pointer;\n"])));
42801
+ dt.div(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n margin-left: 23px;\n margin-top: 3px;\n cursor: pointer;\n"], ["\n margin-left: 23px;\n margin-top: 3px;\n cursor: pointer;\n"])));
42802
+ dt.div(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n margin-left: 19px;\n margin-top: 2px;\n"], ["\n margin-left: 19px;\n margin-top: 2px;\n"])));
42803
+ var Title = dt.h2(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n font-size: 16px;\n font-weight: 550;\n margin-bottom: 5px;\n\n ", "\n"], ["\n font-size: 16px;\n font-weight: 550;\n margin-bottom: 5px;\n\n ", "\n"])), function (_a) {
42843
42804
  var $required = _a.$required;
42844
42805
  return $required ? "\n &::after {\n content: '*';\n color: red;\n margin-left: 3px;\n }\n " : '';
42845
42806
  });
42846
- 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, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24;
42847
-
42848
- var InsertDriveFile = {};
42849
-
42850
- var hasRequiredInsertDriveFile;
42851
-
42852
- function requireInsertDriveFile () {
42853
- if (hasRequiredInsertDriveFile) return InsertDriveFile;
42854
- hasRequiredInsertDriveFile = 1;
42855
-
42856
- var _interopRequireDefault = requireInteropRequireDefault();
42857
- Object.defineProperty(InsertDriveFile, "__esModule", {
42858
- value: true
42859
- });
42860
- InsertDriveFile.default = void 0;
42861
- var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
42862
- var _jsxRuntime = requireJsxRuntime();
42863
- InsertDriveFile.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
42864
- d: "M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"
42865
- }), 'InsertDriveFile');
42866
- return InsertDriveFile;
42867
- }
42868
-
42869
- var InsertDriveFileExports = /*@__PURE__*/ requireInsertDriveFile();
42870
- var InsertDriveFileIcon = /*@__PURE__*/getDefaultExportFromCjs(InsertDriveFileExports);
42871
-
42872
- var Headset = {};
42873
-
42874
- var hasRequiredHeadset;
42875
-
42876
- function requireHeadset () {
42877
- if (hasRequiredHeadset) return Headset;
42878
- hasRequiredHeadset = 1;
42879
-
42880
- var _interopRequireDefault = requireInteropRequireDefault();
42881
- Object.defineProperty(Headset, "__esModule", {
42882
- value: true
42883
- });
42884
- Headset.default = void 0;
42885
- var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
42886
- var _jsxRuntime = requireJsxRuntime();
42887
- Headset.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
42888
- d: "M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h3c1.66 0 3-1.34 3-3v-7c0-4.97-4.03-9-9-9"
42889
- }), 'Headset');
42890
- return Headset;
42891
- }
42892
-
42893
- var HeadsetExports = /*@__PURE__*/ requireHeadset();
42894
- var HeadsetIcon = /*@__PURE__*/getDefaultExportFromCjs(HeadsetExports);
42895
-
42896
- var FileUploadOutlined = {};
42897
-
42898
- var hasRequiredFileUploadOutlined;
42899
-
42900
- function requireFileUploadOutlined () {
42901
- if (hasRequiredFileUploadOutlined) return FileUploadOutlined;
42902
- hasRequiredFileUploadOutlined = 1;
42903
-
42904
- var _interopRequireDefault = requireInteropRequireDefault();
42905
- Object.defineProperty(FileUploadOutlined, "__esModule", {
42906
- value: true
42907
- });
42908
- FileUploadOutlined.default = void 0;
42909
- var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
42910
- var _jsxRuntime = requireJsxRuntime();
42911
- FileUploadOutlined.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
42912
- d: "M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"
42913
- }), 'FileUploadOutlined');
42914
- return FileUploadOutlined;
42915
- }
42916
-
42917
- var FileUploadOutlinedExports = /*@__PURE__*/ requireFileUploadOutlined();
42918
- var FileUploadOutlinedIcon = /*@__PURE__*/getDefaultExportFromCjs(FileUploadOutlinedExports);
42919
-
42920
- var FileTypes;
42921
- (function (FileTypes) {
42922
- FileTypes["DOCUMENT"] = "document";
42923
- FileTypes["IMAGE"] = "image";
42924
- FileTypes["VIDEO"] = "video";
42925
- FileTypes["AUDIO"] = "audio";
42926
- FileTypes["FILE"] = "file";
42927
- })(FileTypes || (FileTypes = {}));
42807
+ var ErrorText = dt.p(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n font-size: 14px;\n color: #d32f2f;\n margin-top: 4px;\n"], ["\n font-size: 14px;\n color: #d32f2f;\n margin-top: 4px;\n"])));
42808
+ var styles$1 = {
42809
+ thumbnail: {
42810
+ width: '72px',
42811
+ height: '48px',
42812
+ borderRadius: '4px',
42813
+ padding: '4px'
42814
+ }
42815
+ };
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;
42928
42817
 
42818
+ var ImageWithFallback = function ImageWithFallback(_a) {
42819
+ var src = _a.src,
42820
+ alt = _a.alt;
42821
+ var _b = useState(false),
42822
+ hasError = _b[0],
42823
+ setHasError = _b[1];
42824
+ if (hasError) {
42825
+ return jsxRuntimeExports.jsx(CircularProgress, {});
42826
+ }
42827
+ return jsxRuntimeExports.jsx("img", {
42828
+ src: src,
42829
+ alt: alt,
42830
+ style: styles$1.thumbnail,
42831
+ onError: function onError() {
42832
+ return setHasError(true);
42833
+ }
42834
+ });
42835
+ };
42929
42836
  var Loading = function Loading(_a) {
42930
42837
  var type = _a.type,
42931
42838
  loading = _a.loading;
42932
- if ([FileTypes.VIDEO, FileTypes.AUDIO].includes(type)) {
42933
- return jsxRuntimeExports.jsxs(LoadingProgressContainer, {
42839
+ if (['video', 'audio'].includes(type)) {
42840
+ return jsxRuntimeExports.jsxs("div", {
42841
+ style: {
42842
+ marginLeft: '19px',
42843
+ marginTop: '2px'
42844
+ },
42934
42845
  children: [Math.round(loading), " %"]
42935
42846
  });
42936
42847
  }
42937
- return jsxRuntimeExports.jsx(LoadingProgressContainer, {
42848
+ return jsxRuntimeExports.jsx("div", {
42849
+ style: {
42850
+ marginLeft: '19px',
42851
+ marginTop: '2px'
42852
+ },
42938
42853
  children: jsxRuntimeExports.jsx(CircularProgress, {
42939
- style: CircularProgressStyles
42854
+ style: {
42855
+ width: '32px',
42856
+ height: '32px'
42857
+ }
42940
42858
  })
42941
42859
  });
42942
42860
  };
42943
- var handleFileClick = function handleFileClick(link) {
42944
- if (link) {
42945
- window.open(link, '_blank');
42946
- }
42947
- };
42948
42861
  var Uploader = function Uploader(_a) {
42949
42862
  var type = _a.type,
42950
42863
  uploadedFile = _a.uploadedFile,
@@ -42959,145 +42872,168 @@ var Uploader = function Uploader(_a) {
42959
42872
  accept = _a.accept,
42960
42873
  name = _a.name,
42961
42874
  multiple = _a.multiple,
42962
- placeHolder = _a.placeHolder,
42963
- _b = _a.showFullPreview,
42964
- showFullPreview = _b === void 0 ? false : _b,
42965
- inputClassName = _a.inputClassName,
42966
- touched = _a.touched,
42875
+ fileExtension = _a.fileExtension,
42967
42876
  error = _a.error,
42968
- nameClassName = _a.nameClassName,
42969
- _c = _a.required,
42970
- required = _c === void 0 ? false : _c;
42877
+ _b = _a.required,
42878
+ required = _b === void 0 ? false : _b;
42971
42879
  var t = useTranslation().t;
42972
- var InlineFilePreview = function InlineFilePreview() {
42973
- var file = uploadedFile;
42880
+ var filePreview = function filePreview() {
42881
+ var _a;
42882
+ // pdf is in file type too so we need to check for pdf explicitly
42883
+ if (((_a = uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.link) === null || _a === void 0 ? void 0 : _a.split('.').pop()) === 'pdf') {
42884
+ return jsxRuntimeExports.jsx(ImagePlaceholder, {
42885
+ children: jsxRuntimeExports.jsx("div", {
42886
+ style: {
42887
+ fontSize: '10px',
42888
+ textAlign: 'center',
42889
+ padding: '4px',
42890
+ width: '72px',
42891
+ height: '48px',
42892
+ display: 'flex',
42893
+ alignItems: 'center',
42894
+ justifyContent: 'center',
42895
+ background: '#f5f5f5',
42896
+ borderRadius: '4px'
42897
+ },
42898
+ children: "PDF"
42899
+ })
42900
+ });
42901
+ }
42974
42902
  switch (type) {
42975
- case FileTypes.IMAGE:
42903
+ case 'image':
42976
42904
  return jsxRuntimeExports.jsx(ImagePlaceholder, {
42977
- onClick: function onClick() {
42978
- handleFileClick(file.link);
42979
- },
42980
- children: jsxRuntimeExports.jsx("img", {
42981
- src: file === null || file === void 0 ? void 0 : file.link,
42982
- alt: ''
42905
+ children: jsxRuntimeExports.jsx(ImageWithFallback, {
42906
+ src: (uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.link) || '',
42907
+ alt: 'Image Thumbnail'
42983
42908
  })
42984
42909
  });
42985
- case FileTypes.VIDEO:
42986
- return jsxRuntimeExports.jsx(VideoPlaceholder, {
42987
- onClick: function onClick() {
42988
- var _a, _b;
42989
- handleFileClick((_b = (_a = file.links) === null || _a === void 0 ? void 0 : _a[4]) === null || _b === void 0 ? void 0 : _b.url);
42910
+ case 'file':
42911
+ return jsxRuntimeExports.jsx(ImagePlaceholder, {
42912
+ children: jsxRuntimeExports.jsx("div", {
42913
+ style: {
42914
+ fontSize: '10px',
42915
+ textAlign: 'center',
42916
+ padding: '4px',
42917
+ width: '72px',
42918
+ height: '48px',
42919
+ display: 'flex',
42920
+ alignItems: 'center',
42921
+ justifyContent: 'center',
42922
+ background: '#f5f5f5',
42923
+ borderRadius: '4px'
42924
+ },
42925
+ children: "FILE"
42926
+ })
42927
+ });
42928
+ case 'video':
42929
+ return jsxRuntimeExports.jsx("div", {
42930
+ style: {
42931
+ marginTop: '3px'
42990
42932
  },
42991
- children: jsxRuntimeExports.jsx(OndemandVideoIcon, {
42992
- color: 'secondary'
42933
+ children: jsxRuntimeExports.jsx("div", {
42934
+ style: {
42935
+ fontSize: '10px',
42936
+ textAlign: 'center',
42937
+ padding: '4px',
42938
+ width: '72px',
42939
+ height: '48px',
42940
+ display: 'flex',
42941
+ alignItems: 'center',
42942
+ justifyContent: 'center',
42943
+ background: '#f5f5f5',
42944
+ borderRadius: '4px'
42945
+ },
42946
+ children: "VIDEO"
42993
42947
  })
42994
42948
  });
42995
- case FileTypes.AUDIO:
42996
- return jsxRuntimeExports.jsx(DefaultPlaceholder, {
42997
- onClick: function onClick() {
42998
- handleFileClick(file.link);
42949
+ case 'audio':
42950
+ return jsxRuntimeExports.jsx("div", {
42951
+ style: {
42952
+ marginTop: '3px'
42999
42953
  },
43000
- children: jsxRuntimeExports.jsx(HeadsetIcon, {
43001
- color: 'secondary'
42954
+ children: jsxRuntimeExports.jsx("div", {
42955
+ style: {
42956
+ fontSize: '10px',
42957
+ textAlign: 'center',
42958
+ padding: '4px',
42959
+ width: '72px',
42960
+ height: '48px',
42961
+ display: 'flex',
42962
+ alignItems: 'center',
42963
+ justifyContent: 'center',
42964
+ background: '#f5f5f5',
42965
+ borderRadius: '4px'
42966
+ },
42967
+ children: "AUDIO"
43002
42968
  })
43003
42969
  });
43004
42970
  default:
43005
- return jsxRuntimeExports.jsx(DefaultPlaceholder, {
43006
- onClick: function onClick() {
43007
- handleFileClick(file.link);
43008
- },
43009
- children: jsxRuntimeExports.jsx(InsertDriveFileIcon, {
43010
- color: 'secondary'
42971
+ return jsxRuntimeExports.jsx(ImagePlaceholder, {
42972
+ children: jsxRuntimeExports.jsx("div", {
42973
+ style: {
42974
+ fontSize: '10px',
42975
+ textAlign: 'center',
42976
+ padding: '4px',
42977
+ width: '72px',
42978
+ height: '48px',
42979
+ display: 'flex',
42980
+ alignItems: 'center',
42981
+ justifyContent: 'center',
42982
+ background: '#f5f5f5',
42983
+ borderRadius: '4px'
42984
+ },
42985
+ children: "FILE"
43011
42986
  })
43012
42987
  });
43013
42988
  }
43014
42989
  };
43015
- return jsxRuntimeExports.jsxs(Container$3, {
42990
+ return jsxRuntimeExports.jsxs("div", {
43016
42991
  children: [label && jsxRuntimeExports.jsx(Title, {
43017
42992
  "$required": required,
43018
42993
  children: label
43019
- }), jsxRuntimeExports.jsxs(FlexContainer, {
43020
- children: [jsxRuntimeExports.jsx(ItemContainer, {
43021
- width: '75%',
42994
+ }), jsxRuntimeExports.jsxs(Container$3, {
42995
+ children: [jsxRuntimeExports.jsxs(ItemContainer, {
42996
+ children: [!uploadedFile && !loading && jsxRuntimeExports.jsxs(InputFileContainer, {
42997
+ children: [jsxRuntimeExports.jsx(UploadInput, {
42998
+ type: 'file',
42999
+ name: name,
43000
+ id: id,
43001
+ onChange: onFileChange,
43002
+ multiple: multiple,
43003
+ accept: accept
43004
+ }), jsxRuntimeExports.jsx(InputLabel, {
43005
+ htmlFor: id,
43006
+ children: t('actions.choose_file') || 'Choose File'
43007
+ })]
43008
+ }), loading && jsxRuntimeExports.jsx(Loading, {
43009
+ type: type || 'file',
43010
+ loading: loading
43011
+ }), !disabled && uploadedFile && filePreview()]
43012
+ }), jsxRuntimeExports.jsx(ItemContainer, {
43022
43013
  children: jsxRuntimeExports.jsx(TextInput, {
43023
- label: '',
43024
- placeholder: placeHolder ? placeHolder : 'Supported formats are PNG, JPG, JPEG',
43014
+ label: inputValue ? '' : "".concat(t('form_fields.file_name') || 'File name', " ").concat(fileExtension || ''),
43025
43015
  name: 'file',
43026
43016
  size: 'small',
43027
43017
  type: 'text',
43028
43018
  fullWidth: true,
43029
- touched: touched,
43030
- error: !!error,
43031
- value: inputValue,
43019
+ value: inputValue || '',
43032
43020
  onChange: onInputChange,
43033
43021
  disabled: disabled
43034
43022
  })
43035
- }), showFullPreview ? jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
43036
- children: [jsxRuntimeExports.jsx(ItemContainer, {
43037
- width: '23%',
43038
- children: loading ? jsxRuntimeExports.jsx(Loading, {
43039
- type: type,
43040
- loading: loading
43041
- }) : jsxRuntimeExports.jsxs(InputFileContainer, {
43042
- children: [jsxRuntimeExports.jsx(UploadInput, {
43043
- type: 'file',
43044
- className: nameClassName,
43045
- name: name,
43046
- id: id,
43047
- onChange: onFileChange,
43048
- multiple: multiple,
43049
- accept: accept
43050
- }), jsxRuntimeExports.jsxs(InputLabel, {
43051
- htmlFor: id,
43052
- children: [jsxRuntimeExports.jsx(FileUploadOutlinedIcon, {}), t('general.upload') || 'Upload', ' ']
43053
- })]
43054
- })
43055
- }), uploadedFile && type === FileTypes.IMAGE && jsxRuntimeExports.jsx(ImagePlaceholder, {
43056
- height: 160,
43057
- children: uploadedFile.link && jsxRuntimeExports.jsx("img", {
43058
- src: uploadedFile.link,
43059
- alt: 'Input Image'
43060
- })
43061
- }), uploadedFile && jsxRuntimeExports.jsx(CancelButton, {
43062
- onClick: deleteFile,
43063
- right: '160px',
43064
- top: '37px',
43065
- children: jsxRuntimeExports.jsx(CancelIcon, {
43066
- style: {
43067
- color: 'rgba(179, 179, 184, 1)'
43068
- }
43069
- })
43070
- })]
43071
- }) : jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
43072
- children: [jsxRuntimeExports.jsxs(ItemContainer, {
43073
- width: '23%',
43074
- children: [!uploadedFile && !loading && jsxRuntimeExports.jsxs(InputFileContainer, {
43075
- children: [jsxRuntimeExports.jsx(UploadInput, {
43076
- type: 'file',
43077
- className: inputClassName,
43078
- name: name,
43079
- id: id,
43080
- onChange: onFileChange,
43081
- multiple: multiple,
43082
- accept: accept
43083
- }), jsxRuntimeExports.jsxs(InputLabel, {
43084
- htmlFor: id,
43085
- children: [jsxRuntimeExports.jsx(FileUploadOutlinedIcon, {}), t('general.upload')]
43086
- })]
43087
- }), loading && jsxRuntimeExports.jsx(Loading, {
43088
- type: type,
43089
- loading: loading
43090
- }), uploadedFile && InlineFilePreview()]
43091
- }), uploadedFile && jsxRuntimeExports.jsx(CancelButton, {
43092
- onClick: deleteFile,
43093
- children: jsxRuntimeExports.jsx(CancelIcon, {
43094
- style: {
43095
- color: '#06C68F'
43096
- }
43097
- })
43098
- }), ' ']
43023
+ }), uploadedFile && jsxRuntimeExports.jsx(CancelButton, {
43024
+ onClick: function onClick(e) {
43025
+ e.stopPropagation();
43026
+ if (deleteFile) {
43027
+ deleteFile();
43028
+ }
43029
+ },
43030
+ children: jsxRuntimeExports.jsx(CancelIcon, {
43031
+ style: {
43032
+ color: '#06C68F'
43033
+ }
43034
+ })
43099
43035
  })]
43100
- }), error && touched && jsxRuntimeExports.jsx(ErrorText, {
43036
+ }), error && jsxRuntimeExports.jsx(ErrorText, {
43101
43037
  children: error
43102
43038
  })]
43103
43039
  });
@@ -81399,7 +81335,7 @@ function requirePlayers () {
81399
81335
  canPlay: import_patterns.canPlay.youtube,
81400
81336
  lazyPlayer: (0, import_utils.lazy)(() => import(
81401
81337
  /* webpackChunkName: 'reactPlayerYouTube' */
81402
- './YouTube-DvS99YSi.esm.js'
81338
+ './YouTube-DVacs1Or.esm.js'
81403
81339
  ).then(function (n) { return n.Y; }))
81404
81340
  },
81405
81341
  {
@@ -81408,7 +81344,7 @@ function requirePlayers () {
81408
81344
  canPlay: import_patterns.canPlay.soundcloud,
81409
81345
  lazyPlayer: (0, import_utils.lazy)(() => import(
81410
81346
  /* webpackChunkName: 'reactPlayerSoundCloud' */
81411
- './SoundCloud-1OvUzexh.esm.js'
81347
+ './SoundCloud-oy_T9Aiu.esm.js'
81412
81348
  ).then(function (n) { return n.S; }))
81413
81349
  },
81414
81350
  {
@@ -81417,7 +81353,7 @@ function requirePlayers () {
81417
81353
  canPlay: import_patterns.canPlay.vimeo,
81418
81354
  lazyPlayer: (0, import_utils.lazy)(() => import(
81419
81355
  /* webpackChunkName: 'reactPlayerVimeo' */
81420
- './Vimeo-B6eklZts.esm.js'
81356
+ './Vimeo-BuGV9164.esm.js'
81421
81357
  ).then(function (n) { return n.V; }))
81422
81358
  },
81423
81359
  {
@@ -81426,7 +81362,7 @@ function requirePlayers () {
81426
81362
  canPlay: import_patterns.canPlay.mux,
81427
81363
  lazyPlayer: (0, import_utils.lazy)(() => import(
81428
81364
  /* webpackChunkName: 'reactPlayerMux' */
81429
- './Mux-bOE4IGCQ.esm.js'
81365
+ './Mux-BVKUzr2W.esm.js'
81430
81366
  ).then(function (n) { return n.M; }))
81431
81367
  },
81432
81368
  {
@@ -81435,7 +81371,7 @@ function requirePlayers () {
81435
81371
  canPlay: import_patterns.canPlay.facebook,
81436
81372
  lazyPlayer: (0, import_utils.lazy)(() => import(
81437
81373
  /* webpackChunkName: 'reactPlayerFacebook' */
81438
- './Facebook-g8siL1GN.esm.js'
81374
+ './Facebook-B1WhW-N8.esm.js'
81439
81375
  ).then(function (n) { return n.F; }))
81440
81376
  },
81441
81377
  {
@@ -81444,7 +81380,7 @@ function requirePlayers () {
81444
81380
  canPlay: import_patterns.canPlay.streamable,
81445
81381
  lazyPlayer: (0, import_utils.lazy)(() => import(
81446
81382
  /* webpackChunkName: 'reactPlayerStreamable' */
81447
- './Streamable-DkZbzMhq.esm.js'
81383
+ './Streamable-BEA6SKQj.esm.js'
81448
81384
  ).then(function (n) { return n.S; }))
81449
81385
  },
81450
81386
  {
@@ -81453,7 +81389,7 @@ function requirePlayers () {
81453
81389
  canPlay: import_patterns.canPlay.wistia,
81454
81390
  lazyPlayer: (0, import_utils.lazy)(() => import(
81455
81391
  /* webpackChunkName: 'reactPlayerWistia' */
81456
- './Wistia-T3lTN9f9.esm.js'
81392
+ './Wistia-ZeBeRmW3.esm.js'
81457
81393
  ).then(function (n) { return n.W; }))
81458
81394
  },
81459
81395
  {
@@ -81462,7 +81398,7 @@ function requirePlayers () {
81462
81398
  canPlay: import_patterns.canPlay.twitch,
81463
81399
  lazyPlayer: (0, import_utils.lazy)(() => import(
81464
81400
  /* webpackChunkName: 'reactPlayerTwitch' */
81465
- './Twitch-CAR5VDqo.esm.js'
81401
+ './Twitch-DPtzkrmp.esm.js'
81466
81402
  ).then(function (n) { return n.T; }))
81467
81403
  },
81468
81404
  {
@@ -81471,7 +81407,7 @@ function requirePlayers () {
81471
81407
  canPlay: import_patterns.canPlay.dailymotion,
81472
81408
  lazyPlayer: (0, import_utils.lazy)(() => import(
81473
81409
  /* webpackChunkName: 'reactPlayerDailyMotion' */
81474
- './DailyMotion-fTfJbAKR.esm.js'
81410
+ './DailyMotion-DIc5BN6G.esm.js'
81475
81411
  ).then(function (n) { return n.D; }))
81476
81412
  },
81477
81413
  {
@@ -81480,7 +81416,7 @@ function requirePlayers () {
81480
81416
  canPlay: import_patterns.canPlay.mixcloud,
81481
81417
  lazyPlayer: (0, import_utils.lazy)(() => import(
81482
81418
  /* webpackChunkName: 'reactPlayerMixcloud' */
81483
- './Mixcloud-1pcndu_p.esm.js'
81419
+ './Mixcloud-DgO-TXVn.esm.js'
81484
81420
  ).then(function (n) { return n.M; }))
81485
81421
  },
81486
81422
  {
@@ -81489,7 +81425,7 @@ function requirePlayers () {
81489
81425
  canPlay: import_patterns.canPlay.vidyard,
81490
81426
  lazyPlayer: (0, import_utils.lazy)(() => import(
81491
81427
  /* webpackChunkName: 'reactPlayerVidyard' */
81492
- './Vidyard-Dj__VHEu.esm.js'
81428
+ './Vidyard-C80XYDQJ.esm.js'
81493
81429
  ).then(function (n) { return n.V; }))
81494
81430
  },
81495
81431
  {
@@ -81498,7 +81434,7 @@ function requirePlayers () {
81498
81434
  canPlay: import_patterns.canPlay.kaltura,
81499
81435
  lazyPlayer: (0, import_utils.lazy)(() => import(
81500
81436
  /* webpackChunkName: 'reactPlayerKaltura' */
81501
- './Kaltura-CgG6fwG2.esm.js'
81437
+ './Kaltura-Dv3nF_qk.esm.js'
81502
81438
  ).then(function (n) { return n.K; }))
81503
81439
  },
81504
81440
  {
@@ -81510,7 +81446,7 @@ function requirePlayers () {
81510
81446
  },
81511
81447
  lazyPlayer: (0, import_utils.lazy)(() => import(
81512
81448
  /* webpackChunkName: 'reactPlayerFilePlayer' */
81513
- './FilePlayer--e_TvukB.esm.js'
81449
+ './FilePlayer-BVX0TAd4.esm.js'
81514
81450
  ).then(function (n) { return n.F; }))
81515
81451
  }
81516
81452
  ];
@@ -82331,7 +82267,7 @@ function requireReactPlayer () {
82331
82267
  var import_Player = __toESM(/*@__PURE__*/ requirePlayer());
82332
82268
  const Preview = (0, import_utils.lazy)(() => import(
82333
82269
  /* webpackChunkName: 'reactPlayerPreview' */
82334
- './Preview-ZZ8yCxMr.esm.js'
82270
+ './Preview-BYYoOVhE.esm.js'
82335
82271
  ).then(function (n) { return n.P; }));
82336
82272
  const IS_BROWSER = typeof window !== "undefined" && window.document && typeof document !== "undefined";
82337
82273
  const IS_GLOBAL = typeof commonjsGlobal !== "undefined" && commonjsGlobal.window && commonjsGlobal.window.document;
@@ -82587,16 +82523,17 @@ var StyledVolumeSlider = dt.input(templateObject_4$1 || (templateObject_4$1 = __
82587
82523
  });
82588
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"])));
82589
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"])));
82590
- var StyledTimeTrack = dt.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n color: var(--neutral-colors-light);\n ", "\n text-align: right;\n white-space: nowrap;\n"], ["\n color: var(--neutral-colors-light);\n ", "\n text-align: right;\n white-space: nowrap;\n"])), {
82526
+ 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"])), {
82591
82527
  fontStyle: 'descriptor'
82592
82528
  });
82593
- var StyledHeartIconContainer = dt.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n & > svg > path {\n fill: var(--neutral-colors-light);\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n\n & > svg > path {\n fill: var(--neutral-colors-light);\n }\n"])));
82529
+ var StyledHeartIconContainer = dt.div(templateObject_8 || (templateObject_8 = __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"])));
82594
82530
  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"])));
82595
- var StyledSubtitlesIconContainer = dt.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
82596
- 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 display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n"])));
82597
- 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 display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n"])));
82598
- 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 display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n"])));
82599
- 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;
82531
+ 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
+ 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;
82600
82537
 
82601
82538
  var PLAYBACK_SPEED_LIST = [{
82602
82539
  label: 'playback_speed.2x',
@@ -82874,18 +82811,34 @@ var Controls = function Controls(_a) {
82874
82811
  onChange: seekHandler,
82875
82812
  onMouseUp: seekMouseUpHandler
82876
82813
  }), jsxRuntimeExports.jsxs(StyledControllerLeft, {
82877
- children: [jsxRuntimeExports.jsx(StyledPlayPauseIconContainer, {
82878
- onClick: playPauseHandler,
82879
- children: playing ? jsxRuntimeExports.jsx(PauseIcon, {}) : jsxRuntimeExports.jsx(PlayIcon, {})
82880
- }), jsxRuntimeExports.jsx(RewindIcon, {
82881
- onClick: rewindHandler
82882
- }), jsxRuntimeExports.jsx(RewindIcon, {
82883
- forward: true,
82884
- onClick: handleFastForward
82814
+ children: [jsxRuntimeExports.jsx(CustomTooltip, {
82815
+ title: playing ? 'Pause' : 'Play',
82816
+ children: jsxRuntimeExports.jsx(StyledPlayPauseIconContainer, {
82817
+ onClick: playPauseHandler,
82818
+ children: playing ? jsxRuntimeExports.jsx(PauseIcon, {}) : jsxRuntimeExports.jsx(PlayIcon, {})
82819
+ })
82820
+ }), jsxRuntimeExports.jsx(CustomTooltip, {
82821
+ title: "Rewind 10 seconds",
82822
+ children: jsxRuntimeExports.jsx(StyledRewindIconContainer, {
82823
+ children: jsxRuntimeExports.jsx(RewindIcon, {
82824
+ onClick: rewindHandler
82825
+ })
82826
+ })
82827
+ }), jsxRuntimeExports.jsx(CustomTooltip, {
82828
+ title: "Forward 10 seconds",
82829
+ children: jsxRuntimeExports.jsx(StyledRewindIconContainer, {
82830
+ children: jsxRuntimeExports.jsx(RewindIcon, {
82831
+ forward: true,
82832
+ onClick: handleFastForward
82833
+ })
82834
+ })
82885
82835
  }), jsxRuntimeExports.jsxs(StyledVolumeWrapper, {
82886
- children: [jsxRuntimeExports.jsx(StyledVolumeIconContainer, {
82887
- onClick: muteHandler,
82888
- children: muted ? jsxRuntimeExports.jsx(VolumeMuteIcon, {}) : jsxRuntimeExports.jsx(VolumeUpIcon, {})
82836
+ children: [jsxRuntimeExports.jsx(CustomTooltip, {
82837
+ title: muted ? 'Unmute' : 'Mute',
82838
+ children: jsxRuntimeExports.jsx(StyledVolumeIconContainer, {
82839
+ onClick: muteHandler,
82840
+ children: muted ? jsxRuntimeExports.jsx(VolumeMuteIcon, {}) : jsxRuntimeExports.jsx(VolumeUpIcon, {})
82841
+ })
82889
82842
  }), jsxRuntimeExports.jsx(StyledVolumeSlider, {
82890
82843
  type: 'range',
82891
82844
  value: volume * 100,
@@ -82895,27 +82848,39 @@ var Controls = function Controls(_a) {
82895
82848
  children: [formatCurrentTime, " /", formatDuration]
82896
82849
  })]
82897
82850
  }), jsxRuntimeExports.jsxs(StyledControllerRight, {
82898
- children: [handleSkipBackward && jsxRuntimeExports.jsx(SkipIcon, {
82899
- onClick: function onClick() {
82900
- if (!isPreviousVideo) return;
82901
- handleSkipBackward();
82902
- },
82903
- className: isPreviousVideo ? '' : 'skip-icon-disabled'
82904
- }), handleSkipForward && jsxRuntimeExports.jsx(SkipIcon, {
82905
- forward: true,
82906
- onClick: function onClick() {
82907
- if (!isNextVideo) return;
82908
- handleSkipForward();
82909
- },
82910
- className: isNextVideo ? '' : 'skip-icon-disabled'
82911
- }), showFavorite && jsxRuntimeExports.jsx(StyledHeartIconContainer, {
82912
- children: jsxRuntimeExports.jsx(HeartIcon, {
82913
- active: isFavorite,
82914
- onClick: toggleIsFavorite
82851
+ children: [handleSkipBackward && jsxRuntimeExports.jsx(CustomTooltip, {
82852
+ 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'
82915
82859
  })
82916
- }), showDownload && downloadUrl && jsxRuntimeExports.jsx(StyledDownloadIconContainer, {
82917
- children: jsxRuntimeExports.jsx(DownloadIcon, {
82918
- onClick: handleDownloadClick
82860
+ }), handleSkipForward && jsxRuntimeExports.jsx(CustomTooltip, {
82861
+ 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'
82869
+ })
82870
+ }), showFavorite && jsxRuntimeExports.jsx(CustomTooltip, {
82871
+ title: isFavorite ? 'Remove from favorites' : 'Add to favorites',
82872
+ children: jsxRuntimeExports.jsx(StyledHeartIconContainer, {
82873
+ children: jsxRuntimeExports.jsx(HeartIcon, {
82874
+ active: isFavorite,
82875
+ onClick: toggleIsFavorite
82876
+ })
82877
+ })
82878
+ }), showDownload && downloadUrl && jsxRuntimeExports.jsx(CustomTooltip, {
82879
+ title: "Download video",
82880
+ children: jsxRuntimeExports.jsx(StyledDownloadIconContainer, {
82881
+ children: jsxRuntimeExports.jsx(DownloadIcon, {
82882
+ onClick: handleDownloadClick
82883
+ })
82919
82884
  })
82920
82885
  }), jsxRuntimeExports.jsx(PlaybackSpeedMenu, {
82921
82886
  playbackSpeed: playbackRate,
@@ -82933,14 +82898,20 @@ var Controls = function Controls(_a) {
82933
82898
  right: '8px',
82934
82899
  left: 'auto'
82935
82900
  }
82936
- }), subtitle && jsxRuntimeExports.jsx(StyledSubtitlesIconContainer, {
82937
- children: jsxRuntimeExports.jsx(SubtitlesIcon, {
82938
- active: isSubtitlesChecked,
82939
- onClick: toggleSubtitlesCheck
82901
+ }), subtitle && jsxRuntimeExports.jsx(CustomTooltip, {
82902
+ title: isSubtitlesChecked ? 'Hide subtitles' : 'Show subtitles',
82903
+ children: jsxRuntimeExports.jsx(StyledSubtitlesIconContainer, {
82904
+ children: jsxRuntimeExports.jsx(SubtitlesIcon, {
82905
+ active: isSubtitlesChecked,
82906
+ onClick: toggleSubtitlesCheck
82907
+ })
82908
+ })
82909
+ }), jsxRuntimeExports.jsx(CustomTooltip, {
82910
+ title: isFullscreen ? 'Exit fullscreen' : 'Enter fullscreen',
82911
+ children: jsxRuntimeExports.jsx(StyledFullscreenIconContainer, {
82912
+ onClick: handleFullScreen,
82913
+ children: isFullscreen ? jsxRuntimeExports.jsx(MinimizeIcon, {}) : jsxRuntimeExports.jsx(MaximizeIcon, {})
82940
82914
  })
82941
- }), jsxRuntimeExports.jsx(StyledFullscreenIconContainer, {
82942
- onClick: handleFullScreen,
82943
- children: isFullscreen ? jsxRuntimeExports.jsx(MinimizeIcon, {}) : jsxRuntimeExports.jsx(MaximizeIcon, {})
82944
82915
  })]
82945
82916
  })]
82946
82917
  });