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
@@ -18857,7 +18857,7 @@ const _excluded$13 = ["onChange", "maxRows", "minRows", "style", "value"];
18857
18857
  function getStyleValue(value) {
18858
18858
  return parseInt(value, 10) || 0;
18859
18859
  }
18860
- const styles$3 = {
18860
+ const styles$4 = {
18861
18861
  shadow: {
18862
18862
  // Visibility needed to hide the extra text area on iPads
18863
18863
  visibility: 'hidden',
@@ -19045,7 +19045,7 @@ const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function Texta
19045
19045
  readOnly: true,
19046
19046
  ref: hiddenTextareaRef,
19047
19047
  tabIndex: -1,
19048
- style: _extends$2({}, styles$3.shadow, style, {
19048
+ style: _extends$2({}, styles$4.shadow, style, {
19049
19049
  paddingTop: 0,
19050
19050
  paddingBottom: 0
19051
19051
  })
@@ -19873,7 +19873,7 @@ var ArrowDropDownIcon$2 = createSvgIcon$1( /*#__PURE__*/jsxRuntimeExports.jsx("p
19873
19873
  }), 'ArrowDropDown');
19874
19874
 
19875
19875
  const _excluded$11 = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
19876
- const styles$2 = {
19876
+ const styles$3 = {
19877
19877
  entering: {
19878
19878
  opacity: 1
19879
19879
  },
@@ -19982,7 +19982,7 @@ const Fade = /*#__PURE__*/React__namespace.forwardRef(function Fade(props, ref)
19982
19982
  style: _extends$2({
19983
19983
  opacity: 0,
19984
19984
  visibility: state === 'exited' && !inProp ? 'hidden' : undefined
19985
- }, styles$2[state], style, children.props.style),
19985
+ }, styles$3[state], style, children.props.style),
19986
19986
  ref: handleRef
19987
19987
  }, childProps));
19988
19988
  }
@@ -23995,7 +23995,7 @@ const _excluded$O = ["addEndListener", "appear", "children", "easing", "in", "on
23995
23995
  function getScale$1(value) {
23996
23996
  return `scale(${value}, ${value ** 2})`;
23997
23997
  }
23998
- const styles$1 = {
23998
+ const styles$2 = {
23999
23999
  entering: {
24000
24000
  opacity: 1,
24001
24001
  transform: getScale$1(1)
@@ -24151,7 +24151,7 @@ const Grow = /*#__PURE__*/React__namespace.forwardRef(function Grow(props, ref)
24151
24151
  opacity: 0,
24152
24152
  transform: getScale$1(0.75),
24153
24153
  visibility: state === 'exited' && !inProp ? 'hidden' : undefined
24154
- }, styles$1[state], style, children.props.style),
24154
+ }, styles$2[state], style, children.props.style),
24155
24155
  ref: handleRef
24156
24156
  }, childProps));
24157
24157
  }
@@ -32395,7 +32395,7 @@ var CourseStatusContainer = dt.div(templateObject_13$2 || (templateObject_13$2 =
32395
32395
  var $status = _a.$status;
32396
32396
  return !$status ? '#EA382A' : '#00905E';
32397
32397
  });
32398
- 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"])));
32398
+ dt.div(templateObject_14$2 || (templateObject_14$2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n div {\n font-size: 13px;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n div {\n font-size: 13px;\n }\n"])));
32399
32399
  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"])));
32400
32400
  var StyledCardBottomContainer = dt.div(templateObject_16$1 || (templateObject_16$1 = __makeTemplateObject(["\n display: flex;\n width: 100%;\n flex-direction: column !important;\n align-self: flex-end;\n gap: 10px;\n padding-bottom: 10px;\n"], ["\n display: flex;\n width: 100%;\n flex-direction: column !important;\n align-self: flex-end;\n gap: 10px;\n padding-bottom: 10px;\n"])));
32401
32401
  var StyledActionsContainer = dt.div(templateObject_17$1 || (templateObject_17$1 = __makeTemplateObject(["\n display: flex;\n flex-direction: row !important;\n width: 100%;\n"], ["\n display: flex;\n flex-direction: row !important;\n width: 100%;\n"])));
@@ -32431,7 +32431,7 @@ var GridItemLessons = dt.div(templateObject_23$1 || (templateObject_23$1 = __mak
32431
32431
  }, function (props) {
32432
32432
  return props.checked ? '#333333' : '#20a8c6';
32433
32433
  });
32434
- var StyledToolTipContainer = dt.div(templateObject_24$1 || (templateObject_24$1 = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
32434
+ var StyledToolTipContainer = dt.div(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
32435
32435
  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) {
32436
32436
  var disabled = _a.disabled;
32437
32437
  return disabled ? '0.5' : '1';
@@ -32446,7 +32446,7 @@ var GridItem = dt.div(templateObject_32 || (templateObject_32 = __makeTemplateOb
32446
32446
  var $isFromUser = _a.$isFromUser;
32447
32447
  return $isFromUser && "\n figure {\n position: relative;\n &:after {\n content: 'View Analytics';\n position: absolute;\n top: 0;\n opacity: 0;\n color: #06c68f;\n left: 0;\n font-size: 24px;\n font-weight: 700;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(255, 255, 255, 0.9);\n width: 100%;\n height: 100%;\n transition: opacity 0.3s ease;\n z-index: 10;\n }\n }\n\n &:hover {\n figure {\n &:after {\n opacity: 1;\n }\n }\n }\n " || '';
32448
32448
  });
32449
- var templateObject_1$o, templateObject_2$j, templateObject_3$f, templateObject_4$c, templateObject_5$8, templateObject_6$7, templateObject_7$5, templateObject_8$4, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$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;
32449
+ var templateObject_1$o, templateObject_2$j, templateObject_3$f, templateObject_4$c, templateObject_5$8, templateObject_6$7, templateObject_7$5, templateObject_8$4, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$2, templateObject_15$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;
32450
32450
 
32451
32451
  var TooltipHeight$1 = function TooltipHeight(_a) {
32452
32452
  var text = _a.text,
@@ -36493,7 +36493,7 @@ var FileCopyIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
36493
36493
  });
36494
36494
  FileCopyIcon.displayName = 'FileCopyIcon';
36495
36495
 
36496
- var HeadsetIcon$1 = /*#__PURE__*/React.forwardRef(function (_a, ref) {
36496
+ var HeadsetIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
36497
36497
  var className = _a.className,
36498
36498
  onClick = _a.onClick,
36499
36499
  _b = _a.fill,
@@ -36515,7 +36515,7 @@ var HeadsetIcon$1 = /*#__PURE__*/React.forwardRef(function (_a, ref) {
36515
36515
  })
36516
36516
  }));
36517
36517
  });
36518
- HeadsetIcon$1.displayName = 'HeadsetIcon';
36518
+ HeadsetIcon.displayName = 'HeadsetIcon';
36519
36519
 
36520
36520
  var LockIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
36521
36521
  var className = _a.className,
@@ -37474,7 +37474,7 @@ var HighlightOffRoundedIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
37474
37474
  });
