suada-components 1.4.0 → 1.6.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 (51) hide show
  1. package/dist/components/{DailyMotion-QLITiLX6.js → DailyMotion-Cyo9mQyt.js} +1 -1
  2. package/dist/components/{DailyMotion-dJVL9e3H.esm.js → DailyMotion-MzOn9ju_.esm.js} +1 -1
  3. package/dist/components/{Facebook-oiv7CRN4.esm.js → Facebook-CJbuSY04.esm.js} +1 -1
  4. package/dist/components/{Facebook-DUSQsxT0.js → Facebook-CPs-Ms_X.js} +1 -1
  5. package/dist/components/{FilePlayer-B0iX_VuG.esm.js → FilePlayer-CQvxGYWG.esm.js} +1 -1
  6. package/dist/components/{FilePlayer-YziZ0BSF.js → FilePlayer-DNH6fpJi.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-uXGe7isE.js → Kaltura-CyreQk0X.js} +1 -1
  17. package/dist/components/{Kaltura-D84ZFqY1.esm.js → Kaltura-UmIP8SbX.esm.js} +1 -1
  18. package/dist/components/{Mixcloud-BTbWN-a0.esm.js → Mixcloud-CIGHRTPD.esm.js} +1 -1
  19. package/dist/components/{Mixcloud-D7KPYi8f.js → Mixcloud-DJ_299OT.js} +1 -1
  20. package/dist/components/{Mux-DRlgrJfr.js → Mux-BWxS553y.js} +1 -1
  21. package/dist/components/{Mux-s9nPEsa_.esm.js → Mux-CPaUZQah.esm.js} +1 -1
  22. package/dist/components/{Preview-C-BGR8lx.js → Preview-BO_4FDai.js} +1 -1
  23. package/dist/components/{Preview-rhSMz_hY.esm.js → Preview-CMj6CzdF.esm.js} +1 -1
  24. package/dist/components/{SoundCloud-DrNeCiTx.esm.js → SoundCloud-CFXXBy2Z.esm.js} +1 -1
  25. package/dist/components/{SoundCloud-B00ur_Qj.js → SoundCloud-CWfPIUXj.js} +1 -1
  26. package/dist/components/{Streamable-B-JUOMxP.js → Streamable-Dqtzhuip.js} +1 -1
  27. package/dist/components/{Streamable-Dffnss84.esm.js → Streamable-DrNjqXjt.esm.js} +1 -1
  28. package/dist/components/{Twitch-DSAnP3JT.js → Twitch-CJuQ6-kx.js} +1 -1
  29. package/dist/components/{Twitch-DvucdzzS.esm.js → Twitch-DjgALZAq.esm.js} +1 -1
  30. package/dist/components/VideoPlayer/Controls/Controls.js +9 -9
  31. package/dist/components/VideoPlayer/Controls/Controls.js.map +1 -1
  32. package/dist/components/VideoPlayer/Controls/Controls.styles.js +4 -4
  33. package/dist/components/VideoPlayer/Controls/Controls.styles.js.map +1 -1
  34. package/dist/components/VideoPlayer/Player.styles.js +1 -1
  35. package/dist/components/VideoPlayer/Player.styles.js.map +1 -1
  36. package/dist/components/{Vidyard-BFd5mrx4.js → Vidyard-BkuV0Ftd.js} +1 -1
  37. package/dist/components/{Vidyard--Qb_wLtp.esm.js → Vidyard-M-vpaxMt.esm.js} +1 -1
  38. package/dist/components/{Vimeo-CR7Tdpoi.esm.js → Vimeo-0VVg6nMH.esm.js} +1 -1
  39. package/dist/components/{Vimeo-CIc5nmCA.js → Vimeo-BCG247ek.js} +1 -1
  40. package/dist/components/{Wistia-QMqy-uQw.esm.js → Wistia-CEi72MTW.esm.js} +1 -1
  41. package/dist/components/{Wistia-CH6tXv5E.js → Wistia-D2KJJODu.js} +1 -1
  42. package/dist/components/{YouTube-kg1XVxyv.js → YouTube-Bko04PXB.js} +1 -1
  43. package/dist/components/{YouTube-yMeWWl4H.esm.js → YouTube-kQuElqJG.esm.js} +1 -1
  44. package/dist/components/components/FileUploader/Uploader.d.ts +1 -1
  45. package/dist/components/components/FileUploader/styled-components.d.ts +11 -8
  46. package/dist/components/{index-7zJZUuRi.esm.js → index-BYbdvIBD.esm.js} +245 -302
  47. package/dist/components/{index-CDSxMyXo.js → index-Cb05_mlX.js} +245 -302
  48. package/dist/components/index.esm.js +1 -1
  49. package/dist/icons/components/FileUploader/Uploader.d.ts +1 -1
  50. package/dist/icons/components/FileUploader/styled-components.d.ts +11 -8
  51. 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
  }
@@ -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$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$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,
@@ -37714,7 +37714,7 @@ var VolumeUpIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
37714
37714
  });
