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
@@ -18837,7 +18837,7 @@ const _excluded$13 = ["onChange", "maxRows", "minRows", "style", "value"];
18837
18837
  function getStyleValue(value) {
18838
18838
  return parseInt(value, 10) || 0;
18839
18839
  }
18840
- const styles$3 = {
18840
+ const styles$4 = {
18841
18841
  shadow: {
18842
18842
  // Visibility needed to hide the extra text area on iPads
18843
18843
  visibility: 'hidden',
@@ -19025,7 +19025,7 @@ const TextareaAutosize = /*#__PURE__*/React.forwardRef(function TextareaAutosize
19025
19025
  readOnly: true,
19026
19026
  ref: hiddenTextareaRef,
19027
19027
  tabIndex: -1,
19028
- style: _extends$2({}, styles$3.shadow, style, {
19028
+ style: _extends$2({}, styles$4.shadow, style, {
19029
19029
  paddingTop: 0,
19030
19030
  paddingBottom: 0
19031
19031
  })
@@ -19853,7 +19853,7 @@ var ArrowDropDownIcon$2 = createSvgIcon$1( /*#__PURE__*/jsxRuntimeExports.jsx("p
19853
19853
  }), 'ArrowDropDown');
19854
19854
 
19855
19855
  const _excluded$11 = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
19856
- const styles$2 = {
19856
+ const styles$3 = {
19857
19857
  entering: {
19858
19858
  opacity: 1
19859
19859
  },
@@ -19962,7 +19962,7 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
19962
19962
  style: _extends$2({
19963
19963
  opacity: 0,
19964
19964
  visibility: state === 'exited' && !inProp ? 'hidden' : undefined
19965
- }, styles$2[state], style, children.props.style),
19965
+ }, styles$3[state], style, children.props.style),
19966
19966
  ref: handleRef
19967
19967
  }, childProps));
19968
19968
  }
@@ -23975,7 +23975,7 @@ const _excluded$O = ["addEndListener", "appear", "children", "easing", "in", "on
23975
23975
  function getScale$1(value) {
23976
23976
  return `scale(${value}, ${value ** 2})`;
23977
23977
  }
23978
- const styles$1 = {
23978
+ const styles$2 = {
23979
23979
  entering: {
23980
23980
  opacity: 1,
23981
23981
  transform: getScale$1(1)
@@ -24131,7 +24131,7 @@ const Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {
24131
24131
  opacity: 0,
24132
24132
  transform: getScale$1(0.75),
24133
24133
  visibility: state === 'exited' && !inProp ? 'hidden' : undefined
24134
- }, styles$1[state], style, children.props.style),
24134
+ }, styles$2[state], style, children.props.style),
24135
24135
  ref: handleRef
24136
24136
  }, childProps));
24137
24137
  }
@@ -32411,7 +32411,7 @@ var GridItemLessons = dt.div(templateObject_23$1 || (templateObject_23$1 = __mak
32411
32411
  }, function (props) {
32412
32412
  return props.checked ? '#333333' : '#20a8c6';
32413
32413
  });
32414
- var StyledToolTipContainer = dt.div(templateObject_24$1 || (templateObject_24$1 = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
32414
+ var StyledToolTipContainer = dt.div(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
32415
32415
  dt.div(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n cursor: pointer;\n padding: 6px 10px;\n transition: 0.3s ease;\n border-radius: 5px;\n opacity: ", ";\n &:hover {\n background: rgba(0, 0, 0, 0.1);\n }\n svg {\n font-size: 1rem;\n margin-right: 6px;\n width: 20px;\n height: 20px;\n }\n svg path {\n width: 20px;\n height: 20px;\n fill: #717882;\n }\n /* .MuiTypography-body1 {\n font-size: 0.875rem;\n } */\n"], ["\n display: flex;\n align-items: center;\n cursor: pointer;\n padding: 6px 10px;\n transition: 0.3s ease;\n border-radius: 5px;\n opacity: ", ";\n &:hover {\n background: rgba(0, 0, 0, 0.1);\n }\n svg {\n font-size: 1rem;\n margin-right: 6px;\n width: 20px;\n height: 20px;\n }\n svg path {\n width: 20px;\n height: 20px;\n fill: #717882;\n }\n /* .MuiTypography-body1 {\n font-size: 0.875rem;\n } */\n"])), function (_a) {
32416
32416
  var disabled = _a.disabled;
32417
32417
  return disabled ? '0.5' : '1';
@@ -32426,7 +32426,7 @@ var GridItem = dt.div(templateObject_32 || (templateObject_32 = __makeTemplateOb
32426
32426
  var $isFromUser = _a.$isFromUser;
32427
32427
  return $isFromUser && "\n figure {\n position: relative;\n &:after {\n content: 'View Analytics';\n position: absolute;\n top: 0;\n opacity: 0;\n color: #06c68f;\n left: 0;\n font-size: 24px;\n font-weight: 700;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(255, 255, 255, 0.9);\n width: 100%;\n height: 100%;\n transition: opacity 0.3s ease;\n z-index: 10;\n }\n }\n\n &:hover {\n figure {\n &:after {\n opacity: 1;\n }\n }\n }\n " || '';
32428
32428
  });
32429
- var templateObject_1$o, templateObject_2$j, templateObject_3$f, templateObject_4$c, templateObject_5$8, templateObject_6$7, templateObject_7$5, templateObject_8$4, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$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;
32429
+ var templateObject_1$o, templateObject_2$j, templateObject_3$f, templateObject_4$c, templateObject_5$8, templateObject_6$7, templateObject_7$5, templateObject_8$4, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$2, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21$1, templateObject_22$1, templateObject_23$1, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32;
32430
32430
 
32431
32431
  var TooltipHeight$1 = function TooltipHeight(_a) {
32432
32432
  var text = _a.text,
@@ -36473,7 +36473,7 @@ var FileCopyIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
36473
36473
  });
36474
36474
  FileCopyIcon.displayName = 'FileCopyIcon';
36475
36475
 
36476
- var HeadsetIcon$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
36476
+ var HeadsetIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
36477
36477
  var className = _a.className,
36478
36478
  onClick = _a.onClick,
36479
36479
  _b = _a.fill,
@@ -36495,7 +36495,7 @@ var HeadsetIcon$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
36495
36495
  })
36496
36496
  }));
36497
36497
  });