37475
37475
  HighlightOffRoundedIcon.displayName = 'HighlightOffRoundedIcon';
37476
37476
 
37477
- var InsertDriveFileIcon$1 = /*#__PURE__*/React.forwardRef(function (_a, ref) {
37477
+ var InsertDriveFileIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
37478
37478
  var className = _a.className,
37479
37479
  onClick = _a.onClick,
37480
37480
  _b = _a.fill,
@@ -37499,9 +37499,9 @@ var InsertDriveFileIcon$1 = /*#__PURE__*/React.forwardRef(function (_a, ref) {
37499
37499
  })]
37500
37500
  }));
37501
37501
  });
37502
- InsertDriveFileIcon$1.displayName = 'InsertDriveFileIcon';
37502
+ InsertDriveFileIcon.displayName = 'InsertDriveFileIcon';
37503
37503
 
37504
- var OndemandVideoIcon$1 = /*#__PURE__*/React.forwardRef(function (_a, ref) {
37504
+ var OndemandVideoIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
37505
37505
  var className = _a.className,
37506
37506
  onClick = _a.onClick,
37507
37507
  _b = _a.fill,
@@ -37526,7 +37526,7 @@ var OndemandVideoIcon$1 = /*#__PURE__*/React.forwardRef(function (_a, ref) {
37526
37526
  })]
37527
37527
  }));
37528
37528
  });
37529
- OndemandVideoIcon$1.displayName = 'OndemandVideoIcon';
37529
+ OndemandVideoIcon.displayName = 'OndemandVideoIcon';
37530
37530
 
37531
37531
  var PublishIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
37532
37532
  var className = _a.className,
@@ -37696,7 +37696,7 @@ var VolumeUpIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
37696
37696
  _b = _a.fill,
37697
37697
  fill = _b === void 0 ? '#68707A' : _b,
37698
37698
  props = __rest(_a, ["className", "onClick", "fill"]);
37699
- return jsxRuntimeExports.jsxs("svg", __assign({
37699
+ return jsxRuntimeExports.jsx("svg", __assign({
37700
37700
  ref: ref,
37701
37701
  width: '24',
37702
37702
  height: '24',
@@ -37706,18 +37706,15 @@ var VolumeUpIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
37706
37706
  className: className,
37707
37707
  onClick: onClick
37708
37708
  }, props, {
37709
- children: [jsxRuntimeExports.jsx("path", {
37710
- d: 'M0 0h24v24H0V0z',
37711
- fill: 'none'
37712
- }), jsxRuntimeExports.jsx("path", {
37709
+ children: jsxRuntimeExports.jsx("path", {
37713
37710
  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',
37714
37711
  fill: fill
37715
- })]
37712
+ })
37716
37713
  }));
37717
37714
  });
37718
37715
  VolumeUpIcon.displayName = 'VolumeUpIcon';
37719
37716
 
37720
- var FileUploadOutlinedIcon$1 = /*#__PURE__*/React.forwardRef(function (_a, ref) {
37717
+ var FileUploadOutlinedIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
37721
37718
  var className = _a.className,
37722
37719
  onClick = _a.onClick,
37723
37720
  _b = _a.fill,
@@ -37747,7 +37744,7 @@ var FileUploadOutlinedIcon$1 = /*#__PURE__*/React.forwardRef(function (_a, ref)
37747
37744
  })]
37748
37745
  }));
37749
37746
  });
37750
- FileUploadOutlinedIcon$1.displayName = 'FileUploadOutlinedIcon';
37747
+ FileUploadOutlinedIcon.displayName = 'FileUploadOutlinedIcon';
37751
37748
 
37752
37749
  var DashboardIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
37753
37750
  var className = _a.className,
@@ -42790,30 +42787,6 @@ function requireCancel () {
42790
42787
  var CancelExports = /*@__PURE__*/ requireCancel();
42791
42788
  var CancelIcon = /*@__PURE__*/getDefaultExportFromCjs(CancelExports);
42792
42789
 
42793
- var OndemandVideo = {};
42794
-
42795
- var hasRequiredOndemandVideo;
42796
-
42797
- function requireOndemandVideo () {
42798
- if (hasRequiredOndemandVideo) return OndemandVideo;
42799
- hasRequiredOndemandVideo = 1;
42800
-
42801
- var _interopRequireDefault = requireInteropRequireDefault();
42802
- Object.defineProperty(OndemandVideo, "__esModule", {
42803
- value: true
42804
- });
42805
- OndemandVideo.default = void 0;
42806
- var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
42807
- var _jsxRuntime = requireJsxRuntime();
42808
- OndemandVideo.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
42809
- 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"
42810
- }), 'OndemandVideo');
42811
- return OndemandVideo;
42812
- }
42813
-
42814
- var OndemandVideoExports = /*@__PURE__*/ requireOndemandVideo();
42815
- var OndemandVideoIcon = /*@__PURE__*/getDefaultExportFromCjs(OndemandVideoExports);
42816
-
42817
42790
  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"])));
42818
42791
  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"])));
42819
42792
  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"])));
@@ -42824,147 +42797,87 @@ dt.div(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\n ba
42824
42797
  // Uploader
42825
42798
  ])));
42826
42799
  // Uploader