37715
37715
  VolumeUpIcon.displayName = 'VolumeUpIcon';
37716
37716
 
37717
- var FileUploadOutlinedIcon$1 = /*#__PURE__*/React.forwardRef(function (_a, ref) {
37717
+ var FileUploadOutlinedIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
37718
37718
  var className = _a.className,
37719
37719
  onClick = _a.onClick,
37720
37720
  _b = _a.fill,
@@ -37744,7 +37744,7 @@ var FileUploadOutlinedIcon$1 = /*#__PURE__*/React.forwardRef(function (_a, ref)
37744
37744
  })]
37745
37745
  }));
37746
37746
  });
37747
- FileUploadOutlinedIcon$1.displayName = 'FileUploadOutlinedIcon';
37747
+ FileUploadOutlinedIcon.displayName = 'FileUploadOutlinedIcon';
37748
37748
 
37749
37749
  var DashboardIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
37750
37750
  var className = _a.className,
@@ -42787,30 +42787,6 @@ function requireCancel () {
42787
42787
  var CancelExports = /*@__PURE__*/ requireCancel();
42788
42788
  var CancelIcon = /*@__PURE__*/getDefaultExportFromCjs(CancelExports);
42789
42789
 
42790
- var OndemandVideo = {};
42791
-
42792
- var hasRequiredOndemandVideo;
42793
-
42794
- function requireOndemandVideo () {
42795
- if (hasRequiredOndemandVideo) return OndemandVideo;
42796
- hasRequiredOndemandVideo = 1;
42797
-
42798
- var _interopRequireDefault = requireInteropRequireDefault();
42799
- Object.defineProperty(OndemandVideo, "__esModule", {
42800
- value: true
42801
- });
42802
- OndemandVideo.default = void 0;
42803
- var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
42804
- var _jsxRuntime = requireJsxRuntime();
42805
- OndemandVideo.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
42806
- 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"
42807
- }), 'OndemandVideo');
42808
- return OndemandVideo;
42809
- }
42810
-
42811
- var OndemandVideoExports = /*@__PURE__*/ requireOndemandVideo();
42812
- var OndemandVideoIcon = /*@__PURE__*/getDefaultExportFromCjs(OndemandVideoExports);
42813
-
42814
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"])));
42815
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"])));
42816
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"])));
@@ -42821,147 +42797,87 @@ dt.div(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\n ba
42821
42797
  // Uploader
42822
42798
  ])));
42823
42799
  // Uploader
42824
- 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"])));
42825
- 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"])));
42826
- 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"])));
42827
- 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) {
42828
- var width = _a.width;
42829
- return width || '100%';
42830
- });
42831
- dt.div(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n width: 390px;\n"], ["\n width: 390px;\n"])));
42832
- 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) {
42833
42804
  var right = _a.right;
42834
- return right || '-13px';
42805
+ return right || '-12px';
42835
42806
  }, function (_a) {
42836
42807
  var top = _a.top;
42837
- return top || '5px';
42838
- });
42839
- var InputFileContainer = dt.div(templateObject_14$1 || (templateObject_14$1 = __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"])));
42840
- 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"])));
42841
- 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"])));
42842
- 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) {
42843
- var height = _a.height;
42844
- return height || 60;
42808
+ return top || '-12px';
42845
42809
  });
42846
- 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"
42847
42815
  // UploaderButton
42848
42816
  ])));
42849
42817
  // UploaderButton
42850
- 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"])));
42851
- 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"])));
42852
- 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"])));
42853
- 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"])));
42854
- 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"])));
42855
- var CircularProgressStyles = {
42856
- width: '32px',
42857
- height: '32px'
42858
- };
42859
- 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) {
42860
42824
  var $required = _a.$required;
42861
42825
  return $required ? "\n &::after {\n content: '*';\n color: red;\n margin-left: 3px;\n }\n " : '';
42862
42826
  });