36498
- HeadsetIcon$1.displayName = 'HeadsetIcon';
36498
+ HeadsetIcon.displayName = 'HeadsetIcon';
36499
36499
 
36500
36500
  var LockIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
36501
36501
  var className = _a.className,
@@ -37454,7 +37454,7 @@ var HighlightOffRoundedIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
37454
37454
  });
37455
37455
  HighlightOffRoundedIcon.displayName = 'HighlightOffRoundedIcon';
37456
37456
 
37457
- var InsertDriveFileIcon$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
37457
+ var InsertDriveFileIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
37458
37458
  var className = _a.className,
37459
37459
  onClick = _a.onClick,
37460
37460
  _b = _a.fill,
@@ -37479,9 +37479,9 @@ var InsertDriveFileIcon$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
37479
37479
  })]
37480
37480
  }));
37481
37481
  });
37482
- InsertDriveFileIcon$1.displayName = 'InsertDriveFileIcon';
37482
+ InsertDriveFileIcon.displayName = 'InsertDriveFileIcon';
37483
37483
 
37484
- var OndemandVideoIcon$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
37484
+ var OndemandVideoIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
37485
37485
  var className = _a.className,
37486
37486
  onClick = _a.onClick,
37487
37487
  _b = _a.fill,
@@ -37506,7 +37506,7 @@ var OndemandVideoIcon$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
37506
37506
  })]
37507
37507
  }));
37508
37508
  });
37509
- OndemandVideoIcon$1.displayName = 'OndemandVideoIcon';
37509
+ OndemandVideoIcon.displayName = 'OndemandVideoIcon';
37510
37510
 
37511
37511
  var PublishIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
37512
37512
  var className = _a.className,
@@ -37694,7 +37694,7 @@ var VolumeUpIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
37694
37694
  });
37695
37695
  VolumeUpIcon.displayName = 'VolumeUpIcon';
37696
37696
 
37697
- var FileUploadOutlinedIcon$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
37697
+ var FileUploadOutlinedIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
37698
37698
  var className = _a.className,
37699
37699
  onClick = _a.onClick,
37700
37700
  _b = _a.fill,
@@ -37724,7 +37724,7 @@ var FileUploadOutlinedIcon$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
37724
37724
  })]
37725
37725
  }));
37726
37726
  });
37727
- FileUploadOutlinedIcon$1.displayName = 'FileUploadOutlinedIcon';
37727
+ FileUploadOutlinedIcon.displayName = 'FileUploadOutlinedIcon';
37728
37728
 
37729
37729
  var DashboardIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
37730
37730
  var className = _a.className,