42827
- 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"])));
42828
- 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"])));
42829
- 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"])));
42830
- 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) {
42831
- var width = _a.width;
42832
- return width || '100%';
42833
- });
42834
- dt.div(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n width: 390px;\n"], ["\n width: 390px;\n"])));
42835
- 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) {
42800
+ 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"])));
42801
+ var ItemContainer = dt.div(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject([""], [""])));
42802
+ dt.div(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n width: 390px;\n"], ["\n width: 390px;\n"])));
42803
+ 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) {
42836
42804
  var right = _a.right;
42837
- return right || '-13px';
42805
+ return right || '-12px';
42838
42806
  }, function (_a) {
42839
42807
  var top = _a.top;
42840
- return top || '5px';
42841
- });
42842
- 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"])));
42843
- 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"])));
42844
- 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"])));
42845
- 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) {
42846
- var height = _a.height;
42847
- return height || 60;
42808
+ return top || '-12px';
42848
42809
  });
42849
- 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"
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"])));
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"])));
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"])));
42813
+ var ImagePlaceholder = dt.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n img {\n position: relative;\n width: 72px;\n height: 48px;\n border-radius: 4px;\n padding: 4px;\n top: 2px;\n }\n"], ["\n img {\n position: relative;\n width: 72px;\n height: 48px;\n border-radius: 4px;\n padding: 4px;\n top: 2px;\n }\n"])));
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"
42850
42815
  // UploaderButton
42851
42816
  ])));
42852
42817
  // UploaderButton
42853
- 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"])));
42854
- 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"])));
42855
- 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"])));
42856
- 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"])));
42857
- 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"])));
42858
- var CircularProgressStyles = {
42859
- width: '32px',
42860
- height: '32px'
42861
- };
42862
- 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) {
42818
+ 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"])));
42819
+ 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"])));
42820
+ 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"])));
42821
+ 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"])));
42822
+ 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"])));
42823
+ 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) {
42863
42824
  var $required = _a.$required;
42864
42825
  return $required ? "\n &::after {\n content: '*';\n color: red;\n margin-left: 3px;\n }\n " : '';
42865
42826
  });
42866
- 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;
42867
-
42868
- var InsertDriveFile = {};
42869
-
42870
- var hasRequiredInsertDriveFile;
42871
-
42872
- function requireInsertDriveFile () {
42873
- if (hasRequiredInsertDriveFile) return InsertDriveFile;
42874
- hasRequiredInsertDriveFile = 1;
42875
-
42876
- var _interopRequireDefault = requireInteropRequireDefault();
42877
- Object.defineProperty(InsertDriveFile, "__esModule", {
42878
- value: true
42879
- });
42880
- InsertDriveFile.default = void 0;
42881
- var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
42882
- var _jsxRuntime = requireJsxRuntime();
42883
- InsertDriveFile.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
42884
- 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"
42885
- }), 'InsertDriveFile');
42886
- return InsertDriveFile;
42887
- }
42888
-
42889
- var InsertDriveFileExports = /*@__PURE__*/ requireInsertDriveFile();
42890
- var InsertDriveFileIcon = /*@__PURE__*/getDefaultExportFromCjs(InsertDriveFileExports);
42891
-
42892
- var Headset = {};
42893
-
42894
- var hasRequiredHeadset;
42895
-
42896
- function requireHeadset () {
42897
- if (hasRequiredHeadset) return Headset;
42898
- hasRequiredHeadset = 1;
42899
-
42900
- var _interopRequireDefault = requireInteropRequireDefault();
42901
- Object.defineProperty(Headset, "__esModule", {
42902
- value: true
42903
- });
42904
- Headset.default = void 0;
42905
- var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
42906
- var _jsxRuntime = requireJsxRuntime();
42907
- Headset.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
42908
- 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"
42909
- }), 'Headset');
42910
- return Headset;
42911
- }
42912
-
42913
- var HeadsetExports = /*@__PURE__*/ requireHeadset();
42914
- var HeadsetIcon = /*@__PURE__*/getDefaultExportFromCjs(HeadsetExports);
42915
-
42916
- var FileUploadOutlined = {};
42917
-
42918
- var hasRequiredFileUploadOutlined;
42919
-
42920
- function requireFileUploadOutlined () {
42921
- if (hasRequiredFileUploadOutlined) return FileUploadOutlined;
42922
- hasRequiredFileUploadOutlined = 1;
42923
-
42924
- var _interopRequireDefault = requireInteropRequireDefault();
42925
- Object.defineProperty(FileUploadOutlined, "__esModule", {
42926
- value: true
42927
- });
42928
- FileUploadOutlined.default = void 0;
42929
- var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
42930
- var _jsxRuntime = requireJsxRuntime();
42931
- FileUploadOutlined.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
42932
- 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"
42933
- }), 'FileUploadOutlined');
42934
- return FileUploadOutlined;
42935
- }
42936
-
42937
- var FileUploadOutlinedExports = /*@__PURE__*/ requireFileUploadOutlined();
42938
- var FileUploadOutlinedIcon = /*@__PURE__*/getDefaultExportFromCjs(FileUploadOutlinedExports);
42939
-
42940
- var FileTypes;
42941
- (function (FileTypes) {
42942
- FileTypes["DOCUMENT"] = "document";
42943
- FileTypes["IMAGE"] = "image";
42944
- FileTypes["VIDEO"] = "video";
42945
- FileTypes["AUDIO"] = "audio";
42946
- FileTypes["FILE"] = "file";
42947
- })(FileTypes || (FileTypes = {}));
42827
+ 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"])));
42828
+ var styles$1 = {
42829
+ thumbnail: {
42830
+ width: '72px',
42831
+ height: '48px',
42832
+ borderRadius: '4px',
42833
+ padding: '4px'
42834
+ }
42835
+ };
42836
+ var templateObject_1$j, templateObject_2$e, templateObject_3$a, templateObject_4$7, templateObject_5$6, templateObject_6$5, templateObject_7$3, templateObject_8$2, templateObject_9$1, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14$1, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23;
42948
42837
 