42863
- 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, templateObject_24;
42864
-
42865
- var InsertDriveFile = {};
42866
-
42867
- var hasRequiredInsertDriveFile;
42868
-
42869
- function requireInsertDriveFile () {
42870
- if (hasRequiredInsertDriveFile) return InsertDriveFile;
42871
- hasRequiredInsertDriveFile = 1;
42872
-
42873
- var _interopRequireDefault = requireInteropRequireDefault();
42874
- Object.defineProperty(InsertDriveFile, "__esModule", {
42875
- value: true
42876
- });
42877
- InsertDriveFile.default = void 0;
42878
- var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
42879
- var _jsxRuntime = requireJsxRuntime();
42880
- InsertDriveFile.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
42881
- 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"
42882
- }), 'InsertDriveFile');
42883
- return InsertDriveFile;
42884
- }
42885
-
42886
- var InsertDriveFileExports = /*@__PURE__*/ requireInsertDriveFile();
42887
- var InsertDriveFileIcon = /*@__PURE__*/getDefaultExportFromCjs(InsertDriveFileExports);
42888
-
42889
- var Headset = {};
42890
-
42891
- var hasRequiredHeadset;
42892
-
42893
- function requireHeadset () {
42894
- if (hasRequiredHeadset) return Headset;
42895
- hasRequiredHeadset = 1;
42896
-
42897
- var _interopRequireDefault = requireInteropRequireDefault();
42898
- Object.defineProperty(Headset, "__esModule", {
42899
- value: true
42900
- });
42901
- Headset.default = void 0;
42902
- var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
42903
- var _jsxRuntime = requireJsxRuntime();
42904
- Headset.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
42905
- 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"
42906
- }), 'Headset');
42907
- return Headset;
42908
- }
42909
-
42910
- var HeadsetExports = /*@__PURE__*/ requireHeadset();
42911
- var HeadsetIcon = /*@__PURE__*/getDefaultExportFromCjs(HeadsetExports);
42912
-
42913
- var FileUploadOutlined = {};
42914
-
42915
- var hasRequiredFileUploadOutlined;
42916
-
42917
- function requireFileUploadOutlined () {
42918
- if (hasRequiredFileUploadOutlined) return FileUploadOutlined;
42919
- hasRequiredFileUploadOutlined = 1;
42920
-
42921
- var _interopRequireDefault = requireInteropRequireDefault();
42922
- Object.defineProperty(FileUploadOutlined, "__esModule", {
42923
- value: true
42924
- });
42925
- FileUploadOutlined.default = void 0;
42926
- var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
42927
- var _jsxRuntime = requireJsxRuntime();
42928
- FileUploadOutlined.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
42929
- 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"
42930
- }), 'FileUploadOutlined');
42931
- return FileUploadOutlined;
42932
- }
42933
-
42934
- var FileUploadOutlinedExports = /*@__PURE__*/ requireFileUploadOutlined();
42935
- var FileUploadOutlinedIcon = /*@__PURE__*/getDefaultExportFromCjs(FileUploadOutlinedExports);
42936
-
42937
- var FileTypes;
42938
- (function (FileTypes) {
42939
- FileTypes["DOCUMENT"] = "document";
42940
- FileTypes["IMAGE"] = "image";
42941
- FileTypes["VIDEO"] = "video";
42942
- FileTypes["AUDIO"] = "audio";
42943
- FileTypes["FILE"] = "file";
42944
- })(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;
42945
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
+ };
42946
42856
  var Loading = function Loading(_a) {
42947
42857
  var type = _a.type,
42948
42858
  loading = _a.loading;
42949
- if ([FileTypes.VIDEO, FileTypes.AUDIO].includes(type)) {
42950
- return jsxRuntimeExports.jsxs(LoadingProgressContainer, {
42859
+ if (['video', 'audio'].includes(type)) {
42860
+ return jsxRuntimeExports.jsxs("div", {
42861
+ style: {
42862
+ marginLeft: '19px',
42863
+ marginTop: '2px'
42864
+ },
42951
42865
  children: [Math.round(loading), " %"]
42952
42866
  });
42953
42867
  }
42954
- return jsxRuntimeExports.jsx(LoadingProgressContainer, {
42868
+ return jsxRuntimeExports.jsx("div", {
42869
+ style: {
42870
+ marginLeft: '19px',
42871
+ marginTop: '2px'
42872
+ },
42955
42873
  children: jsxRuntimeExports.jsx(CircularProgress, {
42956
- style: CircularProgressStyles
42874
+ style: {
42875
+ width: '32px',
42876
+ height: '32px'
42877
+ }
42957
42878
  })
42958
42879
  });
42959
42880
  };
42960
- var handleFileClick = function handleFileClick(link) {
42961
- if (link) {
42962
- window.open(link, '_blank');
42963
- }
42964
- };
42965
42881
  var Uploader = function Uploader(_a) {
42966
42882
  var type = _a.type,
42967
42883
  uploadedFile = _a.uploadedFile,
@@ -42976,145 +42892,168 @@ var Uploader = function Uploader(_a) {
42976
42892
  accept = _a.accept,
42977
42893
  name = _a.name,
42978
42894
  multiple = _a.multiple,
42979
- placeHolder = _a.placeHolder,
42980
- _b = _a.showFullPreview,
42981
- showFullPreview = _b === void 0 ? false : _b,
42982
- inputClassName = _a.inputClassName,
42983
- touched = _a.touched,
42895
+ fileExtension = _a.fileExtension,
42984
42896
  error = _a.error,
42985
- nameClassName = _a.nameClassName,
42986
- _c = _a.required,
42987
- required = _c === void 0 ? false : _c;
42897
+ _b = _a.required,
42898
+ required = _b === void 0 ? false : _b;
42988
42899
  var t = useTranslation().t;
42989
- var InlineFilePreview = function InlineFilePreview() {
42990
- 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
+ }
42991
42922
  switch (type) {
42992
- case FileTypes.IMAGE:
42923
+ case 'image':
42993
42924
  return jsxRuntimeExports.jsx(ImagePlaceholder, {
42994
- onClick: function onClick() {
42995
- handleFileClick(file.link);
42996
- },
42997
- children: jsxRuntimeExports.jsx("img", {
42998
- src: file === null || file === void 0 ? void 0 : file.link,
42999
- alt: ''
42925
+ children: jsxRuntimeExports.jsx(ImageWithFallback, {
42926
+ src: (uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.link) || '',
42927
+ alt: 'Image Thumbnail'
43000
42928
  })
43001
42929
  });
43002
- case FileTypes.VIDEO:
43003
- return jsxRuntimeExports.jsx(VideoPlaceholder, {
43004
- onClick: function onClick() {
43005
- var _a, _b;
43006
- 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'
43007
42952
  },
43008
- children: jsxRuntimeExports.jsx(OndemandVideoIcon, {
43009
- 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"
43010
42967
  })
43011
42968
  });
43012
- case FileTypes.AUDIO:
43013
- return jsxRuntimeExports.jsx(DefaultPlaceholder, {
43014
- onClick: function onClick() {
43015
- handleFileClick(file.link);
42969
+ case 'audio':
42970
+ return jsxRuntimeExports.jsx("div", {
42971
+ style: {
42972
+ marginTop: '3px'
43016
42973
  },
43017
- children: jsxRuntimeExports.jsx(HeadsetIcon, {
43018
- 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"
43019
42988
  })
43020
42989
  });
43021
42990
  default:
43022
- return jsxRuntimeExports.jsx(DefaultPlaceholder, {
43023
- onClick: function onClick() {
43024
- handleFileClick(file.link);
43025
- },
43026
- children: jsxRuntimeExports.jsx(InsertDriveFileIcon, {
43027
- 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"
43028
43006
  })
43029
43007
  });
43030
43008
  }
43031
43009
  };
43032
- return jsxRuntimeExports.jsxs(Container$3, {
43010
+ return jsxRuntimeExports.jsxs("div", {
43033
43011
  children: [label && jsxRuntimeExports.jsx(Title, {
43034
43012
  "$required": required,
43035
43013
  children: label
43036
- }), jsxRuntimeExports.jsxs(FlexContainer, {
43037
- children: [jsxRuntimeExports.jsx(ItemContainer, {
43038
- 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, {
43039
43033
  children: jsxRuntimeExports.jsx(TextInput, {
43040
- label: '',
43041
- placeholder: placeHolder ? placeHolder : 'Supported formats are PNG, JPG, JPEG',
43034
+ label: inputValue ? '' : "".concat(t('form_fields.file_name') || 'File name', " ").concat(fileExtension || ''),
43042
43035
  name: 'file',
43043
43036
  size: 'small',
43044
43037
  type: 'text',
43045
43038
  fullWidth: true,
43046
- touched: touched,
43047
- error: !!error,
43048
- value: inputValue,
43039
+ value: inputValue || '',
43049
43040
  onChange: onInputChange,
43050
43041
  disabled: disabled
43051
43042
  })
43052
- }), showFullPreview ? jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
43053
- children: [jsxRuntimeExports.jsx(ItemContainer, {
43054
- width: '23%',
43055
- children: loading ? jsxRuntimeExports.jsx(Loading, {
43056
- type: type,
43057
- loading: loading
43058
- }) : jsxRuntimeExports.jsxs(InputFileContainer, {
43059
- children: [jsxRuntimeExports.jsx(UploadInput, {
43060
- type: 'file',
43061
- className: nameClassName,
43062
- name: name,
43063
- id: id,
43064
- onChange: onFileChange,
43065
- multiple: multiple,
43066
- accept: accept
43067
- }), jsxRuntimeExports.jsxs(InputLabel, {
43068
- htmlFor: id,
43069
- children: [jsxRuntimeExports.jsx(FileUploadOutlinedIcon, {}), t('general.upload') || 'Upload', ' ']
43070
- })]
43071
- })
43072
- }), uploadedFile && type === FileTypes.IMAGE && jsxRuntimeExports.jsx(ImagePlaceholder, {
43073
- height: 160,
43074
- children: uploadedFile.link && jsxRuntimeExports.jsx("img", {
43075
- src: uploadedFile.link,
43076
- alt: 'Input Image'
43077
- })
43078
- }), uploadedFile && jsxRuntimeExports.jsx(CancelButton, {
43079
- onClick: deleteFile,
43080
- right: '160px',
43081
- top: '37px',
43082
- children: jsxRuntimeExports.jsx(CancelIcon, {
43083
- style: {
43084
- color: 'rgba(179, 179, 184, 1)'
43085
- }
43086
- })
43087
- })]
43088
- }) : jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
43089
- children: [jsxRuntimeExports.jsxs(ItemContainer, {
43090
- width: '23%',
43091
- children: [!uploadedFile && !loading && jsxRuntimeExports.jsxs(InputFileContainer, {
43092
- children: [jsxRuntimeExports.jsx(UploadInput, {
43093
- type: 'file',
43094
- className: inputClassName,
43095
- name: name,
43096
- id: id,
43097
- onChange: onFileChange,
43098
- multiple: multiple,
43099
- accept: accept
43100
- }), jsxRuntimeExports.jsxs(InputLabel, {
43101
- htmlFor: id,
43102
- children: [jsxRuntimeExports.jsx(FileUploadOutlinedIcon, {}), t('general.upload')]
43103
- })]
43104
- }), loading && jsxRuntimeExports.jsx(Loading, {
43105
- type: type,
43106
- loading: loading
43107
- }), uploadedFile && InlineFilePreview()]
43108
- }), uploadedFile && jsxRuntimeExports.jsx(CancelButton, {
43109
- onClick: deleteFile,
43110
- children: jsxRuntimeExports.jsx(CancelIcon, {
43111
- style: {
43112
- color: '#06C68F'
43113
- }
43114
- })
43115
- }), ' ']
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
+ })
43116
43055
  })]
43117
- }), error && touched && jsxRuntimeExports.jsx(ErrorText, {
43056
+ }), error && jsxRuntimeExports.jsx(ErrorText, {
43118
43057
  children: error
43119
43058
  })]
43120
43059
  });
@@ -81416,7 +81355,7 @@ function requirePlayers () {
81416
81355
  canPlay: import_patterns.canPlay.youtube,
81417
81356
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81418
81357
  /* webpackChunkName: 'reactPlayerYouTube' */
81419
- './YouTube-kg1XVxyv.js'
81358
+ './YouTube-Bko04PXB.js'
81420
81359
  ); }).then(function (n) { return n.YouTube; }))
81421
81360
  },
81422
81361
  {
@@ -81425,7 +81364,7 @@ function requirePlayers () {
81425
81364
  canPlay: import_patterns.canPlay.soundcloud,
81426
81365
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81427
81366
  /* webpackChunkName: 'reactPlayerSoundCloud' */
81428
- './SoundCloud-B00ur_Qj.js'
81367
+ './SoundCloud-CWfPIUXj.js'
81429
81368
  ); }).then(function (n) { return n.SoundCloud; }))
81430
81369
  },
81431
81370
  {
@@ -81434,7 +81373,7 @@ function requirePlayers () {
81434
81373
  canPlay: import_patterns.canPlay.vimeo,
81435
81374
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81436
81375
  /* webpackChunkName: 'reactPlayerVimeo' */
81437
- './Vimeo-CIc5nmCA.js'
81376
+ './Vimeo-BCG247ek.js'
81438
81377
  ); }).then(function (n) { return n.Vimeo; }))
