suada-components 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/{DailyMotion-QLITiLX6.js → DailyMotion-D1GfS99W.js} +1 -1
- package/dist/components/{DailyMotion-dJVL9e3H.esm.js → DailyMotion-DIc5BN6G.esm.js} +1 -1
- package/dist/components/{Facebook-oiv7CRN4.esm.js → Facebook-B1WhW-N8.esm.js} +1 -1
- package/dist/components/{Facebook-DUSQsxT0.js → Facebook-CCzLezvE.js} +1 -1
- package/dist/components/{FilePlayer-B0iX_VuG.esm.js → FilePlayer-BVX0TAd4.esm.js} +1 -1
- package/dist/components/{FilePlayer-YziZ0BSF.js → FilePlayer-CSeIQE-t.js} +1 -1
- package/dist/components/FileUploader/FileUploader.stories.d.ts +16 -0
- package/dist/components/FileUploader/FileUploader.stories.js +15 -1
- package/dist/components/FileUploader/FileUploader.stories.js.map +1 -1
- package/dist/components/FileUploader/Uploader.d.ts +1 -1
- package/dist/components/FileUploader/Uploader.js +37 -36
- package/dist/components/FileUploader/Uploader.js.map +1 -1
- package/dist/components/FileUploader/styled-components.d.ts +11 -8
- package/dist/components/FileUploader/styled-components.js +27 -26
- package/dist/components/FileUploader/styled-components.js.map +1 -1
- package/dist/components/{Kaltura-D84ZFqY1.esm.js → Kaltura-Dv3nF_qk.esm.js} +1 -1
- package/dist/components/{Kaltura-uXGe7isE.js → Kaltura-Ybj6tj4c.js} +1 -1
- package/dist/components/{Mixcloud-BTbWN-a0.esm.js → Mixcloud-DgO-TXVn.esm.js} +1 -1
- package/dist/components/{Mixcloud-D7KPYi8f.js → Mixcloud-NSXYlse6.js} +1 -1
- package/dist/components/{Mux-s9nPEsa_.esm.js → Mux-BVKUzr2W.esm.js} +1 -1
- package/dist/components/{Mux-DRlgrJfr.js → Mux-CWsIfXgR.js} +1 -1
- package/dist/components/{Preview-rhSMz_hY.esm.js → Preview-BYYoOVhE.esm.js} +1 -1
- package/dist/components/{Preview-C-BGR8lx.js → Preview-YEvp75ub.js} +1 -1
- package/dist/components/{SoundCloud-B00ur_Qj.js → SoundCloud-D5RE0hBN.js} +1 -1
- package/dist/components/{SoundCloud-DrNeCiTx.esm.js → SoundCloud-oy_T9Aiu.esm.js} +1 -1
- package/dist/components/{Streamable-Dffnss84.esm.js → Streamable-BEA6SKQj.esm.js} +1 -1
- package/dist/components/{Streamable-B-JUOMxP.js → Streamable-cVBLCtV4.js} +1 -1
- package/dist/components/{Twitch-DSAnP3JT.js → Twitch-DK8g5mI9.js} +1 -1
- package/dist/components/{Twitch-DvucdzzS.esm.js → Twitch-DPtzkrmp.esm.js} +1 -1
- package/dist/components/{Vidyard-BFd5mrx4.js → Vidyard-BfoXiL7u.js} +1 -1
- package/dist/components/{Vidyard--Qb_wLtp.esm.js → Vidyard-C80XYDQJ.esm.js} +1 -1
- package/dist/components/{Vimeo-CR7Tdpoi.esm.js → Vimeo-BuGV9164.esm.js} +1 -1
- package/dist/components/{Vimeo-CIc5nmCA.js → Vimeo-C71PHmy8.js} +1 -1
- package/dist/components/{Wistia-CH6tXv5E.js → Wistia-DZLhakqM.js} +1 -1
- package/dist/components/{Wistia-QMqy-uQw.esm.js → Wistia-ZeBeRmW3.esm.js} +1 -1
- package/dist/components/{YouTube-kg1XVxyv.js → YouTube-D2V4Z5LG.js} +1 -1
- package/dist/components/{YouTube-yMeWWl4H.esm.js → YouTube-DVacs1Or.esm.js} +1 -1
- package/dist/components/components/FileUploader/Uploader.d.ts +1 -1
- package/dist/components/components/FileUploader/styled-components.d.ts +11 -8
- package/dist/components/{index-7zJZUuRi.esm.js → index-0oGMHkIv.esm.js} +223 -284
- package/dist/components/{index-CDSxMyXo.js → index-CUdpL49N.js} +223 -284
- package/dist/components/index.esm.js +1 -1
- package/dist/icons/components/FileUploader/Uploader.d.ts +1 -1
- package/dist/icons/components/FileUploader/styled-components.d.ts +11 -8
- 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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
37482
|
+
InsertDriveFileIcon.displayName = 'InsertDriveFileIcon';
|
|
37483
37483
|
|
|
37484
|
-
var OndemandVideoIcon
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
42805
|
-
var
|
|
42806
|
-
|
|
42807
|
-
var
|
|
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 || '-
|
|
42785
|
+
return right || '-12px';
|
|
42815
42786
|
}, function (_a) {
|
|
42816
42787
|
var top = _a.top;
|
|
42817
|
-
return top || '
|
|
42788
|
+
return top || '-12px';
|
|
42818
42789
|
});
|
|
42819
|
-
var InputFileContainer = dt.div(
|
|
42820
|
-
var UploadInput = dt.input(
|
|
42821
|
-
dt.div(
|
|
42822
|
-
var ImagePlaceholder = dt.div(
|
|
42823
|
-
|
|
42824
|
-
return height || 60;
|
|
42825
|
-
});
|
|
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(
|
|
42831
|
-
dt.div(
|
|
42832
|
-
|
|
42833
|
-
|
|
42834
|
-
|
|
42835
|
-
var
|
|
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
|
|
42844
|
-
|
|
42845
|
-
|
|
42846
|
-
|
|
42847
|
-
|
|
42848
|
-
|
|
42849
|
-
|
|
42850
|
-
|
|
42851
|
-
|
|
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 ([
|
|
42930
|
-
return jsxRuntimeExports.jsxs(
|
|
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(
|
|
42848
|
+
return jsxRuntimeExports.jsx("div", {
|
|
42849
|
+
style: {
|
|
42850
|
+
marginLeft: '19px',
|
|
42851
|
+
marginTop: '2px'
|
|
42852
|
+
},
|
|
42935
42853
|
children: jsxRuntimeExports.jsx(CircularProgress, {
|
|
42936
|
-
style:
|
|
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
|
-
|
|
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
|
-
|
|
42966
|
-
|
|
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
|
|
42970
|
-
var
|
|
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
|
|
42903
|
+
case 'image':
|
|
42973
42904
|
return jsxRuntimeExports.jsx(ImagePlaceholder, {
|
|
42974
|
-
|
|
42975
|
-
|
|
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
|
|
42983
|
-
return jsxRuntimeExports.jsx(
|
|
42984
|
-
|
|
42985
|
-
|
|
42986
|
-
|
|
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(
|
|
42989
|
-
|
|
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
|
|
42993
|
-
return jsxRuntimeExports.jsx(
|
|
42994
|
-
|
|
42995
|
-
|
|
42949
|
+
case 'audio':
|
|
42950
|
+
return jsxRuntimeExports.jsx("div", {
|
|
42951
|
+
style: {
|
|
42952
|
+
marginTop: '3px'
|
|
42996
42953
|
},
|
|
42997
|
-
children: jsxRuntimeExports.jsx(
|
|
42998
|
-
|
|
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(
|
|
43003
|
-
|
|
43004
|
-
|
|
43005
|
-
|
|
43006
|
-
|
|
43007
|
-
|
|
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(
|
|
42990
|
+
return jsxRuntimeExports.jsxs("div", {
|
|
43013
42991
|
children: [label && jsxRuntimeExports.jsx(Title, {
|
|
43014
42992
|
"$required": required,
|
|
43015
42993
|
children: label
|
|
43016
|
-
}), jsxRuntimeExports.jsxs(
|
|
43017
|
-
children: [jsxRuntimeExports.
|
|
43018
|
-
|
|
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
|
-
|
|
43027
|
-
error: !!error,
|
|
43028
|
-
value: inputValue,
|
|
43019
|
+
value: inputValue || '',
|
|
43029
43020
|
onChange: onInputChange,
|
|
43030
43021
|
disabled: disabled
|
|
43031
43022
|
})
|
|
43032
|
-
}),
|
|
43033
|
-
|
|
43034
|
-
|
|
43035
|
-
|
|
43036
|
-
|
|
43037
|
-
|
|
43038
|
-
|
|
43039
|
-
|
|
43040
|
-
|
|
43041
|
-
|
|
43042
|
-
|
|
43043
|
-
|
|
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 &&
|
|
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-
|
|
81338
|
+
'./YouTube-DVacs1Or.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-
|
|
81347
|
+
'./SoundCloud-oy_T9Aiu.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-
|
|
81356
|
+
'./Vimeo-BuGV9164.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-
|
|
81365
|
+
'./Mux-BVKUzr2W.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-
|
|
81374
|
+
'./Facebook-B1WhW-N8.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-
|
|
81383
|
+
'./Streamable-BEA6SKQj.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-
|
|
81392
|
+
'./Wistia-ZeBeRmW3.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-
|
|
81401
|
+
'./Twitch-DPtzkrmp.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-
|
|
81410
|
+
'./DailyMotion-DIc5BN6G.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-
|
|
81419
|
+
'./Mixcloud-DgO-TXVn.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
|
|
81428
|
+
'./Vidyard-C80XYDQJ.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-
|
|
81437
|
+
'./Kaltura-Dv3nF_qk.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-
|
|
81449
|
+
'./FilePlayer-BVX0TAd4.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-
|
|
82270
|
+
'./Preview-BYYoOVhE.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;
|