42838
+ var ImageWithFallback = function ImageWithFallback(_a) {
42839
+ var src = _a.src,
42840
+ alt = _a.alt;
42841
+ var _b = React.useState(false),
42842
+ hasError = _b[0],
42843
+ setHasError = _b[1];
42844
+ if (hasError) {
42845
+ return jsxRuntimeExports.jsx(CircularProgress, {});
42846
+ }
42847
+ return jsxRuntimeExports.jsx("img", {
42848
+ src: src,
42849
+ alt: alt,
42850
+ style: styles$1.thumbnail,
42851
+ onError: function onError() {
42852
+ return setHasError(true);
42853
+ }
42854
+ });
42855
+ };
42949
42856
  var Loading = function Loading(_a) {
42950
42857
  var type = _a.type,
42951
42858
  loading = _a.loading;
42952
- if ([FileTypes.VIDEO, FileTypes.AUDIO].includes(type)) {
42953
- return jsxRuntimeExports.jsxs(LoadingProgressContainer, {
42859
+ if (['video', 'audio'].includes(type)) {
42860
+ return jsxRuntimeExports.jsxs("div", {
42861
+ style: {
42862
+ marginLeft: '19px',
42863
+ marginTop: '2px'
42864
+ },
42954
42865
  children: [Math.round(loading), " %"]
42955
42866
  });
42956
42867
  }
42957
- return jsxRuntimeExports.jsx(LoadingProgressContainer, {
42868
+ return jsxRuntimeExports.jsx("div", {
42869
+ style: {
42870
+ marginLeft: '19px',
42871
+ marginTop: '2px'
42872
+ },
42958
42873
  children: jsxRuntimeExports.jsx(CircularProgress, {
42959
- style: CircularProgressStyles
42874
+ style: {
42875
+ width: '32px',
42876
+ height: '32px'
42877
+ }
42960
42878
  })
42961
42879
  });
42962
42880
  };
42963
- var handleFileClick = function handleFileClick(link) {
42964
- if (link) {
42965
- window.open(link, '_blank');
42966
- }
42967
- };
42968
42881
  var Uploader = function Uploader(_a) {
42969
42882
  var type = _a.type,
42970
42883
  uploadedFile = _a.uploadedFile,
@@ -42979,145 +42892,168 @@ var Uploader = function Uploader(_a) {
42979
42892
  accept = _a.accept,
42980
42893
  name = _a.name,
42981
42894
  multiple = _a.multiple,
42982
- placeHolder = _a.placeHolder,
42983
- _b = _a.showFullPreview,
42984
- showFullPreview = _b === void 0 ? false : _b,
42985
- inputClassName = _a.inputClassName,
42986
- touched = _a.touched,
42895
+ fileExtension = _a.fileExtension,
42987
42896
  error = _a.error,
42988
- nameClassName = _a.nameClassName,
42989
- _c = _a.required,
42990
- required = _c === void 0 ? false : _c;
42897
+ _b = _a.required,
42898
+ required = _b === void 0 ? false : _b;
42991
42899
  var t = useTranslation().t;
42992
- var InlineFilePreview = function InlineFilePreview() {
42993
- var file = uploadedFile;
42900
+ var filePreview = function filePreview() {
42901
+ var _a;
42902
+ // pdf is in file type too so we need to check for pdf explicitly
42903
+ if (((_a = uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.link) === null || _a === void 0 ? void 0 : _a.split('.').pop()) === 'pdf') {
42904
+ return jsxRuntimeExports.jsx(ImagePlaceholder, {
42905
+ children: jsxRuntimeExports.jsx("div", {
42906
+ style: {
42907
+ fontSize: '10px',
42908
+ textAlign: 'center',
42909
+ padding: '4px',
42910
+ width: '72px',
42911
+ height: '48px',
42912
+ display: 'flex',
42913
+ alignItems: 'center',
42914
+ justifyContent: 'center',
42915
+ background: '#f5f5f5',
42916
+ borderRadius: '4px'
42917
+ },
42918
+ children: "PDF"
42919
+ })
42920
+ });
42921
+ }
42994
42922
  switch (type) {
42995
- case FileTypes.IMAGE:
42923
+ case 'image':
42996
42924
  return jsxRuntimeExports.jsx(ImagePlaceholder, {
42997
- onClick: function onClick() {
42998
- handleFileClick(file.link);
42999
- },
43000
- children: jsxRuntimeExports.jsx("img", {
43001
- src: file === null || file === void 0 ? void 0 : file.link,
43002
- alt: ''
42925
+ children: jsxRuntimeExports.jsx(ImageWithFallback, {
42926
+ src: (uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.link) || '',
42927
+ alt: 'Image Thumbnail'
43003
42928
  })
43004
42929
  });
43005
- case FileTypes.VIDEO:
43006
- return jsxRuntimeExports.jsx(VideoPlaceholder, {
43007
- onClick: function onClick() {
43008
- var _a, _b;
43009
- handleFileClick((_b = (_a = file.links) === null || _a === void 0 ? void 0 : _a[4]) === null || _b === void 0 ? void 0 : _b.url);
42930
+ case 'file':
42931
+ return jsxRuntimeExports.jsx(ImagePlaceholder, {
42932
+ children: jsxRuntimeExports.jsx("div", {
42933
+ style: {
42934
+ fontSize: '10px',
42935
+ textAlign: 'center',
42936
+ padding: '4px',
42937
+ width: '72px',
42938
+ height: '48px',
42939
+ display: 'flex',
42940
+ alignItems: 'center',
42941
+ justifyContent: 'center',
42942
+ background: '#f5f5f5',
42943
+ borderRadius: '4px'
42944
+ },
42945
+ children: "FILE"
42946
+ })
42947
+ });
42948
+ case 'video':
42949
+ return jsxRuntimeExports.jsx("div", {
42950
+ style: {
42951
+ marginTop: '3px'
43010
42952
  },
43011
- children: jsxRuntimeExports.jsx(OndemandVideoIcon, {
43012
- color: 'secondary'
42953
+ children: jsxRuntimeExports.jsx("div", {
42954
+ style: {
42955
+ fontSize: '10px',
42956
+ textAlign: 'center',
42957
+ padding: '4px',
42958
+ width: '72px',
42959
+ height: '48px',
42960
+ display: 'flex',
42961
+ alignItems: 'center',
42962
+ justifyContent: 'center',
42963
+ background: '#f5f5f5',
42964
+ borderRadius: '4px'
42965
+ },
42966
+ children: "VIDEO"
43013
42967
  })
43014
42968
  });
43015
- case FileTypes.AUDIO:
43016
- return jsxRuntimeExports.jsx(DefaultPlaceholder, {
43017
- onClick: function onClick() {
43018
- handleFileClick(file.link);
42969
+ case 'audio':
42970
+ return jsxRuntimeExports.jsx("div", {
42971
+ style: {
42972
+ marginTop: '3px'
43019
42973
  },
43020
- children: jsxRuntimeExports.jsx(HeadsetIcon, {
43021
- color: 'secondary'
42974
+ children: jsxRuntimeExports.jsx("div", {
42975
+ style: {
42976
+ fontSize: '10px',
42977
+ textAlign: 'center',
42978
+ padding: '4px',
42979
+ width: '72px',
42980
+ height: '48px',
42981
+ display: 'flex',
42982
+ alignItems: 'center',
42983
+ justifyContent: 'center',
42984
+ background: '#f5f5f5',
42985
+ borderRadius: '4px'
42986
+ },
42987
+ children: "AUDIO"
43022
42988
  })
43023
42989
  });
43024
42990
  default:
43025
- return jsxRuntimeExports.jsx(DefaultPlaceholder, {
43026
- onClick: function onClick() {
43027
- handleFileClick(file.link);
43028
- },
43029
- children: jsxRuntimeExports.jsx(InsertDriveFileIcon, {
43030
- color: 'secondary'
42991
+ return jsxRuntimeExports.jsx(ImagePlaceholder, {
42992
+ children: jsxRuntimeExports.jsx("div", {
42993
+ style: {
42994
+ fontSize: '10px',
42995
+ textAlign: 'center',
42996
+ padding: '4px',
42997
+ width: '72px',
42998
+ height: '48px',
42999
+ display: 'flex',
43000
+ alignItems: 'center',
43001
+ justifyContent: 'center',
43002
+ background: '#f5f5f5',
43003
+ borderRadius: '4px'
43004
+ },
43005
+ children: "FILE"
43031
43006
  })
43032
43007
  });
43033
43008
  }
43034
43009
  };
43035
- return jsxRuntimeExports.jsxs(Container$3, {
43010
+ return jsxRuntimeExports.jsxs("div", {
43036
43011
  children: [label && jsxRuntimeExports.jsx(Title, {
43037
43012
  "$required": required,
43038
43013
  children: label
43039
- }), jsxRuntimeExports.jsxs(FlexContainer, {
43040
- children: [jsxRuntimeExports.jsx(ItemContainer, {
43041
- width: '75%',
43014
+ }), jsxRuntimeExports.jsxs(Container$3, {
43015
+ children: [jsxRuntimeExports.jsxs(ItemContainer, {
43016
+ children: [!uploadedFile && !loading && jsxRuntimeExports.jsxs(InputFileContainer, {
43017
+ children: [jsxRuntimeExports.jsx(UploadInput, {
43018
+ type: 'file',
43019
+ name: name,
43020
+ id: id,
43021
+ onChange: onFileChange,
43022
+ multiple: multiple,
43023
+ accept: accept
43024
+ }), jsxRuntimeExports.jsx(InputLabel, {
43025
+ htmlFor: id,
43026
+ children: t('actions.choose_file') || 'Choose File'
43027
+ })]
43028
+ }), loading && jsxRuntimeExports.jsx(Loading, {
43029
+ type: type || 'file',
43030
+ loading: loading
43031
+ }), !disabled && uploadedFile && filePreview()]
43032
+ }), jsxRuntimeExports.jsx(ItemContainer, {
43042
43033
  children: jsxRuntimeExports.jsx(TextInput, {
43043
- label: '',
43044
- placeholder: placeHolder ? placeHolder : 'Supported formats are PNG, JPG, JPEG',
43034
+ label: inputValue ? '' : "".concat(t('form_fields.file_name') || 'File name', " ").concat(fileExtension || ''),
43045
43035
  name: 'file',
43046
43036
  size: 'small',
43047
43037
  type: 'text',
43048
43038
  fullWidth: true,
43049
- touched: touched,
43050
- error: !!error,
43051
- value: inputValue,
43039
+ value: inputValue || '',
43052
43040
  onChange: onInputChange,
43053
43041
  disabled: disabled
43054
43042
  })
43055
- }), showFullPreview ? jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
43056
- children: [jsxRuntimeExports.jsx(ItemContainer, {
43057
- width: '23%',
43058
- children: loading ? jsxRuntimeExports.jsx(Loading, {
43059
- type: type,
43060
- loading: loading
43061
- }) : jsxRuntimeExports.jsxs(InputFileContainer, {
43062
- children: [jsxRuntimeExports.jsx(UploadInput, {
43063
- type: 'file',
43064
- className: nameClassName,
43065
- name: name,
43066
- id: id,
43067
- onChange: onFileChange,
43068
- multiple: multiple,
43069
- accept: accept
43070
- }), jsxRuntimeExports.jsxs(InputLabel, {
43071
- htmlFor: id,
43072
- children: [jsxRuntimeExports.jsx(FileUploadOutlinedIcon, {}), t('general.upload') || 'Upload', ' ']
43073
- })]
43074
- })
43075
- }), uploadedFile && type === FileTypes.IMAGE && jsxRuntimeExports.jsx(ImagePlaceholder, {
43076
- height: 160,
43077
- children: uploadedFile.link && jsxRuntimeExports.jsx("img", {
43078
- src: uploadedFile.link,
43079
- alt: 'Input Image'
43080
- })
43081
- }), uploadedFile && jsxRuntimeExports.jsx(CancelButton, {
43082
- onClick: deleteFile,
43083
- right: '160px',
43084
- top: '37px',
43085
- children: jsxRuntimeExports.jsx(CancelIcon, {
43086
- style: {
43087
- color: 'rgba(179, 179, 184, 1)'
43088
- }
43089
- })
43090
- })]
43091
- }) : jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
43092
- children: [jsxRuntimeExports.jsxs(ItemContainer, {
43093
- width: '23%',
43094
- children: [!uploadedFile && !loading && jsxRuntimeExports.jsxs(InputFileContainer, {
43095
- children: [jsxRuntimeExports.jsx(UploadInput, {
43096
- type: 'file',
43097
- className: inputClassName,
43098
- name: name,
43099
- id: id,
43100
- onChange: onFileChange,
43101
- multiple: multiple,
43102
- accept: accept
43103
- }), jsxRuntimeExports.jsxs(InputLabel, {
43104
- htmlFor: id,
43105
- children: [jsxRuntimeExports.jsx(FileUploadOutlinedIcon, {}), t('general.upload')]
43106
- })]
43107
- }), loading && jsxRuntimeExports.jsx(Loading, {
43108
- type: type,
43109
- loading: loading
43110
- }), uploadedFile && InlineFilePreview()]
43111
- }), uploadedFile && jsxRuntimeExports.jsx(CancelButton, {
43112
- onClick: deleteFile,
43113
- children: jsxRuntimeExports.jsx(CancelIcon, {
43114
- style: {
43115
- color: '#06C68F'
43116
- }
43117
- })
43118
- }), ' ']
43043
+ }), uploadedFile && jsxRuntimeExports.jsx(CancelButton, {
43044
+ onClick: function onClick(e) {
43045
+ e.stopPropagation();
43046
+ if (deleteFile) {
43047
+ deleteFile();
43048
+ }
43049
+ },
43050
+ children: jsxRuntimeExports.jsx(CancelIcon, {
43051
+ style: {
43052
+ color: '#06C68F'
43053
+ }
43054
+ })
43119
43055
  })]
43120
- }), error && touched && jsxRuntimeExports.jsx(ErrorText, {
43056
+ }), error && jsxRuntimeExports.jsx(ErrorText, {
43121
43057
  children: error
43122
43058
  })]
43123
43059
  });
@@ -81419,7 +81355,7 @@ function requirePlayers () {
81419
81355
  canPlay: import_patterns.canPlay.youtube,
81420
81356
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81421
81357
  /* webpackChunkName: 'reactPlayerYouTube' */
81422
- './YouTube-DpQU6ZH9.js'
81358
+ './YouTube-D2V4Z5LG.js'
81423
81359
  ); }).then(function (n) { return n.YouTube; }))
81424
81360
  },
81425
81361
  {
@@ -81428,7 +81364,7 @@ function requirePlayers () {
81428
81364
  canPlay: import_patterns.canPlay.soundcloud,
81429
81365
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81430
81366
  /* webpackChunkName: 'reactPlayerSoundCloud' */
81431
- './SoundCloud-BsdovEa4.js'
81367
+ './SoundCloud-D5RE0hBN.js'
81432
81368
  ); }).then(function (n) { return n.SoundCloud; }))
81433
81369
  },
81434
81370
  {
@@ -81437,7 +81373,7 @@ function requirePlayers () {
81437
81373
  canPlay: import_patterns.canPlay.vimeo,
81438
81374
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81439
81375
  /* webpackChunkName: 'reactPlayerVimeo' */
81440
- './Vimeo-B2sdU2eb.js'
81376
+ './Vimeo-C71PHmy8.js'
81441
81377
  ); }).then(function (n) { return n.Vimeo; }))
81442
81378
  },
81443
81379
  {
@@ -81446,7 +81382,7 @@ function requirePlayers () {
81446
81382
  canPlay: import_patterns.canPlay.mux,
81447
81383
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81448
81384
  /* webpackChunkName: 'reactPlayerMux' */
81449
- './Mux-CFgk1TgE.js'
81385
+ './Mux-CWsIfXgR.js'
81450
81386
  ); }).then(function (n) { return n.Mux; }))
81451
81387
  },
81452
81388
  {
@@ -81455,7 +81391,7 @@ function requirePlayers () {
81455
81391
  canPlay: import_patterns.canPlay.facebook,
81456
81392
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81457
81393
  /* webpackChunkName: 'reactPlayerFacebook' */
81458
- './Facebook-BYAo-2rH.js'
81394
+ './Facebook-CCzLezvE.js'
81459
81395
  ); }).then(function (n) { return n.Facebook; }))
81460
81396
  },
81461
81397
  {
@@ -81464,7 +81400,7 @@ function requirePlayers () {
81464
81400
  canPlay: import_patterns.canPlay.streamable,
81465
81401
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81466
81402
  /* webpackChunkName: 'reactPlayerStreamable' */
81467
- './Streamable-C18bUmk1.js'
81403
+ './Streamable-cVBLCtV4.js'
81468
81404
  ); }).then(function (n) { return n.Streamable; }))
81469
81405
  },
81470
81406
  {
@@ -81473,7 +81409,7 @@ function requirePlayers () {
81473
81409
  canPlay: import_patterns.canPlay.wistia,
81474
81410
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81475
81411
  /* webpackChunkName: 'reactPlayerWistia' */
81476
- './Wistia-D8WmgJRA.js'
81412
+ './Wistia-DZLhakqM.js'
81477
81413
  ); }).then(function (n) { return n.Wistia; }))
81478
81414
  },
81479
81415
  {
@@ -81482,7 +81418,7 @@ function requirePlayers () {
81482
81418
  canPlay: import_patterns.canPlay.twitch,
81483
81419
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81484
81420
  /* webpackChunkName: 'reactPlayerTwitch' */
81485
- './Twitch-BwMnK2K5.js'
81421
+ './Twitch-DK8g5mI9.js'
81486
81422
  ); }).then(function (n) { return n.Twitch; }))
81487
81423
  },