81439
81378
  },
81440
81379
  {
@@ -81443,7 +81382,7 @@ function requirePlayers () {
81443
81382
  canPlay: import_patterns.canPlay.mux,
81444
81383
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81445
81384
  /* webpackChunkName: 'reactPlayerMux' */
81446
- './Mux-DRlgrJfr.js'
81385
+ './Mux-BWxS553y.js'
81447
81386
  ); }).then(function (n) { return n.Mux; }))
81448
81387
  },
81449
81388
  {
@@ -81452,7 +81391,7 @@ function requirePlayers () {
81452
81391
  canPlay: import_patterns.canPlay.facebook,
81453
81392
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81454
81393
  /* webpackChunkName: 'reactPlayerFacebook' */
81455
- './Facebook-DUSQsxT0.js'
81394
+ './Facebook-CPs-Ms_X.js'
81456
81395
  ); }).then(function (n) { return n.Facebook; }))
81457
81396
  },
81458
81397
  {
@@ -81461,7 +81400,7 @@ function requirePlayers () {
81461
81400
  canPlay: import_patterns.canPlay.streamable,
81462
81401
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81463
81402
  /* webpackChunkName: 'reactPlayerStreamable' */
81464
- './Streamable-B-JUOMxP.js'
81403
+ './Streamable-Dqtzhuip.js'
81465
81404
  ); }).then(function (n) { return n.Streamable; }))