@@ -42767,30 +42767,6 @@ function requireCancel () {
42767
42767
  var CancelExports = /*@__PURE__*/ requireCancel();
42768
42768
  var CancelIcon = /*@__PURE__*/getDefaultExportFromCjs(CancelExports);
42769
42769
 
42770
- var OndemandVideo = {};
42771
-
42772
- var hasRequiredOndemandVideo;
42773
-
42774
- function requireOndemandVideo () {
42775
- if (hasRequiredOndemandVideo) return OndemandVideo;
42776
- hasRequiredOndemandVideo = 1;
42777
-
42778
- var _interopRequireDefault = requireInteropRequireDefault();
42779
- Object.defineProperty(OndemandVideo, "__esModule", {
42780
- value: true
42781
- });
42782
- OndemandVideo.default = void 0;
42783
- var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
42784
- var _jsxRuntime = requireJsxRuntime();
42785
- OndemandVideo.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
42786
- 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"
42787
- }), 'OndemandVideo');
42788
- return OndemandVideo;
42789
- }
42790
-
42791
- var OndemandVideoExports = /*@__PURE__*/ requireOndemandVideo();
42792
- var OndemandVideoIcon = /*@__PURE__*/getDefaultExportFromCjs(OndemandVideoExports);
42793
-
42794
42770
  dt.div(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n position: relative;\n cursor: pointer;\n overflow: hidden;\n padding: 10px;\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-radius: 4px;\n height: 100%;\n transition: border 0.2s ease;\n\n .image_wrapper {\n position: relative;\n padding-top: 10px;\n width: 100px;\n height: 100px;\n border-radius: 4px;\n svg {\n position: absolute;\n right: -11px;\n top: 0px;\n }\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n\n .video_wrapper {\n padding: 5px 10px;\n background: #eee;\n margin-top: 10px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n svg {\n color: red;\n }\n }\n\n .file_wrapper {\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n svg {\n font-size: 20px;\n color: red;\n margin-left: 10px;\n }\n }\n\n label {\n cursor: pointer;\n display: flex;\n .MuiSvgIcon-fontSizeLarge {\n font-size: 5.1875rem;\n }\n\n svg {\n transform: scale(0.8);\n transition: transform 0.2s ease;\n }\n }\n input {\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n\n &.full {\n display: flex;\n align-items: center;\n justify-content: center;\n\n header {\n margin-right: 15px;\n }\n\n label {\n align-items: center;\n justify-content: center;\n width: 100%;\n }\n\n label svg {\n transform: scale(1);\n }\n }\n\n &.uploaded {\n border: 1px solid rgba(0, 0, 0, 0.3);\n\n header {\n color: rgba(0, 0, 0, 0.74);\n }\n\n label svg {\n transform: scale(1);\n }\n }\n"], ["\n position: relative;\n cursor: pointer;\n overflow: hidden;\n padding: 10px;\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-radius: 4px;\n height: 100%;\n transition: border 0.2s ease;\n\n .image_wrapper {\n position: relative;\n padding-top: 10px;\n width: 100px;\n height: 100px;\n border-radius: 4px;\n svg {\n position: absolute;\n right: -11px;\n top: 0px;\n }\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n\n .video_wrapper {\n padding: 5px 10px;\n background: #eee;\n margin-top: 10px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n svg {\n color: red;\n }\n }\n\n .file_wrapper {\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n svg {\n font-size: 20px;\n color: red;\n margin-left: 10px;\n }\n }\n\n label {\n cursor: pointer;\n display: flex;\n .MuiSvgIcon-fontSizeLarge {\n font-size: 5.1875rem;\n }\n\n svg {\n transform: scale(0.8);\n transition: transform 0.2s ease;\n }\n }\n input {\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n\n &.full {\n display: flex;\n align-items: center;\n justify-content: center;\n\n header {\n margin-right: 15px;\n }\n\n label {\n align-items: center;\n justify-content: center;\n width: 100%;\n }\n\n label svg {\n transform: scale(1);\n }\n }\n\n &.uploaded {\n border: 1px solid rgba(0, 0, 0, 0.3);\n\n header {\n color: rgba(0, 0, 0, 0.74);\n }\n\n label svg {\n transform: scale(1);\n }\n }\n"])));
42795
42771
  dt.div(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\n position: absolute;\n z-index: 2;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n border-radius: 4px;\n"], ["\n position: absolute;\n z-index: 2;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n border-radius: 4px;\n"])));
42796
42772
  dt.div(templateObject_3$a || (templateObject_3$a = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n padding: 0 30px;\n > div {\n width: 100%;\n text-align: center;\n }\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n padding: 0 30px;\n > div {\n width: 100%;\n text-align: center;\n }\n"])));
@@ -42801,147 +42777,87 @@ dt.div(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\n ba
42801
42777
  // Uploader
42802
42778
  ])));
42803
42779
  // Uploader
42804
- 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"])));
42805
- 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"])));
42806
- 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"])));
42807
- 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) {
42808
- var width = _a.width;
42809
- return width || '100%';
42810
- });
42811
- dt.div(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n width: 390px;\n"], ["\n width: 390px;\n"])));
42812
- var CancelButton = dt.div(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n top: ", ";\n cursor: pointer;\n"], ["\n position: absolute;\n right: ", ";\n top: ", ";\n cursor: pointer;\n"])), function (_a) {
42780
+ var Container$3 = dt.div(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n width: 100%;\n box-sizing: border-box;\n padding: 14px 10px;\n border: 1px solid rgba(0, 0, 0, 0.23);\n display: grid;\n grid-template-columns: 86px auto;\n align-items: center;\n position: relative;\n"], ["\n width: 100%;\n box-sizing: border-box;\n padding: 14px 10px;\n border: 1px solid rgba(0, 0, 0, 0.23);\n display: grid;\n grid-template-columns: 86px auto;\n align-items: center;\n position: relative;\n"])));
42781
+ var ItemContainer = dt.div(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject([""], [""])));
42782
+ dt.div(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n width: 390px;\n"], ["\n width: 390px;\n"])));
42783
+ var CancelButton = dt.div(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n top: ", ";\n cursor: pointer;\n"], ["\n position: absolute;\n right: ", ";\n top: ", ";\n cursor: pointer;\n"])), function (_a) {
42813
42784
  var right = _a.right;
42814
- return right || '-13px';
42785
+ return right || '-12px';
42815
42786
  }, function (_a) {
42816
42787
  var top = _a.top;
42817
- return top || '5px';
42818
- });
42819
- 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"])));
42820
- 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"])));
42821
- 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"])));
42822
- 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) {
42823
- var height = _a.height;
42824
- return height || 60;
42788
+ return top || '-12px';
42825
42789
  });
42826
- var InputLabel = dt.label(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 2px;\n padding: 5px 5px;\n max-width: 150px;\n cursor: pointer;\n background: #fff;\n border: 1px solid #08c694;\n color: #08c694;\n font-size: 19px;\n font-weight: 400;\n border-radius: 4px;\n width: 130px;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 2px;\n padding: 5px 5px;\n max-width: 150px;\n cursor: pointer;\n background: #fff;\n border: 1px solid #08c694;\n color: #08c694;\n font-size: 19px;\n font-weight: 400;\n border-radius: 4px;\n width: 130px;\n"
42790
+ var InputFileContainer = dt.div(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n /* input {\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n\n &label {\n width: 85%;\n height: 100%;\n cursor: pointer;\n } */\n"], ["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n /* input {\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n\n &label {\n width: 85%;\n height: 100%;\n cursor: pointer;\n } */\n"])));
42791
+ var UploadInput = dt.input(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject(["\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n width: 0;\n top: 0;\n overflow: hidden;\n"], ["\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n width: 0;\n top: 0;\n overflow: hidden;\n"])));
42792
+ dt.div(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject(["\n position: absolute;\n left: 0px;\n top: -15px;\n background: #fff;\n font-size: 12px;\n color: rgba(0, 0, 0, 0.54);\n"], ["\n position: absolute;\n left: 0px;\n top: -15px;\n background: #fff;\n font-size: 12px;\n color: rgba(0, 0, 0, 0.54);\n"])));
42793
+ var ImagePlaceholder = dt.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n img {\n position: relative;\n width: 72px;\n height: 48px;\n border-radius: 4px;\n padding: 4px;\n top: 2px;\n }\n"], ["\n img {\n position: relative;\n width: 72px;\n height: 48px;\n border-radius: 4px;\n padding: 4px;\n top: 2px;\n }\n"])));
42794
+ var InputLabel = dt.label(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n cursor: pointer;\n color: #fff;\n background: #06c68f;\n font-size: 11px;\n padding: 9px 6px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n cursor: pointer;\n color: #fff;\n background: #06c68f;\n font-size: 11px;\n padding: 9px 6px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n"
42827
42795
  // UploaderButton
42828
42796
  ])));
42829
42797
  // UploaderButton