81488
81424
  {
@@ -81491,7 +81427,7 @@ function requirePlayers () {
81491
81427
  canPlay: import_patterns.canPlay.dailymotion,
81492
81428
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81493
81429
  /* webpackChunkName: 'reactPlayerDailyMotion' */
81494
- './DailyMotion-BRR94A6R.js'
81430
+ './DailyMotion-D1GfS99W.js'
81495
81431
  ); }).then(function (n) { return n.DailyMotion; }))
81496
81432
  },
81497
81433
  {
@@ -81500,7 +81436,7 @@ function requirePlayers () {
81500
81436
  canPlay: import_patterns.canPlay.mixcloud,
81501
81437
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81502
81438
  /* webpackChunkName: 'reactPlayerMixcloud' */
81503
- './Mixcloud-FU7dfnB-.js'
81439
+ './Mixcloud-NSXYlse6.js'
81504
81440
  ); }).then(function (n) { return n.Mixcloud; }))
81505
81441
  },
81506
81442
  {
@@ -81509,7 +81445,7 @@ function requirePlayers () {
81509
81445
  canPlay: import_patterns.canPlay.vidyard,
81510
81446
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81511
81447
  /* webpackChunkName: 'reactPlayerVidyard' */
81512
- './Vidyard-DjdEjiba.js'
81448
+ './Vidyard-BfoXiL7u.js'
81513
81449
  ); }).then(function (n) { return n.Vidyard; }))