81466
81405
  },
81467
81406
  {
@@ -81470,7 +81409,7 @@ function requirePlayers () {
81470
81409
  canPlay: import_patterns.canPlay.wistia,
81471
81410
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81472
81411
  /* webpackChunkName: 'reactPlayerWistia' */
81473
- './Wistia-CH6tXv5E.js'
81412
+ './Wistia-D2KJJODu.js'
81474
81413
  ); }).then(function (n) { return n.Wistia; }))
81475
81414
  },
81476
81415
  {
@@ -81479,7 +81418,7 @@ function requirePlayers () {
81479
81418
  canPlay: import_patterns.canPlay.twitch,
81480
81419
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81481
81420
  /* webpackChunkName: 'reactPlayerTwitch' */
81482
- './Twitch-DSAnP3JT.js'
81421
+ './Twitch-CJuQ6-kx.js'
81483
81422
  ); }).then(function (n) { return n.Twitch; }))
81484
81423
  },
81485
81424
  {
@@ -81488,7 +81427,7 @@ function requirePlayers () {
81488
81427
  canPlay: import_patterns.canPlay.dailymotion,
81489
81428
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81490
81429
  /* webpackChunkName: 'reactPlayerDailyMotion' */
81491
- './DailyMotion-QLITiLX6.js'
81430
+ './DailyMotion-Cyo9mQyt.js'
81492
81431
  ); }).then(function (n) { return n.DailyMotion; }))