42830
- 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"])));
42831
- 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"])));
42832
- 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"])));
42833
- 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"])));
42834
- 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"])));
42835
- var CircularProgressStyles = {
42836
- width: '32px',
42837
- height: '32px'
42838
- };
42839
- var Title = dt.h2(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n font-size: 16px;\n font-weight: 550;\n margin-bottom: 5px;\n\n ", "\n"], ["\n font-size: 16px;\n font-weight: 550;\n margin-bottom: 5px;\n\n ", "\n"])), function (_a) {
42798
+ dt.label(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n cursor: pointer;\n color: #fff;\n background: #06c68f;\n font-size: 11px;\n padding: 4px 6px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n"], ["\n cursor: pointer;\n color: #fff;\n background: #06c68f;\n font-size: 11px;\n padding: 4px 6px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n"])));
42799
+ dt.div(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n input {\n opacity: 0;\n width: 1px;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n"], ["\n input {\n opacity: 0;\n width: 1px;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n"])));
42800
+ dt.div(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n margin-left: auto;\n margin-top: 3px;\n width: 60px;\n cursor: pointer;\n"], ["\n margin-left: auto;\n margin-top: 3px;\n width: 60px;\n cursor: pointer;\n"])));
42801
+ dt.div(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n margin-left: 23px;\n margin-top: 3px;\n cursor: pointer;\n"], ["\n margin-left: 23px;\n margin-top: 3px;\n cursor: pointer;\n"])));
42802
+ dt.div(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n margin-left: 19px;\n margin-top: 2px;\n"], ["\n margin-left: 19px;\n margin-top: 2px;\n"])));
42803
+ var Title = dt.h2(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n font-size: 16px;\n font-weight: 550;\n margin-bottom: 5px;\n\n ", "\n"], ["\n font-size: 16px;\n font-weight: 550;\n margin-bottom: 5px;\n\n ", "\n"])), function (_a) {
42840
42804
  var $required = _a.$required;
42841
42805
  return $required ? "\n &::after {\n content: '*';\n color: red;\n margin-left: 3px;\n }\n " : '';
42842
42806
  });
42843
- 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;
42844
-
42845
- var InsertDriveFile = {};
42846
-
42847
- var hasRequiredInsertDriveFile;
42848
-
42849
- function requireInsertDriveFile () {
42850
- if (hasRequiredInsertDriveFile) return InsertDriveFile;
42851
- hasRequiredInsertDriveFile = 1;
42852
-
42853
- var _interopRequireDefault = requireInteropRequireDefault();
42854
- Object.defineProperty(InsertDriveFile, "__esModule", {
42855
- value: true
42856
- });
42857
- InsertDriveFile.default = void 0;
42858
- var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
42859
- var _jsxRuntime = requireJsxRuntime();
42860
- InsertDriveFile.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
42861
- 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"
42862
- }), 'InsertDriveFile');
42863
- return InsertDriveFile;
42864
- }
42865
-
42866
- var InsertDriveFileExports = /*@__PURE__*/ requireInsertDriveFile();
42867
- var InsertDriveFileIcon = /*@__PURE__*/getDefaultExportFromCjs(InsertDriveFileExports);
42868
-
42869
- var Headset = {};
42870
-
42871
- var hasRequiredHeadset;
42872
-
42873
- function requireHeadset () {
42874
- if (hasRequiredHeadset) return Headset;
42875
- hasRequiredHeadset = 1;
42876
-
42877
- var _interopRequireDefault = requireInteropRequireDefault();
42878
- Object.defineProperty(Headset, "__esModule", {
42879
- value: true
42880
- });
42881
- Headset.default = void 0;
42882
- var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
42883
- var _jsxRuntime = requireJsxRuntime();
42884
- Headset.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
42885
- 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"
42886
- }), 'Headset');
42887
- return Headset;
42888
- }
42889
-
42890
- var HeadsetExports = /*@__PURE__*/ requireHeadset();
42891
- var HeadsetIcon = /*@__PURE__*/getDefaultExportFromCjs(HeadsetExports);
42892
-
42893
- var FileUploadOutlined = {};
42894
-
42895
- var hasRequiredFileUploadOutlined;
42896
-
42897
- function requireFileUploadOutlined () {
42898
- if (hasRequiredFileUploadOutlined) return FileUploadOutlined;
42899
- hasRequiredFileUploadOutlined = 1;
42900
-
42901
- var _interopRequireDefault = requireInteropRequireDefault();
42902
- Object.defineProperty(FileUploadOutlined, "__esModule", {
42903
- value: true
42904
- });
42905
- FileUploadOutlined.default = void 0;
42906
- var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
42907
- var _jsxRuntime = requireJsxRuntime();
42908
- FileUploadOutlined.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
42909
- 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"
42910
- }), 'FileUploadOutlined');
42911
- return FileUploadOutlined;
42912
- }
42913
-
42914
- var FileUploadOutlinedExports = /*@__PURE__*/ requireFileUploadOutlined();
42915
- var FileUploadOutlinedIcon = /*@__PURE__*/getDefaultExportFromCjs(FileUploadOutlinedExports);
42916
-
42917
- var FileTypes;
42918
- (function (FileTypes) {
42919
- FileTypes["DOCUMENT"] = "document";
42920
- FileTypes["IMAGE"] = "image";
42921
- FileTypes["VIDEO"] = "video";
42922
- FileTypes["AUDIO"] = "audio";
42923
- FileTypes["FILE"] = "file";
42924
- })(FileTypes || (FileTypes = {}));
42807
+ var ErrorText = dt.p(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n font-size: 14px;\n color: #d32f2f;\n margin-top: 4px;\n"], ["\n font-size: 14px;\n color: #d32f2f;\n margin-top: 4px;\n"])));
42808
+ var styles$1 = {
42809
+ thumbnail: {
42810
+ width: '72px',
42811
+ height: '48px',
42812
+ borderRadius: '4px',
42813
+ padding: '4px'
42814
+ }
42815
+ };
42816
+ var templateObject_1$j, templateObject_2$e, templateObject_3$a, templateObject_4$7, templateObject_5$6, templateObject_6$5, templateObject_7$3, templateObject_8$2, templateObject_9$1, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14$1, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23;
42925
42817
 
42818
+ var ImageWithFallback = function ImageWithFallback(_a) {
42819
+ var src = _a.src,
42820
+ alt = _a.alt;
42821
+ var _b = useState(false),
42822
+ hasError = _b[0],
42823
+ setHasError = _b[1];
42824
+ if (hasError) {
42825
+ return jsxRuntimeExports.jsx(CircularProgress, {});
42826
+ }
42827
+ return jsxRuntimeExports.jsx("img", {
42828
+ src: src,
42829
+ alt: alt,
42830
+ style: styles$1.thumbnail,
42831
+ onError: function onError() {
42832
+ return setHasError(true);
42833
+ }
42834
+ });
42835
+ };
42926
42836
  var Loading = function Loading(_a) {
42927
42837
  var type = _a.type,
42928
42838
  loading = _a.loading;
42929
- if ([FileTypes.VIDEO, FileTypes.AUDIO].includes(type)) {
42930
- return jsxRuntimeExports.jsxs(LoadingProgressContainer, {
42839
+ if (['video', 'audio'].includes(type)) {
42840
+ return jsxRuntimeExports.jsxs("div", {
42841
+ style: {
42842
+ marginLeft: '19px',
42843
+ marginTop: '2px'
42844
+ },
42931
42845
  children: [Math.round(loading), " %"]
42932
42846
  });
42933
42847
  }
42934
- return jsxRuntimeExports.jsx(LoadingProgressContainer, {
42848
+ return jsxRuntimeExports.jsx("div", {
42849
+ style: {
42850
+ marginLeft: '19px',
42851
+ marginTop: '2px'
42852
+ },
42935
42853
  children: jsxRuntimeExports.jsx(CircularProgress, {
42936
- style: CircularProgressStyles
42854
+ style: {
42855
+ width: '32px',
42856
+ height: '32px'
42857
+ }
42937
42858
  })
42938
42859
  });
42939
42860
  };
42940
- var handleFileClick = function handleFileClick(link) {
42941
- if (link) {
42942
- window.open(link, '_blank');
42943
- }
42944
- };
42945
42861
  var Uploader = function Uploader(_a) {
42946
42862
  var type = _a.type,
42947
42863
  uploadedFile = _a.uploadedFile,
@@ -42956,145 +42872,168 @@ var Uploader = function Uploader(_a) {
42956
42872
  accept = _a.accept,
42957
42873
  name = _a.name,
42958
42874
  multiple = _a.multiple,
42959
- placeHolder = _a.placeHolder,
42960
- _b = _a.showFullPreview,
42961
- showFullPreview = _b === void 0 ? false : _b,
42962
- inputClassName = _a.inputClassName,
42963
- touched = _a.touched,
42875
+ fileExtension = _a.fileExtension,
42964
42876
  error = _a.error,
42965
- nameClassName = _a.nameClassName,
42966
- _c = _a.required,
42967
- required = _c === void 0 ? false : _c;
42877
+ _b = _a.required,
42878
+ required = _b === void 0 ? false : _b;
42968
42879
  var t = useTranslation().t;
42969
- var InlineFilePreview = function InlineFilePreview() {
42970
- var file = uploadedFile;
42880
+ var filePreview = function filePreview() {
42881
+ var _a;
42882
+ // pdf is in file type too so we need to check for pdf explicitly
42883
+ if (((_a = uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.link) === null || _a === void 0 ? void 0 : _a.split('.').pop()) === 'pdf') {
42884
+ return jsxRuntimeExports.jsx(ImagePlaceholder, {
42885
+ children: jsxRuntimeExports.jsx("div", {
42886
+ style: {
42887
+ fontSize: '10px',
42888
+ textAlign: 'center',
42889
+ padding: '4px',
42890
+ width: '72px',
42891
+ height: '48px',
42892
+ display: 'flex',
42893
+ alignItems: 'center',
42894
+ justifyContent: 'center',
42895
+ background: '#f5f5f5',
42896
+ borderRadius: '4px'
42897
+ },
42898
+ children: "PDF"
42899
+ })
42900
+ });
42901
+ }
42971
42902
  switch (type) {
42972
- case FileTypes.IMAGE:
42903
+ case 'image':
42973
42904
  return jsxRuntimeExports.jsx(ImagePlaceholder, {
42974
- onClick: function onClick() {
42975
- handleFileClick(file.link);
42976
- },
42977
- children: jsxRuntimeExports.jsx("img", {
42978
- src: file === null || file === void 0 ? void 0 : file.link,
42979
- alt: ''
42905
+ children: jsxRuntimeExports.jsx(ImageWithFallback, {
42906
+ src: (uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.link) || '',
42907
+ alt: 'Image Thumbnail'
42980
42908
  })
42981
42909
  });
42982
- case FileTypes.VIDEO:
42983
- return jsxRuntimeExports.jsx(VideoPlaceholder, {
42984
- onClick: function onClick() {
42985
- var _a, _b;
42986
- handleFileClick((_b = (_a = file.links) === null || _a === void 0 ? void 0 : _a[4]) === null || _b === void 0 ? void 0 : _b.url);
42910
+ case 'file':
42911
+ return jsxRuntimeExports.jsx(ImagePlaceholder, {
42912
+ children: jsxRuntimeExports.jsx("div", {
42913
+ style: {
42914
+ fontSize: '10px',
42915
+ textAlign: 'center',
42916
+ padding: '4px',
42917
+ width: '72px',
42918
+ height: '48px',
42919
+ display: 'flex',
42920
+ alignItems: 'center',
42921
+ justifyContent: 'center',
42922
+ background: '#f5f5f5',
42923
+ borderRadius: '4px'
42924
+ },
42925
+ children: "FILE"
42926
+ })
42927
+ });
42928
+ case 'video':
42929
+ return jsxRuntimeExports.jsx("div", {
42930
+ style: {
42931
+ marginTop: '3px'
42987
42932
  },
42988
- children: jsxRuntimeExports.jsx(OndemandVideoIcon, {
42989
- color: 'secondary'
42933
+ children: jsxRuntimeExports.jsx("div", {
42934
+ style: {
42935
+ fontSize: '10px',
42936
+ textAlign: 'center',
42937
+ padding: '4px',
42938
+ width: '72px',
42939
+ height: '48px',
42940
+ display: 'flex',
42941
+ alignItems: 'center',
42942
+ justifyContent: 'center',
42943
+ background: '#f5f5f5',
42944
+ borderRadius: '4px'
42945
+ },
42946
+ children: "VIDEO"
42990
42947
  })
42991
42948
  });
42992
- case FileTypes.AUDIO:
42993
- return jsxRuntimeExports.jsx(DefaultPlaceholder, {
42994
- onClick: function onClick() {
42995
- handleFileClick(file.link);
42949
+ case 'audio':
42950
+ return jsxRuntimeExports.jsx("div", {
42951
+ style: {
42952
+ marginTop: '3px'
42996
42953
  },
42997
- children: jsxRuntimeExports.jsx(HeadsetIcon, {
42998
- color: 'secondary'
42954
+ children: jsxRuntimeExports.jsx("div", {
42955
+ style: {
42956
+ fontSize: '10px',
42957
+ textAlign: 'center',
42958
+ padding: '4px',
42959
+ width: '72px',
42960
+ height: '48px',
42961
+ display: 'flex',
42962
+ alignItems: 'center',
42963
+ justifyContent: 'center',
42964
+ background: '#f5f5f5',
42965
+ borderRadius: '4px'
42966
+ },
42967
+ children: "AUDIO"
42999
42968
  })
43000
42969
  });
43001
42970
  default:
43002
- return jsxRuntimeExports.jsx(DefaultPlaceholder, {
43003
- onClick: function onClick() {
43004
- handleFileClick(file.link);
43005
- },
43006
- children: jsxRuntimeExports.jsx(InsertDriveFileIcon, {
43007
- color: 'secondary'
42971
+ return jsxRuntimeExports.jsx(ImagePlaceholder, {
42972
+ children: jsxRuntimeExports.jsx("div", {
42973
+ style: {
42974
+ fontSize: '10px',
42975
+ textAlign: 'center',
42976
+ padding: '4px',
42977
+ width: '72px',
42978
+ height: '48px',
42979
+ display: 'flex',
42980
+ alignItems: 'center',
42981
+ justifyContent: 'center',
42982
+ background: '#f5f5f5',
42983
+ borderRadius: '4px'
42984
+ },
42985
+ children: "FILE"
43008
42986
  })
43009
42987
  });
43010
42988
  }
43011
42989
  };
43012
- return jsxRuntimeExports.jsxs(Container$3, {
42990
+ return jsxRuntimeExports.jsxs("div", {
43013
42991
  children: [label && jsxRuntimeExports.jsx(Title, {
43014
42992
  "$required": required,
43015
42993
  children: label
43016
- }), jsxRuntimeExports.jsxs(FlexContainer, {
43017
- children: [jsxRuntimeExports.jsx(ItemContainer, {
43018
- width: '75%',
42994
+ }), jsxRuntimeExports.jsxs(Container$3, {
42995
+ children: [jsxRuntimeExports.jsxs(ItemContainer, {
42996
+ children: [!uploadedFile && !loading && jsxRuntimeExports.jsxs(InputFileContainer, {
42997
+ children: [jsxRuntimeExports.jsx(UploadInput, {
42998
+ type: 'file',
42999
+ name: name,
43000
+ id: id,
43001
+ onChange: onFileChange,
43002
+ multiple: multiple,
43003
+ accept: accept
43004
+ }), jsxRuntimeExports.jsx(InputLabel, {
43005
+ htmlFor: id,
43006
+ children: t('actions.choose_file') || 'Choose File'
43007
+ })]
43008
+ }), loading && jsxRuntimeExports.jsx(Loading, {
43009
+ type: type || 'file',
43010
+ loading: loading
43011
+ }), !disabled && uploadedFile && filePreview()]
43012
+ }), jsxRuntimeExports.jsx(ItemContainer, {
43019
43013
  children: jsxRuntimeExports.jsx(TextInput, {
43020
- label: '',
43021
- placeholder: placeHolder ? placeHolder : 'Supported formats are PNG, JPG, JPEG',
43014
+ label: inputValue ? '' : "".concat(t('form_fields.file_name') || 'File name', " ").concat(fileExtension || ''),
43022
43015
  name: 'file',
43023
43016
  size: 'small',
43024
43017
  type: 'text',
43025
43018
  fullWidth: true,
43026
- touched: touched,
43027
- error: !!error,
43028
- value: inputValue,
43019
+ value: inputValue || '',
43029
43020
  onChange: onInputChange,
43030
43021
  disabled: disabled
43031
43022
  })
43032
- }), showFullPreview ? jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
43033
- children: [jsxRuntimeExports.jsx(ItemContainer, {
43034
- width: '23%',
43035
- children: loading ? jsxRuntimeExports.jsx(Loading, {
43036
- type: type,
43037
- loading: loading
43038
- }) : jsxRuntimeExports.jsxs(InputFileContainer, {
43039
- children: [jsxRuntimeExports.jsx(UploadInput, {
43040
- type: 'file',
43041
- className: nameClassName,
43042
- name: name,
43043
- id: id,
43044
- onChange: onFileChange,
43045
- multiple: multiple,
43046
- accept: accept
43047
- }), jsxRuntimeExports.jsxs(InputLabel, {
43048
- htmlFor: id,
43049
- children: [jsxRuntimeExports.jsx(FileUploadOutlinedIcon, {}), t('general.upload') || 'Upload', ' ']
43050
- })]
43051
- })
43052
- }), uploadedFile && type === FileTypes.IMAGE && jsxRuntimeExports.jsx(ImagePlaceholder, {
43053
- height: 160,
43054
- children: uploadedFile.link && jsxRuntimeExports.jsx("img", {
43055
- src: uploadedFile.link,
43056
- alt: 'Input Image'
43057
- })
43058
- }), uploadedFile && jsxRuntimeExports.jsx(CancelButton, {
43059
- onClick: deleteFile,
43060
- right: '160px',
43061
- top: '37px',
43062
- children: jsxRuntimeExports.jsx(CancelIcon, {
43063
- style: {
43064
- color: 'rgba(179, 179, 184, 1)'
43065
- }
43066
- })
43067
- })]
43068
- }) : jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
43069
- children: [jsxRuntimeExports.jsxs(ItemContainer, {
43070
- width: '23%',
43071
- children: [!uploadedFile && !loading && jsxRuntimeExports.jsxs(InputFileContainer, {
43072
- children: [jsxRuntimeExports.jsx(UploadInput, {
43073
- type: 'file',
43074
- className: inputClassName,
43075
- name: name,
43076
- id: id,
43077
- onChange: onFileChange,
43078
- multiple: multiple,
43079
- accept: accept
43080
- }), jsxRuntimeExports.jsxs(InputLabel, {
43081
- htmlFor: id,
43082
- children: [jsxRuntimeExports.jsx(FileUploadOutlinedIcon, {}), t('general.upload')]
43083
- })]
43084
- }), loading && jsxRuntimeExports.jsx(Loading, {
43085
- type: type,
43086
- loading: loading
43087
- }), uploadedFile && InlineFilePreview()]
43088
- }), uploadedFile && jsxRuntimeExports.jsx(CancelButton, {
43089
- onClick: deleteFile,
43090
- children: jsxRuntimeExports.jsx(CancelIcon, {
43091
- style: {
43092
- color: '#06C68F'
43093
- }
43094
- })
43095
- }), ' ']
43023
+ }), uploadedFile && jsxRuntimeExports.jsx(CancelButton, {
43024
+ onClick: function onClick(e) {
43025
+ e.stopPropagation();
43026
+ if (deleteFile) {
43027
+ deleteFile();
43028
+ }
43029
+ },
43030
+ children: jsxRuntimeExports.jsx(CancelIcon, {
43031
+ style: {
43032
+ color: '#06C68F'
43033
+ }
43034
+ })
43096
43035
  })]
43097
- }), error && touched && jsxRuntimeExports.jsx(ErrorText, {
43036
+ }), error && jsxRuntimeExports.jsx(ErrorText, {
43098
43037
  children: error
43099
43038
  })]
43100
43039
  });
@@ -81396,7 +81335,7 @@ function requirePlayers () {
81396
81335
  canPlay: import_patterns.canPlay.youtube,
81397
81336
  lazyPlayer: (0, import_utils.lazy)(() => import(
81398
81337
  /* webpackChunkName: 'reactPlayerYouTube' */
81399
- './YouTube-yMeWWl4H.esm.js'
81338
+ './YouTube-kQuElqJG.esm.js'
81400
81339
  ).then(function (n) { return n.Y; }))
81401
81340
  },
81402
81341
  {
@@ -81405,7 +81344,7 @@ function requirePlayers () {
81405
81344
  canPlay: import_patterns.canPlay.soundcloud,
81406
81345
  lazyPlayer: (0, import_utils.lazy)(() => import(
81407
81346
  /* webpackChunkName: 'reactPlayerSoundCloud' */
81408
- './SoundCloud-DrNeCiTx.esm.js'
81347
+ './SoundCloud-CFXXBy2Z.esm.js'
81409
81348
  ).then(function (n) { return n.S; }))
81410
81349
  },
81411
81350
  {
@@ -81414,7 +81353,7 @@ function requirePlayers () {
81414
81353
  canPlay: import_patterns.canPlay.vimeo,
81415
81354
  lazyPlayer: (0, import_utils.lazy)(() => import(
81416
81355
  /* webpackChunkName: 'reactPlayerVimeo' */
81417
- './Vimeo-CR7Tdpoi.esm.js'
81356
+ './Vimeo-0VVg6nMH.esm.js'
81418
81357
  ).then(function (n) { return n.V; }))
81419
81358
  },
81420
81359
  {
@@ -81423,7 +81362,7 @@ function requirePlayers () {
81423
81362
  canPlay: import_patterns.canPlay.mux,
81424
81363
  lazyPlayer: (0, import_utils.lazy)(() => import(
81425
81364
  /* webpackChunkName: 'reactPlayerMux' */
81426
- './Mux-s9nPEsa_.esm.js'
81365
+ './Mux-CPaUZQah.esm.js'
81427
81366
  ).then(function (n) { return n.M; }))
81428
81367
  },
81429
81368
  {
@@ -81432,7 +81371,7 @@ function requirePlayers () {
81432
81371
  canPlay: import_patterns.canPlay.facebook,
81433
81372
  lazyPlayer: (0, import_utils.lazy)(() => import(
81434
81373
  /* webpackChunkName: 'reactPlayerFacebook' */
81435
- './Facebook-oiv7CRN4.esm.js'
81374
+ './Facebook-CJbuSY04.esm.js'
81436
81375
  ).then(function (n) { return n.F; }))
81437
81376
  },
81438
81377
  {
@@ -81441,7 +81380,7 @@ function requirePlayers () {
81441
81380
  canPlay: import_patterns.canPlay.streamable,
81442
81381
  lazyPlayer: (0, import_utils.lazy)(() => import(
81443
81382
  /* webpackChunkName: 'reactPlayerStreamable' */
81444
- './Streamable-Dffnss84.esm.js'
81383
+ './Streamable-DrNjqXjt.esm.js'
81445
81384
  ).then(function (n) { return n.S; }))
81446
81385
  },
81447
81386
  {
@@ -81450,7 +81389,7 @@ function requirePlayers () {
81450
81389
  canPlay: import_patterns.canPlay.wistia,
81451
81390
  lazyPlayer: (0, import_utils.lazy)(() => import(
81452
81391
  /* webpackChunkName: 'reactPlayerWistia' */
81453
- './Wistia-QMqy-uQw.esm.js'
81392
+ './Wistia-CEi72MTW.esm.js'
81454
81393
  ).then(function (n) { return n.W; }))
81455
81394
  },
81456
81395
  {
@@ -81459,7 +81398,7 @@ function requirePlayers () {
81459
81398
  canPlay: import_patterns.canPlay.twitch,
81460
81399
  lazyPlayer: (0, import_utils.lazy)(() => import(
81461
81400
  /* webpackChunkName: 'reactPlayerTwitch' */
81462
- './Twitch-DvucdzzS.esm.js'
81401
+ './Twitch-DjgALZAq.esm.js'
81463
81402
  ).then(function (n) { return n.T; }))
81464
81403
  },
81465
81404
  {
@@ -81468,7 +81407,7 @@ function requirePlayers () {
81468
81407
  canPlay: import_patterns.canPlay.dailymotion,
81469
81408
  lazyPlayer: (0, import_utils.lazy)(() => import(
81470
81409
  /* webpackChunkName: 'reactPlayerDailyMotion' */
81471
- './DailyMotion-dJVL9e3H.esm.js'
81410
+ './DailyMotion-MzOn9ju_.esm.js'
81472
81411
  ).then(function (n) { return n.D; }))
81473
81412
  },
81474
81413
  {
@@ -81477,7 +81416,7 @@ function requirePlayers () {
81477
81416
  canPlay: import_patterns.canPlay.mixcloud,
81478
81417
  lazyPlayer: (0, import_utils.lazy)(() => import(
81479
81418
  /* webpackChunkName: 'reactPlayerMixcloud' */
81480
- './Mixcloud-BTbWN-a0.esm.js'
81419
+ './Mixcloud-CIGHRTPD.esm.js'
81481
81420
  ).then(function (n) { return n.M; }))
81482
81421
  },
81483
81422
  {
@@ -81486,7 +81425,7 @@ function requirePlayers () {
81486
81425
  canPlay: import_patterns.canPlay.vidyard,
81487
81426
  lazyPlayer: (0, import_utils.lazy)(() => import(
81488
81427
  /* webpackChunkName: 'reactPlayerVidyard' */
81489
- './Vidyard--Qb_wLtp.esm.js'
81428
+ './Vidyard-M-vpaxMt.esm.js'
81490
81429
  ).then(function (n) { return n.V; }))
81491
81430
  },
81492
81431
  {
@@ -81495,7 +81434,7 @@ function requirePlayers () {
81495
81434
  canPlay: import_patterns.canPlay.kaltura,
81496
81435
  lazyPlayer: (0, import_utils.lazy)(() => import(
81497
81436
  /* webpackChunkName: 'reactPlayerKaltura' */
81498
- './Kaltura-D84ZFqY1.esm.js'
81437
+ './Kaltura-UmIP8SbX.esm.js'
81499
81438
  ).then(function (n) { return n.K; }))
81500
81439
  },
81501
81440
  {
@@ -81507,7 +81446,7 @@ function requirePlayers () {
81507
81446
  },
81508
81447
  lazyPlayer: (0, import_utils.lazy)(() => import(
81509
81448
  /* webpackChunkName: 'reactPlayerFilePlayer' */
81510
- './FilePlayer-B0iX_VuG.esm.js'
81449
+ './FilePlayer-CQvxGYWG.esm.js'
81511
81450
  ).then(function (n) { return n.F; }))
81512
81451
  }
81513
81452
  ];
@@ -82328,7 +82267,7 @@ function requireReactPlayer () {
82328
82267
  var import_Player = __toESM(/*@__PURE__*/ requirePlayer());
82329
82268
  const Preview = (0, import_utils.lazy)(() => import(
82330
82269
  /* webpackChunkName: 'reactPlayerPreview' */
82331
- './Preview-rhSMz_hY.esm.js'
82270
+ './Preview-CMj6CzdF.esm.js'
82332
82271
  ).then(function (n) { return n.P; }));
82333
82272
  const IS_BROWSER = typeof window !== "undefined" && window.document && typeof document !== "undefined";
82334
82273
  const IS_GLOBAL = typeof commonjsGlobal !== "undefined" && commonjsGlobal.window && commonjsGlobal.window.document;
@@ -82542,7 +82481,7 @@ var StyledWrapper = dt.div(templateObject_2$7 || (templateObject_2$7 = __makeTem
82542
82481
  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"])));
82543
82482
  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"])));
82544
82483
  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);
82545
- 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"])));
82484
+ var StyledControlsContainer = dt.div(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n width: 100%;\n height: fit-content;\n display: flex;\n align-items: flex-end;\n position: absolute;\n flex-direction: column;\n left: 0;\n bottom: 0;\n 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"])));
82546
82485
  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) {
82547
82486
  var $controls = _a.$controls;
82548
82487
  return $controls ? '60px' : '10px';
@@ -82570,7 +82509,7 @@ var injectHLSSubtitleStyles = function injectHLSSubtitleStyles() {
82570
82509
  };
82571
82510
  var templateObject_1$9, templateObject_2$7, templateObject_3$4, templateObject_4$2, templateObject_5$2, templateObject_6$2, templateObject_7$1;
82572
82511
 
82573
- 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"])), {
82512
+ var StyledControls = dt.div(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 16px;\n width: 100%;\n border-radius: 0px 0px 8px 8px;\n background: 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"])), {
82574
82513
  fontStyle: 'descriptor'
82575
82514
  });
82576
82515
  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) {
@@ -82582,8 +82521,8 @@ var StyledVolumeSlider = dt.input(templateObject_4$1 || (templateObject_4$1 = __
82582
82521
  var value = _a.value;
82583
82522
  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 )");
82584
82523
  });
82585
- 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"])));
82586
- 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"])));
82524
+ 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"])));
82525
+ 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"])));
82587
82526
  var StyledTimeTrack = dt.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n color: #FFFFFF;\n ", "\n text-align: right;\n white-space: nowrap;\n"], ["\n color: #FFFFFF;\n ", "\n text-align: right;\n white-space: nowrap;\n"])), {
82588
82527
  fontStyle: 'descriptor'
82589
82528
  });
@@ -82593,7 +82532,7 @@ var StyledSubtitlesIconContainer = dt.div(templateObject_10 || (templateObject_1
82593
82532
  var StyledFullscreenIconContainer = dt.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"])));
82594
82533
  var StyledVolumeIconContainer = dt.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"])));
82595
82534
  var StyledPlayPauseIconContainer = dt.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"])));
82596
- 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"])));
82535
+ var StyledRewindIconContainer = dt.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n \n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n \n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"])));
82597
82536
  var templateObject_1$8, templateObject_2$6, templateObject_3$3, templateObject_4$1, templateObject_5$1, templateObject_6$1, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14;
82598
82537
 
82599
82538
  var PLAYBACK_SPEED_LIST = [{
@@ -82911,22 +82850,26 @@ var Controls = function Controls(_a) {
82911
82850
  }), jsxRuntimeExports.jsxs(StyledControllerRight, {
82912
82851
  children: [handleSkipBackward && jsxRuntimeExports.jsx(CustomTooltip, {
82913
82852
  title: "Previous video",
82914
- children: jsxRuntimeExports.jsx(SkipIcon, {
82915
- onClick: function onClick() {
82916
- if (!isPreviousVideo) return;
82917
- handleSkipBackward();
82918
- },
82919
- className: isPreviousVideo ? '' : 'skip-icon-disabled'
82853
+ children: jsxRuntimeExports.jsx(StyledRewindIconContainer, {
82854
+ children: jsxRuntimeExports.jsx(SkipIcon, {
82855
+ onClick: function onClick() {
82856
+ if (!isPreviousVideo) return;
82857
+ handleSkipBackward();
82858
+ },
82859
+ className: isPreviousVideo ? '' : 'skip-icon-disabled'
82860
+ })
82920
82861
  })
82921
82862
  }), handleSkipForward && jsxRuntimeExports.jsx(CustomTooltip, {
82922
82863
  title: "Next video",
82923
- children: jsxRuntimeExports.jsx(SkipIcon, {
82924
- forward: true,
82925
- onClick: function onClick() {
82926
- if (!isNextVideo) return;
82927
- handleSkipForward();
82928
- },
82929
- className: isNextVideo ? '' : 'skip-icon-disabled'
82864
+ children: jsxRuntimeExports.jsx(StyledRewindIconContainer, {
82865
+ children: jsxRuntimeExports.jsx(SkipIcon, {
82866
+ forward: true,
82867
+ onClick: function onClick() {
82868
+ if (!isNextVideo) return;
82869
+ handleSkipForward();
82870
+ },
82871
+ className: isNextVideo ? '' : 'skip-icon-disabled'
82872
+ })
82930
82873
  })
82931
82874
  }), showFavorite && jsxRuntimeExports.jsx(CustomTooltip, {
82932
82875
  title: isFavorite ? 'Remove from favorites' : 'Add to favorites',