81514
81450
  },
81515
81451
  {
@@ -81518,7 +81454,7 @@ function requirePlayers () {
81518
81454
  canPlay: import_patterns.canPlay.kaltura,
81519
81455
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81520
81456
  /* webpackChunkName: 'reactPlayerKaltura' */
81521
- './Kaltura-Cw4p4d7w.js'
81457
+ './Kaltura-Ybj6tj4c.js'
81522
81458
  ); }).then(function (n) { return n.Kaltura; }))
81523
81459
  },
81524
81460
  {
@@ -81530,7 +81466,7 @@ function requirePlayers () {
81530
81466
  },
81531
81467
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81532
81468
  /* webpackChunkName: 'reactPlayerFilePlayer' */
81533
- './FilePlayer-CBlW9Z-Z.js'
81469
+ './FilePlayer-CSeIQE-t.js'
81534
81470
  ); }).then(function (n) { return n.FilePlayer; }))
81535
81471
  }
81536
81472
  ];
@@ -82351,7 +82287,7 @@ function requireReactPlayer () {
82351
82287
  var import_Player = __toESM(/*@__PURE__*/ requirePlayer());
82352
82288
  const Preview = (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
82353
82289
  /* webpackChunkName: 'reactPlayerPreview' */
82354
- './Preview-CFFnVBFk.js'
82290
+ './Preview-YEvp75ub.js'
82355
82291
  ); }).then(function (n) { return n.Preview; }));