81493
81432
  },
81494
81433
  {
@@ -81497,7 +81436,7 @@ function requirePlayers () {
81497
81436
  canPlay: import_patterns.canPlay.mixcloud,
81498
81437
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81499
81438
  /* webpackChunkName: 'reactPlayerMixcloud' */
81500
- './Mixcloud-D7KPYi8f.js'
81439
+ './Mixcloud-DJ_299OT.js'
81501
81440
  ); }).then(function (n) { return n.Mixcloud; }))
81502
81441
  },
81503
81442
  {
@@ -81506,7 +81445,7 @@ function requirePlayers () {
81506
81445
  canPlay: import_patterns.canPlay.vidyard,
81507
81446
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81508
81447
  /* webpackChunkName: 'reactPlayerVidyard' */
81509
- './Vidyard-BFd5mrx4.js'
81448
+ './Vidyard-BkuV0Ftd.js'
81510
81449
  ); }).then(function (n) { return n.Vidyard; }))
81511
81450
  },
81512
81451
  {
@@ -81515,7 +81454,7 @@ function requirePlayers () {
81515
81454
  canPlay: import_patterns.canPlay.kaltura,
81516
81455
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81517
81456
  /* webpackChunkName: 'reactPlayerKaltura' */
81518
- './Kaltura-uXGe7isE.js'
81457
+ './Kaltura-CyreQk0X.js'
81519
81458
  ); }).then(function (n) { return n.Kaltura; }))
81520
81459
  },
81521
81460
  {
@@ -81527,7 +81466,7 @@ function requirePlayers () {
81527
81466
  },
81528
81467
  lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
81529
81468
  /* webpackChunkName: 'reactPlayerFilePlayer' */
81530
- './FilePlayer-YziZ0BSF.js'
81469
+ './FilePlayer-DNH6fpJi.js'
81531
81470
  ); }).then(function (n) { return n.FilePlayer; }))
81532
81471
  }
81533
81472
  ];
@@ -82348,7 +82287,7 @@ function requireReactPlayer () {
82348
82287
  var import_Player = __toESM(/*@__PURE__*/ requirePlayer());
82349
82288
  const Preview = (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
82350
82289
  /* webpackChunkName: 'reactPlayerPreview' */
82351
- './Preview-C-BGR8lx.js'
82290
+ './Preview-BO_4FDai.js'
82352
82291
  ); }).then(function (n) { return n.Preview; }));
82353
82292
  const IS_BROWSER = typeof window !== "undefined" && window.document && typeof document !== "undefined";
82354
82293
  const IS_GLOBAL = typeof commonjsGlobal !== "undefined" && commonjsGlobal.window && commonjsGlobal.window.document;