82356
82292
  const IS_BROWSER = typeof window !== "undefined" && window.document && typeof document !== "undefined";
82357
82293
  const IS_GLOBAL = typeof commonjsGlobal !== "undefined" && commonjsGlobal.window && commonjsGlobal.window.document;
@@ -82607,16 +82543,17 @@ var StyledVolumeSlider = dt.input(templateObject_4$1 || (templateObject_4$1 = __
82607
82543
  });
82608
82544
  var StyledControllerLeft = dt.div(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 16px;\n"], ["\n display: flex;\n align-items: center;\n gap: 16px;\n"])));
82609
82545
  var StyledControllerRight = dt.div(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 16px;\n\n .skip-icon-disabled {\n cursor: default;\n\n & > path {\n fill: var(--level-dark-300);\n }\n }\n"], ["\n display: flex;\n align-items: center;\n gap: 16px;\n\n .skip-icon-disabled {\n cursor: default;\n\n & > path {\n fill: var(--level-dark-300);\n }\n }\n"])));
82610
- 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"])), {
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"])), {
82611
82547
  fontStyle: 'descriptor'
82612
82548
  });
82613
- 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"])));
82549
+ 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"])));
82614
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"])));
82615
- 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"])));
82616
- 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"])));
82617
- 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"])));
82618
- 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"])));
82619
- 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;
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"])));
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"])));
82553
+ 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"])));
82554
+ 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"])));
82555
+ 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"])));
82556
+ 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;
82620
82557
 