@@ -82562,7 +82501,7 @@ var StyledWrapper = dt.div(templateObject_2$7 || (templateObject_2$7 = __makeTem
82562
82501
  var StyledPlayerLoader = dt.div(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: 8px;\n background: #e7e9ed;\n display: flex;\n align-items: center;\n top: 0;\n bottom: 0;\n margin: auto 0;\n color: var(--neutral-colors-light);\n justify-content: center;\n z-index: 5;\n"], ["\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: 8px;\n background: #e7e9ed;\n display: flex;\n align-items: center;\n top: 0;\n bottom: 0;\n margin: auto 0;\n color: var(--neutral-colors-light);\n justify-content: center;\n z-index: 5;\n"])));
82563
82502
  var rotate = mt(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"], ["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
82564
82503
  var StyledLoader = dt.div(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n margin: 60px auto;\n font-size: 10px;\n position: relative;\n text-indent: -9999em;\n border-top: 3px solid var(--neutral-colors-light);\n border-right: 3px solid var(--neutral-colors-light);\n border-bottom: 3px solid var(--neutral-colors-light);\n border-left: 3px solid var(--brand-colors-accent);\n transform: translateZ(0);\n animation: ", " 1.1s infinite linear;\n border-radius: 50%;\n width: 46px;\n height: 46px;\n\n &:after {\n border-radius: 50%;\n width: 46px;\n height: 46px;\n }\n"], ["\n margin: 60px auto;\n font-size: 10px;\n position: relative;\n text-indent: -9999em;\n border-top: 3px solid var(--neutral-colors-light);\n border-right: 3px solid var(--neutral-colors-light);\n border-bottom: 3px solid var(--neutral-colors-light);\n border-left: 3px solid var(--brand-colors-accent);\n transform: translateZ(0);\n animation: ", " 1.1s infinite linear;\n border-radius: 50%;\n width: 46px;\n height: 46px;\n\n &:after {\n border-radius: 50%;\n width: 46px;\n height: 46px;\n }\n"])), rotate);
82565
- var StyledControlsContainer = dt.div(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n width: 100%;\n height: fit-content;\n display: flex;\n align-items: flex-end;\n position: absolute;\n flex-direction: column;\n left: 0;\n bottom: 0;\n z-index: 2;\n"], ["\n width: 100%;\n height: fit-content;\n display: flex;\n align-items: flex-end;\n position: absolute;\n flex-direction: column;\n left: 0;\n bottom: 0;\n z-index: 2;\n"])));
82504
+ var StyledControlsContainer = dt.div(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n width: 100%;\n height: fit-content;\n display: flex;\n align-items: flex-end;\n position: absolute;\n flex-direction: column;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 2;\n"], ["\n width: 100%;\n height: fit-content;\n display: flex;\n align-items: flex-end;\n position: absolute;\n flex-direction: column;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 2;\n"])));
82566
82505
  var StyledSubtitles = dt.div(templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject(["\n background-color: rgba(2, 2, 16, 0.32);\n color: #fff;\n font-family: 'Open Sans', sans-serif;\n font-size: 18px;\n font-style: normal;\n font-weight: 400;\n line-height: 150%;\n padding: 8px;\n position: absolute;\n z-index: 100;\n bottom: ", ";\n right: 0;\n left: 0;\n width: fit-content;\n margin: 0 auto;\n max-width: 80%;\n width: fit-content;\n"], ["\n background-color: rgba(2, 2, 16, 0.32);\n color: #fff;\n font-family: 'Open Sans', sans-serif;\n font-size: 18px;\n font-style: normal;\n font-weight: 400;\n line-height: 150%;\n padding: 8px;\n position: absolute;\n z-index: 100;\n bottom: ", ";\n right: 0;\n left: 0;\n width: fit-content;\n margin: 0 auto;\n max-width: 80%;\n width: fit-content;\n"])), function (_a) {
82567
82506
  var $controls = _a.$controls;
82568
82507
  return $controls ? '60px' : '10px';
@@ -82590,7 +82529,7 @@ var injectHLSSubtitleStyles = function injectHLSSubtitleStyles() {
82590
82529
  };
82591
82530
  var templateObject_1$9, templateObject_2$7, templateObject_3$4, templateObject_4$2, templateObject_5$2, templateObject_6$2, templateObject_7$1;
82592
82531
 
82593
- var StyledControls = dt.div(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n width: 100%;\n border-radius: 0px 0px 8px 8px;\n background: #565a62;\n padding: 12px 16px;\n position: relative;\n\n svg {\n cursor: pointer;\n\n @media screen and (max-width: 1500px) {\n width: 20px;\n height: 20px;\n }\n\n @media screen and (max-width: 1000px) {\n width: 16px;\n height: 16px;\n }\n }\n\n & > p {\n color: var(--neutral-colors-light);\n font-family: 'Poppins', sans-serif;\n ", "\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n width: 100%;\n border-radius: 0px 0px 8px 8px;\n background: #565a62;\n padding: 12px 16px;\n position: relative;\n\n svg {\n cursor: pointer;\n\n @media screen and (max-width: 1500px) {\n width: 20px;\n height: 20px;\n }\n\n @media screen and (max-width: 1000px) {\n width: 16px;\n height: 16px;\n }\n }\n\n & > p {\n color: var(--neutral-colors-light);\n font-family: 'Poppins', sans-serif;\n ", "\n }\n"])), {
82532
+ var StyledControls = dt.div(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n width: 100%;\n border-radius: 0px 0px 8px 8px;\n background: rgba(86, 90, 98, 0.6);\n backdrop-filter: blur(4px);\n padding: 12px 16px;\n position: relative;\n opacity: 0.8;\n\n\n svg {\n cursor: pointer;\n\n @media screen and (max-width: 1500px) {\n width: 20px;\n height: 20px;\n }\n\n @media screen and (max-width: 1000px) {\n width: 16px;\n height: 16px;\n }\n }\n\n & > p {\n color: var(--neutral-colors-light);\n font-family: 'Poppins', sans-serif;\n ", "\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n width: 100%;\n border-radius: 0px 0px 8px 8px;\n background: rgba(86, 90, 98, 0.6);\n backdrop-filter: blur(4px);\n padding: 12px 16px;\n position: relative;\n opacity: 0.8;\n\n\n svg {\n cursor: pointer;\n\n @media screen and (max-width: 1500px) {\n width: 20px;\n height: 20px;\n }\n\n @media screen and (max-width: 1000px) {\n width: 16px;\n height: 16px;\n }\n }\n\n & > p {\n color: var(--neutral-colors-light);\n font-family: 'Poppins', sans-serif;\n ", "\n }\n"])), {
82594
82533
  fontStyle: 'descriptor'
82595
82534
  });
82596
82535
  var StyledSlider = dt.input(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n width: 100%;\n height: 2px;\n border-radius: 5px;\n position: absolute;\n top: 0;\n left: 0;\n background: ", ";\n outline: none;\n -webkit-transition: 0.2s;\n transition: opacity 0.2s;\n cursor: pointer;\n\n &::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background: var(--brand-colors-accent);\n cursor: pointer;\n }\n\n &::-moz-range-thumb {\n appearance: none;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background: var(--brand-colors-accent);\n cursor: pointer;\n }\n"], ["\n width: 100%;\n height: 2px;\n border-radius: 5px;\n position: absolute;\n top: 0;\n left: 0;\n background: ", ";\n outline: none;\n -webkit-transition: 0.2s;\n transition: opacity 0.2s;\n cursor: pointer;\n\n &::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background: var(--brand-colors-accent);\n cursor: pointer;\n }\n\n &::-moz-range-thumb {\n appearance: none;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background: var(--brand-colors-accent);\n cursor: pointer;\n }\n"])), function (_a) {
@@ -82602,8 +82541,8 @@ var StyledVolumeSlider = dt.input(templateObject_4$1 || (templateObject_4$1 = __
82602
82541
  var value = _a.value;
82603
82542
  return "linear-gradient(\n to right,\n var(--neutral-colors-light) 0%,\n var(--neutral-colors-light) ".concat(value, "%,\n var(--level-grey-500) ").concat(value, "%,\n var(--level-grey-500) 100%\n )");
82604
82543
  });
82605
- 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"])));
82606
- var StyledControllerRight = dt.div(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 16px;\n\n .skip-icon-disabled {\n cursor: default;\n\n & > path {\n fill: var(--level-dark-300);\n }\n }\n"], ["\n display: flex;\n align-items: center;\n gap: 16px;\n\n .skip-icon-disabled {\n cursor: default;\n\n & > path {\n fill: var(--level-dark-300);\n }\n }\n"])));
82544
+ var StyledControllerLeft = dt.div(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 16px;\n flex: 1;\n"], ["\n display: flex;\n align-items: center;\n gap: 16px;\n flex: 1;\n"])));
82545
+ var StyledControllerRight = dt.div(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 16px;\n flex-shrink: 0;\n\n .skip-icon-disabled {\n cursor: default;\n\n & > path {\n fill: var(--level-dark-300);\n }\n }\n"], ["\n display: flex;\n align-items: center;\n gap: 16px;\n flex-shrink: 0;\n\n .skip-icon-disabled {\n cursor: default;\n\n & > path {\n fill: var(--level-dark-300);\n }\n }\n"])));
82607
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"])), {
82608
82547
  fontStyle: 'descriptor'
82609
82548
  });
@@ -82613,7 +82552,7 @@ var StyledSubtitlesIconContainer = dt.div(templateObject_10 || (templateObject_1
82613
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"])));
82614
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"])));
82615
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"])));
82616
- 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"])));
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\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n \n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"])));
82617
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;
82618
82557
 
82619
82558
  var PLAYBACK_SPEED_LIST = [{
@@ -82931,22 +82870,26 @@ var Controls = function Controls(_a) {
82931
82870
  }), jsxRuntimeExports.jsxs(StyledControllerRight, {
82932
82871
  children: [handleSkipBackward && jsxRuntimeExports.jsx(CustomTooltip, {
82933
82872
  title: "Previous video",
82934
- children: jsxRuntimeExports.jsx(SkipIcon, {
82935
- onClick: function onClick() {
82936
- if (!isPreviousVideo) return;
82937
- handleSkipBackward();
82938
- },
82939
- className: isPreviousVideo ? '' : 'skip-icon-disabled'
82873
+ children: jsxRuntimeExports.jsx(StyledRewindIconContainer, {
82874
+ children: jsxRuntimeExports.jsx(SkipIcon, {
82875
+ onClick: function onClick() {
82876
+ if (!isPreviousVideo) return;
82877
+ handleSkipBackward();
82878
+ },
82879
+ className: isPreviousVideo ? '' : 'skip-icon-disabled'
82880
+ })
82940
82881
  })
82941
82882
  }), handleSkipForward && jsxRuntimeExports.jsx(CustomTooltip, {
82942
82883
  title: "Next video",
82943
- children: jsxRuntimeExports.jsx(SkipIcon, {
82944
- forward: true,
82945
- onClick: function onClick() {
82946
- if (!isNextVideo) return;
82947
- handleSkipForward();
82948
- },
82949
- className: isNextVideo ? '' : 'skip-icon-disabled'
82884
+ children: jsxRuntimeExports.jsx(StyledRewindIconContainer, {
82885
+ children: jsxRuntimeExports.jsx(SkipIcon, {
82886
+ forward: true,
82887
+ onClick: function onClick() {
82888
+ if (!isNextVideo) return;
82889
+ handleSkipForward();
82890
+ },
82891
+ className: isNextVideo ? '' : 'skip-icon-disabled'
82892
+ })
82950
82893
  })
82951
82894
  }), showFavorite && jsxRuntimeExports.jsx(CustomTooltip, {
82952
82895
  title: isFavorite ? 'Remove from favorites' : 'Add to favorites',