82621
82558
  var PLAYBACK_SPEED_LIST = [{
82622
82559
  label: 'playback_speed.2x',
@@ -82894,18 +82831,34 @@ var Controls = function Controls(_a) {
82894
82831
  onChange: seekHandler,
82895
82832
  onMouseUp: seekMouseUpHandler
82896
82833
  }), jsxRuntimeExports.jsxs(StyledControllerLeft, {
82897
- children: [jsxRuntimeExports.jsx(StyledPlayPauseIconContainer, {
82898
- onClick: playPauseHandler,
82899
- children: playing ? jsxRuntimeExports.jsx(PauseIcon, {}) : jsxRuntimeExports.jsx(PlayIcon, {})
82900
- }), jsxRuntimeExports.jsx(RewindIcon, {
82901
- onClick: rewindHandler
82902
- }), jsxRuntimeExports.jsx(RewindIcon, {
82903
- forward: true,
82904
- onClick: handleFastForward
82834
+ children: [jsxRuntimeExports.jsx(CustomTooltip, {
82835
+ title: playing ? 'Pause' : 'Play',
82836
+ children: jsxRuntimeExports.jsx(StyledPlayPauseIconContainer, {
82837
+ onClick: playPauseHandler,
82838
+ children: playing ? jsxRuntimeExports.jsx(PauseIcon, {}) : jsxRuntimeExports.jsx(PlayIcon, {})
82839
+ })
82840
+ }), jsxRuntimeExports.jsx(CustomTooltip, {
82841
+ title: "Rewind 10 seconds",
82842
+ children: jsxRuntimeExports.jsx(StyledRewindIconContainer, {
82843
+ children: jsxRuntimeExports.jsx(RewindIcon, {
82844
+ onClick: rewindHandler
82845
+ })
82846
+ })
82847
+ }), jsxRuntimeExports.jsx(CustomTooltip, {
82848
+ title: "Forward 10 seconds",
82849
+ children: jsxRuntimeExports.jsx(StyledRewindIconContainer, {
82850
+ children: jsxRuntimeExports.jsx(RewindIcon, {
82851
+ forward: true,
82852
+ onClick: handleFastForward
82853
+ })
82854
+ })
82905
82855
  }), jsxRuntimeExports.jsxs(StyledVolumeWrapper, {
82906
- children: [jsxRuntimeExports.jsx(StyledVolumeIconContainer, {
82907
- onClick: muteHandler,
82908
- children: muted ? jsxRuntimeExports.jsx(VolumeMuteIcon, {}) : jsxRuntimeExports.jsx(VolumeUpIcon, {})
82856
+ children: [jsxRuntimeExports.jsx(CustomTooltip, {
82857
+ title: muted ? 'Unmute' : 'Mute',
82858
+ children: jsxRuntimeExports.jsx(StyledVolumeIconContainer, {
82859
+ onClick: muteHandler,
82860
+ children: muted ? jsxRuntimeExports.jsx(VolumeMuteIcon, {}) : jsxRuntimeExports.jsx(VolumeUpIcon, {})
82861
+ })
82909
82862
  }), jsxRuntimeExports.jsx(StyledVolumeSlider, {
82910
82863
  type: 'range',
82911
82864
  value: volume * 100,
@@ -82915,27 +82868,39 @@ var Controls = function Controls(_a) {
82915
82868
  children: [formatCurrentTime, " /", formatDuration]
82916
82869
  })]
82917
82870
  }), jsxRuntimeExports.jsxs(StyledControllerRight, {
82918
- children: [handleSkipBackward && jsxRuntimeExports.jsx(SkipIcon, {
82919
- onClick: function onClick() {
82920
- if (!isPreviousVideo) return;
82921
- handleSkipBackward();
82922
- },
82923
- className: isPreviousVideo ? '' : 'skip-icon-disabled'
82924
- }), handleSkipForward && jsxRuntimeExports.jsx(SkipIcon, {
82925
- forward: true,
82926
- onClick: function onClick() {
82927
- if (!isNextVideo) return;
82928
- handleSkipForward();
82929
- },
82930
- className: isNextVideo ? '' : 'skip-icon-disabled'
82931
- }), showFavorite && jsxRuntimeExports.jsx(StyledHeartIconContainer, {
82932
- children: jsxRuntimeExports.jsx(HeartIcon, {
82933
- active: isFavorite,
82934
- onClick: toggleIsFavorite
82871
+ children: [handleSkipBackward && jsxRuntimeExports.jsx(CustomTooltip, {
82872
+ title: "Previous video",
82873
+ children: jsxRuntimeExports.jsx(SkipIcon, {
82874
+ onClick: function onClick() {
82875
+ if (!isPreviousVideo) return;
82876
+ handleSkipBackward();
82877
+ },
82878
+ className: isPreviousVideo ? '' : 'skip-icon-disabled'
82935
82879
  })
82936
- }), showDownload && downloadUrl && jsxRuntimeExports.jsx(StyledDownloadIconContainer, {
82937
- children: jsxRuntimeExports.jsx(DownloadIcon, {
82938
- onClick: handleDownloadClick
82880
+ }), handleSkipForward && jsxRuntimeExports.jsx(CustomTooltip, {
82881
+ title: "Next video",
82882
+ children: jsxRuntimeExports.jsx(SkipIcon, {
82883
+ forward: true,
82884
+ onClick: function onClick() {
82885
+ if (!isNextVideo) return;
82886
+ handleSkipForward();
82887
+ },
82888
+ className: isNextVideo ? '' : 'skip-icon-disabled'
82889
+ })
82890
+ }), showFavorite && jsxRuntimeExports.jsx(CustomTooltip, {
82891
+ title: isFavorite ? 'Remove from favorites' : 'Add to favorites',
82892
+ children: jsxRuntimeExports.jsx(StyledHeartIconContainer, {
82893
+ children: jsxRuntimeExports.jsx(HeartIcon, {
82894
+ active: isFavorite,
82895
+ onClick: toggleIsFavorite
82896
+ })
82897
+ })
82898
+ }), showDownload && downloadUrl && jsxRuntimeExports.jsx(CustomTooltip, {
82899
+ title: "Download video",
82900
+ children: jsxRuntimeExports.jsx(StyledDownloadIconContainer, {
82901
+ children: jsxRuntimeExports.jsx(DownloadIcon, {
82902
+ onClick: handleDownloadClick
82903
+ })
82939
82904
  })
82940
82905
  }), jsxRuntimeExports.jsx(PlaybackSpeedMenu, {
82941
82906
  playbackSpeed: playbackRate,
@@ -82953,14 +82918,20 @@ var Controls = function Controls(_a) {
82953
82918
  right: '8px',
82954
82919
  left: 'auto'
82955
82920
  }
82956
- }), subtitle && jsxRuntimeExports.jsx(StyledSubtitlesIconContainer, {
82957
- children: jsxRuntimeExports.jsx(SubtitlesIcon, {
82958
- active: isSubtitlesChecked,
82959
- onClick: toggleSubtitlesCheck
82921
+ }), subtitle && jsxRuntimeExports.jsx(CustomTooltip, {
82922
+ title: isSubtitlesChecked ? 'Hide subtitles' : 'Show subtitles',
82923
+ children: jsxRuntimeExports.jsx(StyledSubtitlesIconContainer, {
82924
+ children: jsxRuntimeExports.jsx(SubtitlesIcon, {
82925
+ active: isSubtitlesChecked,
82926
+ onClick: toggleSubtitlesCheck
82927
+ })
82928
+ })
82929
+ }), jsxRuntimeExports.jsx(CustomTooltip, {
82930
+ title: isFullscreen ? 'Exit fullscreen' : 'Enter fullscreen',
82931
+ children: jsxRuntimeExports.jsx(StyledFullscreenIconContainer, {
82932
+ onClick: handleFullScreen,
82933
+ children: isFullscreen ? jsxRuntimeExports.jsx(MinimizeIcon, {}) : jsxRuntimeExports.jsx(MaximizeIcon, {})
82960
82934
  })
82961
- }), jsxRuntimeExports.jsx(StyledFullscreenIconContainer, {
82962
- onClick: handleFullScreen,
82963
- children: isFullscreen ? jsxRuntimeExports.jsx(MinimizeIcon, {}) : jsxRuntimeExports.jsx(MaximizeIcon, {})
82964
82935
  })]
82965
82936
  })]
82966
82937
  });