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
|
@@ -18857,7 +18857,7 @@ const _excluded$13 = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
|
18857
18857
|
function getStyleValue(value) {
|
|
18858
18858
|
return parseInt(value, 10) || 0;
|
|
18859
18859
|
}
|
|
18860
|
-
const styles$
|
|
18860
|
+
const styles$4 = {
|
|
18861
18861
|
shadow: {
|
|
18862
18862
|
// Visibility needed to hide the extra text area on iPads
|
|
18863
18863
|
visibility: 'hidden',
|
|
@@ -19045,7 +19045,7 @@ const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function Texta
|
|
|
19045
19045
|
readOnly: true,
|
|
19046
19046
|
ref: hiddenTextareaRef,
|
|
19047
19047
|
tabIndex: -1,
|
|
19048
|
-
style: _extends$2({}, styles$
|
|
19048
|
+
style: _extends$2({}, styles$4.shadow, style, {
|
|
19049
19049
|
paddingTop: 0,
|
|
19050
19050
|
paddingBottom: 0
|
|
19051
19051
|
})
|
|
@@ -19873,7 +19873,7 @@ var ArrowDropDownIcon$2 = createSvgIcon$1( /*#__PURE__*/jsxRuntimeExports.jsx("p
|
|
|
19873
19873
|
}), 'ArrowDropDown');
|
|
19874
19874
|
|
|
19875
19875
|
const _excluded$11 = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
19876
|
-
const styles$
|
|
19876
|
+
const styles$3 = {
|
|
19877
19877
|
entering: {
|
|
19878
19878
|
opacity: 1
|
|
19879
19879
|
},
|
|
@@ -19982,7 +19982,7 @@ const Fade = /*#__PURE__*/React__namespace.forwardRef(function Fade(props, ref)
|
|
|
19982
19982
|
style: _extends$2({
|
|
19983
19983
|
opacity: 0,
|
|
19984
19984
|
visibility: state === 'exited' && !inProp ? 'hidden' : undefined
|
|
19985
|
-
}, styles$
|
|
19985
|
+
}, styles$3[state], style, children.props.style),
|
|
19986
19986
|
ref: handleRef
|
|
19987
19987
|
}, childProps));
|
|
19988
19988
|
}
|
|
@@ -23995,7 +23995,7 @@ const _excluded$O = ["addEndListener", "appear", "children", "easing", "in", "on
|
|
|
23995
23995
|
function getScale$1(value) {
|
|
23996
23996
|
return `scale(${value}, ${value ** 2})`;
|
|
23997
23997
|
}
|
|
23998
|
-
const styles$
|
|
23998
|
+
const styles$2 = {
|
|
23999
23999
|
entering: {
|
|
24000
24000
|
opacity: 1,
|
|
24001
24001
|
transform: getScale$1(1)
|
|
@@ -24151,7 +24151,7 @@ const Grow = /*#__PURE__*/React__namespace.forwardRef(function Grow(props, ref)
|
|
|
24151
24151
|
opacity: 0,
|
|
24152
24152
|
transform: getScale$1(0.75),
|
|
24153
24153
|
visibility: state === 'exited' && !inProp ? 'hidden' : undefined
|
|
24154
|
-
}, styles$
|
|
24154
|
+
}, styles$2[state], style, children.props.style),
|
|
24155
24155
|
ref: handleRef
|
|
24156
24156
|
}, childProps));
|
|
24157
24157
|
}
|
|
@@ -32431,7 +32431,7 @@ var GridItemLessons = dt.div(templateObject_23$1 || (templateObject_23$1 = __mak
|
|
|
32431
32431
|
}, function (props) {
|
|
32432
32432
|
return props.checked ? '#333333' : '#20a8c6';
|
|
32433
32433
|
});
|
|
32434
|
-
var StyledToolTipContainer = dt.div(templateObject_24
|
|
32434
|
+
var StyledToolTipContainer = dt.div(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
|
|
32435
32435
|
dt.div(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n cursor: pointer;\n padding: 6px 10px;\n transition: 0.3s ease;\n border-radius: 5px;\n opacity: ", ";\n &:hover {\n background: rgba(0, 0, 0, 0.1);\n }\n svg {\n font-size: 1rem;\n margin-right: 6px;\n width: 20px;\n height: 20px;\n }\n svg path {\n width: 20px;\n height: 20px;\n fill: #717882;\n }\n /* .MuiTypography-body1 {\n font-size: 0.875rem;\n } */\n"], ["\n display: flex;\n align-items: center;\n cursor: pointer;\n padding: 6px 10px;\n transition: 0.3s ease;\n border-radius: 5px;\n opacity: ", ";\n &:hover {\n background: rgba(0, 0, 0, 0.1);\n }\n svg {\n font-size: 1rem;\n margin-right: 6px;\n width: 20px;\n height: 20px;\n }\n svg path {\n width: 20px;\n height: 20px;\n fill: #717882;\n }\n /* .MuiTypography-body1 {\n font-size: 0.875rem;\n } */\n"])), function (_a) {
|
|
32436
32436
|
var disabled = _a.disabled;
|
|
32437
32437
|
return disabled ? '0.5' : '1';
|
|
@@ -32446,7 +32446,7 @@ var GridItem = dt.div(templateObject_32 || (templateObject_32 = __makeTemplateOb
|
|
|
32446
32446
|
var $isFromUser = _a.$isFromUser;
|
|
32447
32447
|
return $isFromUser && "\n figure {\n position: relative;\n &:after {\n content: 'View Analytics';\n position: absolute;\n top: 0;\n opacity: 0;\n color: #06c68f;\n left: 0;\n font-size: 24px;\n font-weight: 700;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(255, 255, 255, 0.9);\n width: 100%;\n height: 100%;\n transition: opacity 0.3s ease;\n z-index: 10;\n }\n }\n\n &:hover {\n figure {\n &:after {\n opacity: 1;\n }\n }\n }\n " || '';
|
|
32448
32448
|
});
|
|
32449
|
-
var templateObject_1$o, templateObject_2$j, templateObject_3$f, templateObject_4$c, templateObject_5$8, templateObject_6$7, templateObject_7$5, templateObject_8$4, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$2, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21$1, templateObject_22$1, templateObject_23$1, templateObject_24
|
|
32449
|
+
var templateObject_1$o, templateObject_2$j, templateObject_3$f, templateObject_4$c, templateObject_5$8, templateObject_6$7, templateObject_7$5, templateObject_8$4, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$2, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21$1, templateObject_22$1, templateObject_23$1, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32;
|
|
32450
32450
|
|
|
32451
32451
|
var TooltipHeight$1 = function TooltipHeight(_a) {
|
|
32452
32452
|
var text = _a.text,
|
|
@@ -36493,7 +36493,7 @@ var FileCopyIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
36493
36493
|
});
|
|
36494
36494
|
FileCopyIcon.displayName = 'FileCopyIcon';
|
|
36495
36495
|
|
|
36496
|
-
var HeadsetIcon
|
|
36496
|
+
var HeadsetIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
36497
36497
|
var className = _a.className,
|
|
36498
36498
|
onClick = _a.onClick,
|
|
36499
36499
|
_b = _a.fill,
|
|
@@ -36515,7 +36515,7 @@ var HeadsetIcon$1 = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
36515
36515
|
})
|
|
36516
36516
|
}));
|
|
36517
36517
|
});
|
|
36518
|
-
HeadsetIcon
|
|
36518
|
+
HeadsetIcon.displayName = 'HeadsetIcon';
|
|
36519
36519
|
|
|
36520
36520
|
var LockIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
36521
36521
|
var className = _a.className,
|
|
@@ -37474,7 +37474,7 @@ var HighlightOffRoundedIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
37474
37474
|
});
|
|
37475
37475
|
HighlightOffRoundedIcon.displayName = 'HighlightOffRoundedIcon';
|
|
37476
37476
|
|
|
37477
|
-
var InsertDriveFileIcon
|
|
37477
|
+
var InsertDriveFileIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
37478
37478
|
var className = _a.className,
|
|
37479
37479
|
onClick = _a.onClick,
|
|
37480
37480
|
_b = _a.fill,
|
|
@@ -37499,9 +37499,9 @@ var InsertDriveFileIcon$1 = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
37499
37499
|
})]
|
|
37500
37500
|
}));
|
|
37501
37501
|
});
|
|
37502
|
-
InsertDriveFileIcon
|
|
37502
|
+
InsertDriveFileIcon.displayName = 'InsertDriveFileIcon';
|
|
37503
37503
|
|
|
37504
|
-
var OndemandVideoIcon
|
|
37504
|
+
var OndemandVideoIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
37505
37505
|
var className = _a.className,
|
|
37506
37506
|
onClick = _a.onClick,
|
|
37507
37507
|
_b = _a.fill,
|
|
@@ -37526,7 +37526,7 @@ var OndemandVideoIcon$1 = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
37526
37526
|
})]
|
|
37527
37527
|
}));
|
|
37528
37528
|
});
|
|
37529
|
-
OndemandVideoIcon
|
|
37529
|
+
OndemandVideoIcon.displayName = 'OndemandVideoIcon';
|
|
37530
37530
|
|
|
37531
37531
|
var PublishIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
37532
37532
|
var className = _a.className,
|
|
@@ -37714,7 +37714,7 @@ var VolumeUpIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
37714
37714
|
});
|
|
37715
37715
|
VolumeUpIcon.displayName = 'VolumeUpIcon';
|
|
37716
37716
|
|
|
37717
|
-
var FileUploadOutlinedIcon
|
|
37717
|
+
var FileUploadOutlinedIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
37718
37718
|
var className = _a.className,
|
|
37719
37719
|
onClick = _a.onClick,
|
|
37720
37720
|
_b = _a.fill,
|
|
@@ -37744,7 +37744,7 @@ var FileUploadOutlinedIcon$1 = /*#__PURE__*/React.forwardRef(function (_a, ref)
|
|
|
37744
37744
|
})]
|
|
37745
37745
|
}));
|
|
37746
37746
|
});
|
|
37747
|
-
FileUploadOutlinedIcon
|
|
37747
|
+
FileUploadOutlinedIcon.displayName = 'FileUploadOutlinedIcon';
|
|
37748
37748
|
|
|
37749
37749
|
var DashboardIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
37750
37750
|
var className = _a.className,
|
|
@@ -42787,30 +42787,6 @@ function requireCancel () {
|
|
|
42787
42787
|
var CancelExports = /*@__PURE__*/ requireCancel();
|
|
42788
42788
|
var CancelIcon = /*@__PURE__*/getDefaultExportFromCjs(CancelExports);
|
|
42789
42789
|
|
|
42790
|
-
var OndemandVideo = {};
|
|
42791
|
-
|
|
42792
|
-
var hasRequiredOndemandVideo;
|
|
42793
|
-
|
|
42794
|
-
function requireOndemandVideo () {
|
|
42795
|
-
if (hasRequiredOndemandVideo) return OndemandVideo;
|
|
42796
|
-
hasRequiredOndemandVideo = 1;
|
|
42797
|
-
|
|
42798
|
-
var _interopRequireDefault = requireInteropRequireDefault();
|
|
42799
|
-
Object.defineProperty(OndemandVideo, "__esModule", {
|
|
42800
|
-
value: true
|
|
42801
|
-
});
|
|
42802
|
-
OndemandVideo.default = void 0;
|
|
42803
|
-
var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
|
|
42804
|
-
var _jsxRuntime = requireJsxRuntime();
|
|
42805
|
-
OndemandVideo.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
42806
|
-
d: "M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2m0 14H3V5h18zm-5-6-7 4V7z"
|
|
42807
|
-
}), 'OndemandVideo');
|
|
42808
|
-
return OndemandVideo;
|
|
42809
|
-
}
|
|
42810
|
-
|
|
42811
|
-
var OndemandVideoExports = /*@__PURE__*/ requireOndemandVideo();
|
|
42812
|
-
var OndemandVideoIcon = /*@__PURE__*/getDefaultExportFromCjs(OndemandVideoExports);
|
|
42813
|
-
|
|
42814
42790
|
dt.div(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n position: relative;\n cursor: pointer;\n overflow: hidden;\n padding: 10px;\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-radius: 4px;\n height: 100%;\n transition: border 0.2s ease;\n\n .image_wrapper {\n position: relative;\n padding-top: 10px;\n width: 100px;\n height: 100px;\n border-radius: 4px;\n svg {\n position: absolute;\n right: -11px;\n top: 0px;\n }\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n\n .video_wrapper {\n padding: 5px 10px;\n background: #eee;\n margin-top: 10px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n svg {\n color: red;\n }\n }\n\n .file_wrapper {\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n svg {\n font-size: 20px;\n color: red;\n margin-left: 10px;\n }\n }\n\n label {\n cursor: pointer;\n display: flex;\n .MuiSvgIcon-fontSizeLarge {\n font-size: 5.1875rem;\n }\n\n svg {\n transform: scale(0.8);\n transition: transform 0.2s ease;\n }\n }\n input {\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n\n &.full {\n display: flex;\n align-items: center;\n justify-content: center;\n\n header {\n margin-right: 15px;\n }\n\n label {\n align-items: center;\n justify-content: center;\n width: 100%;\n }\n\n label svg {\n transform: scale(1);\n }\n }\n\n &.uploaded {\n border: 1px solid rgba(0, 0, 0, 0.3);\n\n header {\n color: rgba(0, 0, 0, 0.74);\n }\n\n label svg {\n transform: scale(1);\n }\n }\n"], ["\n position: relative;\n cursor: pointer;\n overflow: hidden;\n padding: 10px;\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-radius: 4px;\n height: 100%;\n transition: border 0.2s ease;\n\n .image_wrapper {\n position: relative;\n padding-top: 10px;\n width: 100px;\n height: 100px;\n border-radius: 4px;\n svg {\n position: absolute;\n right: -11px;\n top: 0px;\n }\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n\n .video_wrapper {\n padding: 5px 10px;\n background: #eee;\n margin-top: 10px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n svg {\n color: red;\n }\n }\n\n .file_wrapper {\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n svg {\n font-size: 20px;\n color: red;\n margin-left: 10px;\n }\n }\n\n label {\n cursor: pointer;\n display: flex;\n .MuiSvgIcon-fontSizeLarge {\n font-size: 5.1875rem;\n }\n\n svg {\n transform: scale(0.8);\n transition: transform 0.2s ease;\n }\n }\n input {\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n\n &.full {\n display: flex;\n align-items: center;\n justify-content: center;\n\n header {\n margin-right: 15px;\n }\n\n label {\n align-items: center;\n justify-content: center;\n width: 100%;\n }\n\n label svg {\n transform: scale(1);\n }\n }\n\n &.uploaded {\n border: 1px solid rgba(0, 0, 0, 0.3);\n\n header {\n color: rgba(0, 0, 0, 0.74);\n }\n\n label svg {\n transform: scale(1);\n }\n }\n"])));
|
|
42815
42791
|
dt.div(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\n position: absolute;\n z-index: 2;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n border-radius: 4px;\n"], ["\n position: absolute;\n z-index: 2;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n border-radius: 4px;\n"])));
|
|
42816
42792
|
dt.div(templateObject_3$a || (templateObject_3$a = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n padding: 0 30px;\n > div {\n width: 100%;\n text-align: center;\n }\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n padding: 0 30px;\n > div {\n width: 100%;\n text-align: center;\n }\n"])));
|
|
@@ -42821,147 +42797,87 @@ dt.div(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\n ba
|
|
|
42821
42797
|
// Uploader
|
|
42822
42798
|
])));
|
|
42823
42799
|
// Uploader
|
|
42824
|
-
var Container$3 = dt.div(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n width: 100%;\n box-sizing: border-box;\n display:
|
|
42825
|
-
var
|
|
42826
|
-
|
|
42827
|
-
var
|
|
42828
|
-
var width = _a.width;
|
|
42829
|
-
return width || '100%';
|
|
42830
|
-
});
|
|
42831
|
-
dt.div(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n width: 390px;\n"], ["\n width: 390px;\n"])));
|
|
42832
|
-
var CancelButton = dt.div(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n top: ", ";\n cursor: pointer;\n"], ["\n position: absolute;\n right: ", ";\n top: ", ";\n cursor: pointer;\n"])), function (_a) {
|
|
42800
|
+
var Container$3 = dt.div(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n width: 100%;\n box-sizing: border-box;\n padding: 14px 10px;\n border: 1px solid rgba(0, 0, 0, 0.23);\n display: grid;\n grid-template-columns: 86px auto;\n align-items: center;\n position: relative;\n"], ["\n width: 100%;\n box-sizing: border-box;\n padding: 14px 10px;\n border: 1px solid rgba(0, 0, 0, 0.23);\n display: grid;\n grid-template-columns: 86px auto;\n align-items: center;\n position: relative;\n"])));
|
|
42801
|
+
var ItemContainer = dt.div(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject([""], [""])));
|
|
42802
|
+
dt.div(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n width: 390px;\n"], ["\n width: 390px;\n"])));
|
|
42803
|
+
var CancelButton = dt.div(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n top: ", ";\n cursor: pointer;\n"], ["\n position: absolute;\n right: ", ";\n top: ", ";\n cursor: pointer;\n"])), function (_a) {
|
|
42833
42804
|
var right = _a.right;
|
|
42834
|
-
return right || '-
|
|
42805
|
+
return right || '-12px';
|
|
42835
42806
|
}, function (_a) {
|
|
42836
42807
|
var top = _a.top;
|
|
42837
|
-
return top || '
|
|
42808
|
+
return top || '-12px';
|
|
42838
42809
|
});
|
|
42839
|
-
var InputFileContainer = dt.div(
|
|
42840
|
-
var UploadInput = dt.input(
|
|
42841
|
-
dt.div(
|
|
42842
|
-
var ImagePlaceholder = dt.div(
|
|
42843
|
-
|
|
42844
|
-
return height || 60;
|
|
42845
|
-
});
|
|
42846
|
-
var InputLabel = dt.label(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 2px;\n padding: 5px 5px;\n max-width: 150px;\n cursor: pointer;\n background: #fff;\n border: 1px solid #08c694;\n color: #08c694;\n font-size: 19px;\n font-weight: 400;\n border-radius: 4px;\n width: 130px;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 2px;\n padding: 5px 5px;\n max-width: 150px;\n cursor: pointer;\n background: #fff;\n border: 1px solid #08c694;\n color: #08c694;\n font-size: 19px;\n font-weight: 400;\n border-radius: 4px;\n width: 130px;\n"
|
|
42810
|
+
var InputFileContainer = dt.div(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n /* input {\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n\n &label {\n width: 85%;\n height: 100%;\n cursor: pointer;\n } */\n"], ["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n /* input {\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n\n &label {\n width: 85%;\n height: 100%;\n cursor: pointer;\n } */\n"])));
|
|
42811
|
+
var UploadInput = dt.input(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject(["\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n width: 0;\n top: 0;\n overflow: hidden;\n"], ["\n opacity: 0;\n position: absolute;\n z-index: -1;\n left: 0;\n width: 0;\n top: 0;\n overflow: hidden;\n"])));
|
|
42812
|
+
dt.div(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject(["\n position: absolute;\n left: 0px;\n top: -15px;\n background: #fff;\n font-size: 12px;\n color: rgba(0, 0, 0, 0.54);\n"], ["\n position: absolute;\n left: 0px;\n top: -15px;\n background: #fff;\n font-size: 12px;\n color: rgba(0, 0, 0, 0.54);\n"])));
|
|
42813
|
+
var ImagePlaceholder = dt.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n img {\n position: relative;\n width: 72px;\n height: 48px;\n border-radius: 4px;\n padding: 4px;\n top: 2px;\n }\n"], ["\n img {\n position: relative;\n width: 72px;\n height: 48px;\n border-radius: 4px;\n padding: 4px;\n top: 2px;\n }\n"])));
|
|
42814
|
+
var InputLabel = dt.label(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n cursor: pointer;\n color: #fff;\n background: #06c68f;\n font-size: 11px;\n padding: 9px 6px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n cursor: pointer;\n color: #fff;\n background: #06c68f;\n font-size: 11px;\n padding: 9px 6px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n"
|
|
42847
42815
|
// UploaderButton
|
|
42848
42816
|
])));
|
|
42849
42817
|
// UploaderButton
|
|
42850
|
-
dt.label(
|
|
42851
|
-
dt.div(
|
|
42852
|
-
|
|
42853
|
-
|
|
42854
|
-
|
|
42855
|
-
var
|
|
42856
|
-
width: '32px',
|
|
42857
|
-
height: '32px'
|
|
42858
|
-
};
|
|
42859
|
-
var Title = dt.h2(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n font-size: 16px;\n font-weight: 550;\n margin-bottom: 5px;\n\n ", "\n"], ["\n font-size: 16px;\n font-weight: 550;\n margin-bottom: 5px;\n\n ", "\n"])), function (_a) {
|
|
42818
|
+
dt.label(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n cursor: pointer;\n color: #fff;\n background: #06c68f;\n font-size: 11px;\n padding: 4px 6px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n"], ["\n cursor: pointer;\n color: #fff;\n background: #06c68f;\n font-size: 11px;\n padding: 4px 6px;\n border-radius: 4px;\n display: flex;\n align-items: center;\n"])));
|
|
42819
|
+
dt.div(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n input {\n opacity: 0;\n width: 1px;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n"], ["\n input {\n opacity: 0;\n width: 1px;\n position: absolute;\n z-index: -1;\n left: 0;\n top: 0;\n overflow: hidden;\n }\n"])));
|
|
42820
|
+
dt.div(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n margin-left: auto;\n margin-top: 3px;\n width: 60px;\n cursor: pointer;\n"], ["\n margin-left: auto;\n margin-top: 3px;\n width: 60px;\n cursor: pointer;\n"])));
|
|
42821
|
+
dt.div(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n margin-left: 23px;\n margin-top: 3px;\n cursor: pointer;\n"], ["\n margin-left: 23px;\n margin-top: 3px;\n cursor: pointer;\n"])));
|
|
42822
|
+
dt.div(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n margin-left: 19px;\n margin-top: 2px;\n"], ["\n margin-left: 19px;\n margin-top: 2px;\n"])));
|
|
42823
|
+
var Title = dt.h2(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n font-size: 16px;\n font-weight: 550;\n margin-bottom: 5px;\n\n ", "\n"], ["\n font-size: 16px;\n font-weight: 550;\n margin-bottom: 5px;\n\n ", "\n"])), function (_a) {
|
|
42860
42824
|
var $required = _a.$required;
|
|
42861
42825
|
return $required ? "\n &::after {\n content: '*';\n color: red;\n margin-left: 3px;\n }\n " : '';
|
|
42862
42826
|
});
|
|
42863
|
-
var
|
|
42864
|
-
|
|
42865
|
-
|
|
42866
|
-
|
|
42867
|
-
|
|
42868
|
-
|
|
42869
|
-
|
|
42870
|
-
|
|
42871
|
-
|
|
42872
|
-
|
|
42873
|
-
var _interopRequireDefault = requireInteropRequireDefault();
|
|
42874
|
-
Object.defineProperty(InsertDriveFile, "__esModule", {
|
|
42875
|
-
value: true
|
|
42876
|
-
});
|
|
42877
|
-
InsertDriveFile.default = void 0;
|
|
42878
|
-
var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
|
|
42879
|
-
var _jsxRuntime = requireJsxRuntime();
|
|
42880
|
-
InsertDriveFile.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
42881
|
-
d: "M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"
|
|
42882
|
-
}), 'InsertDriveFile');
|
|
42883
|
-
return InsertDriveFile;
|
|
42884
|
-
}
|
|
42885
|
-
|
|
42886
|
-
var InsertDriveFileExports = /*@__PURE__*/ requireInsertDriveFile();
|
|
42887
|
-
var InsertDriveFileIcon = /*@__PURE__*/getDefaultExportFromCjs(InsertDriveFileExports);
|
|
42888
|
-
|
|
42889
|
-
var Headset = {};
|
|
42890
|
-
|
|
42891
|
-
var hasRequiredHeadset;
|
|
42892
|
-
|
|
42893
|
-
function requireHeadset () {
|
|
42894
|
-
if (hasRequiredHeadset) return Headset;
|
|
42895
|
-
hasRequiredHeadset = 1;
|
|
42896
|
-
|
|
42897
|
-
var _interopRequireDefault = requireInteropRequireDefault();
|
|
42898
|
-
Object.defineProperty(Headset, "__esModule", {
|
|
42899
|
-
value: true
|
|
42900
|
-
});
|
|
42901
|
-
Headset.default = void 0;
|
|
42902
|
-
var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
|
|
42903
|
-
var _jsxRuntime = requireJsxRuntime();
|
|
42904
|
-
Headset.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
42905
|
-
d: "M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h3c1.66 0 3-1.34 3-3v-7c0-4.97-4.03-9-9-9"
|
|
42906
|
-
}), 'Headset');
|
|
42907
|
-
return Headset;
|
|
42908
|
-
}
|
|
42909
|
-
|
|
42910
|
-
var HeadsetExports = /*@__PURE__*/ requireHeadset();
|
|
42911
|
-
var HeadsetIcon = /*@__PURE__*/getDefaultExportFromCjs(HeadsetExports);
|
|
42912
|
-
|
|
42913
|
-
var FileUploadOutlined = {};
|
|
42914
|
-
|
|
42915
|
-
var hasRequiredFileUploadOutlined;
|
|
42916
|
-
|
|
42917
|
-
function requireFileUploadOutlined () {
|
|
42918
|
-
if (hasRequiredFileUploadOutlined) return FileUploadOutlined;
|
|
42919
|
-
hasRequiredFileUploadOutlined = 1;
|
|
42920
|
-
|
|
42921
|
-
var _interopRequireDefault = requireInteropRequireDefault();
|
|
42922
|
-
Object.defineProperty(FileUploadOutlined, "__esModule", {
|
|
42923
|
-
value: true
|
|
42924
|
-
});
|
|
42925
|
-
FileUploadOutlined.default = void 0;
|
|
42926
|
-
var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
|
|
42927
|
-
var _jsxRuntime = requireJsxRuntime();
|
|
42928
|
-
FileUploadOutlined.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
42929
|
-
d: "M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"
|
|
42930
|
-
}), 'FileUploadOutlined');
|
|
42931
|
-
return FileUploadOutlined;
|
|
42932
|
-
}
|
|
42933
|
-
|
|
42934
|
-
var FileUploadOutlinedExports = /*@__PURE__*/ requireFileUploadOutlined();
|
|
42935
|
-
var FileUploadOutlinedIcon = /*@__PURE__*/getDefaultExportFromCjs(FileUploadOutlinedExports);
|
|
42936
|
-
|
|
42937
|
-
var FileTypes;
|
|
42938
|
-
(function (FileTypes) {
|
|
42939
|
-
FileTypes["DOCUMENT"] = "document";
|
|
42940
|
-
FileTypes["IMAGE"] = "image";
|
|
42941
|
-
FileTypes["VIDEO"] = "video";
|
|
42942
|
-
FileTypes["AUDIO"] = "audio";
|
|
42943
|
-
FileTypes["FILE"] = "file";
|
|
42944
|
-
})(FileTypes || (FileTypes = {}));
|
|
42827
|
+
var ErrorText = dt.p(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n font-size: 14px;\n color: #d32f2f;\n margin-top: 4px;\n"], ["\n font-size: 14px;\n color: #d32f2f;\n margin-top: 4px;\n"])));
|
|
42828
|
+
var styles$1 = {
|
|
42829
|
+
thumbnail: {
|
|
42830
|
+
width: '72px',
|
|
42831
|
+
height: '48px',
|
|
42832
|
+
borderRadius: '4px',
|
|
42833
|
+
padding: '4px'
|
|
42834
|
+
}
|
|
42835
|
+
};
|
|
42836
|
+
var templateObject_1$j, templateObject_2$e, templateObject_3$a, templateObject_4$7, templateObject_5$6, templateObject_6$5, templateObject_7$3, templateObject_8$2, templateObject_9$1, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14$1, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23;
|
|
42945
42837
|
|
|
42838
|
+
var ImageWithFallback = function ImageWithFallback(_a) {
|
|
42839
|
+
var src = _a.src,
|
|
42840
|
+
alt = _a.alt;
|
|
42841
|
+
var _b = React.useState(false),
|
|
42842
|
+
hasError = _b[0],
|
|
42843
|
+
setHasError = _b[1];
|
|
42844
|
+
if (hasError) {
|
|
42845
|
+
return jsxRuntimeExports.jsx(CircularProgress, {});
|
|
42846
|
+
}
|
|
42847
|
+
return jsxRuntimeExports.jsx("img", {
|
|
42848
|
+
src: src,
|
|
42849
|
+
alt: alt,
|
|
42850
|
+
style: styles$1.thumbnail,
|
|
42851
|
+
onError: function onError() {
|
|
42852
|
+
return setHasError(true);
|
|
42853
|
+
}
|
|
42854
|
+
});
|
|
42855
|
+
};
|
|
42946
42856
|
var Loading = function Loading(_a) {
|
|
42947
42857
|
var type = _a.type,
|
|
42948
42858
|
loading = _a.loading;
|
|
42949
|
-
if ([
|
|
42950
|
-
return jsxRuntimeExports.jsxs(
|
|
42859
|
+
if (['video', 'audio'].includes(type)) {
|
|
42860
|
+
return jsxRuntimeExports.jsxs("div", {
|
|
42861
|
+
style: {
|
|
42862
|
+
marginLeft: '19px',
|
|
42863
|
+
marginTop: '2px'
|
|
42864
|
+
},
|
|
42951
42865
|
children: [Math.round(loading), " %"]
|
|
42952
42866
|
});
|
|
42953
42867
|
}
|
|
42954
|
-
return jsxRuntimeExports.jsx(
|
|
42868
|
+
return jsxRuntimeExports.jsx("div", {
|
|
42869
|
+
style: {
|
|
42870
|
+
marginLeft: '19px',
|
|
42871
|
+
marginTop: '2px'
|
|
42872
|
+
},
|
|
42955
42873
|
children: jsxRuntimeExports.jsx(CircularProgress, {
|
|
42956
|
-
style:
|
|
42874
|
+
style: {
|
|
42875
|
+
width: '32px',
|
|
42876
|
+
height: '32px'
|
|
42877
|
+
}
|
|
42957
42878
|
})
|
|
42958
42879
|
});
|
|
42959
42880
|
};
|
|
42960
|
-
var handleFileClick = function handleFileClick(link) {
|
|
42961
|
-
if (link) {
|
|
42962
|
-
window.open(link, '_blank');
|
|
42963
|
-
}
|
|
42964
|
-
};
|
|
42965
42881
|
var Uploader = function Uploader(_a) {
|
|
42966
42882
|
var type = _a.type,
|
|
42967
42883
|
uploadedFile = _a.uploadedFile,
|
|
@@ -42976,145 +42892,168 @@ var Uploader = function Uploader(_a) {
|
|
|
42976
42892
|
accept = _a.accept,
|
|
42977
42893
|
name = _a.name,
|
|
42978
42894
|
multiple = _a.multiple,
|
|
42979
|
-
|
|
42980
|
-
_b = _a.showFullPreview,
|
|
42981
|
-
showFullPreview = _b === void 0 ? false : _b,
|
|
42982
|
-
inputClassName = _a.inputClassName,
|
|
42983
|
-
touched = _a.touched,
|
|
42895
|
+
fileExtension = _a.fileExtension,
|
|
42984
42896
|
error = _a.error,
|
|
42985
|
-
|
|
42986
|
-
|
|
42987
|
-
required = _c === void 0 ? false : _c;
|
|
42897
|
+
_b = _a.required,
|
|
42898
|
+
required = _b === void 0 ? false : _b;
|
|
42988
42899
|
var t = useTranslation().t;
|
|
42989
|
-
var
|
|
42990
|
-
var
|
|
42900
|
+
var filePreview = function filePreview() {
|
|
42901
|
+
var _a;
|
|
42902
|
+
// pdf is in file type too so we need to check for pdf explicitly
|
|
42903
|
+
if (((_a = uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.link) === null || _a === void 0 ? void 0 : _a.split('.').pop()) === 'pdf') {
|
|
42904
|
+
return jsxRuntimeExports.jsx(ImagePlaceholder, {
|
|
42905
|
+
children: jsxRuntimeExports.jsx("div", {
|
|
42906
|
+
style: {
|
|
42907
|
+
fontSize: '10px',
|
|
42908
|
+
textAlign: 'center',
|
|
42909
|
+
padding: '4px',
|
|
42910
|
+
width: '72px',
|
|
42911
|
+
height: '48px',
|
|
42912
|
+
display: 'flex',
|
|
42913
|
+
alignItems: 'center',
|
|
42914
|
+
justifyContent: 'center',
|
|
42915
|
+
background: '#f5f5f5',
|
|
42916
|
+
borderRadius: '4px'
|
|
42917
|
+
},
|
|
42918
|
+
children: "PDF"
|
|
42919
|
+
})
|
|
42920
|
+
});
|
|
42921
|
+
}
|
|
42991
42922
|
switch (type) {
|
|
42992
|
-
case
|
|
42923
|
+
case 'image':
|
|
42993
42924
|
return jsxRuntimeExports.jsx(ImagePlaceholder, {
|
|
42994
|
-
|
|
42995
|
-
|
|
42996
|
-
|
|
42997
|
-
children: jsxRuntimeExports.jsx("img", {
|
|
42998
|
-
src: file === null || file === void 0 ? void 0 : file.link,
|
|
42999
|
-
alt: ''
|
|
42925
|
+
children: jsxRuntimeExports.jsx(ImageWithFallback, {
|
|
42926
|
+
src: (uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.link) || '',
|
|
42927
|
+
alt: 'Image Thumbnail'
|
|
43000
42928
|
})
|
|
43001
42929
|
});
|
|
43002
|
-
case
|
|
43003
|
-
return jsxRuntimeExports.jsx(
|
|
43004
|
-
|
|
43005
|
-
|
|
43006
|
-
|
|
42930
|
+
case 'file':
|
|
42931
|
+
return jsxRuntimeExports.jsx(ImagePlaceholder, {
|
|
42932
|
+
children: jsxRuntimeExports.jsx("div", {
|
|
42933
|
+
style: {
|
|
42934
|
+
fontSize: '10px',
|
|
42935
|
+
textAlign: 'center',
|
|
42936
|
+
padding: '4px',
|
|
42937
|
+
width: '72px',
|
|
42938
|
+
height: '48px',
|
|
42939
|
+
display: 'flex',
|
|
42940
|
+
alignItems: 'center',
|
|
42941
|
+
justifyContent: 'center',
|
|
42942
|
+
background: '#f5f5f5',
|
|
42943
|
+
borderRadius: '4px'
|
|
42944
|
+
},
|
|
42945
|
+
children: "FILE"
|
|
42946
|
+
})
|
|
42947
|
+
});
|
|
42948
|
+
case 'video':
|
|
42949
|
+
return jsxRuntimeExports.jsx("div", {
|
|
42950
|
+
style: {
|
|
42951
|
+
marginTop: '3px'
|
|
43007
42952
|
},
|
|
43008
|
-
children: jsxRuntimeExports.jsx(
|
|
43009
|
-
|
|
42953
|
+
children: jsxRuntimeExports.jsx("div", {
|
|
42954
|
+
style: {
|
|
42955
|
+
fontSize: '10px',
|
|
42956
|
+
textAlign: 'center',
|
|
42957
|
+
padding: '4px',
|
|
42958
|
+
width: '72px',
|
|
42959
|
+
height: '48px',
|
|
42960
|
+
display: 'flex',
|
|
42961
|
+
alignItems: 'center',
|
|
42962
|
+
justifyContent: 'center',
|
|
42963
|
+
background: '#f5f5f5',
|
|
42964
|
+
borderRadius: '4px'
|
|
42965
|
+
},
|
|
42966
|
+
children: "VIDEO"
|
|
43010
42967
|
})
|
|
43011
42968
|
});
|
|
43012
|
-
case
|
|
43013
|
-
return jsxRuntimeExports.jsx(
|
|
43014
|
-
|
|
43015
|
-
|
|
42969
|
+
case 'audio':
|
|
42970
|
+
return jsxRuntimeExports.jsx("div", {
|
|
42971
|
+
style: {
|
|
42972
|
+
marginTop: '3px'
|
|
43016
42973
|
},
|
|
43017
|
-
children: jsxRuntimeExports.jsx(
|
|
43018
|
-
|
|
42974
|
+
children: jsxRuntimeExports.jsx("div", {
|
|
42975
|
+
style: {
|
|
42976
|
+
fontSize: '10px',
|
|
42977
|
+
textAlign: 'center',
|
|
42978
|
+
padding: '4px',
|
|
42979
|
+
width: '72px',
|
|
42980
|
+
height: '48px',
|
|
42981
|
+
display: 'flex',
|
|
42982
|
+
alignItems: 'center',
|
|
42983
|
+
justifyContent: 'center',
|
|
42984
|
+
background: '#f5f5f5',
|
|
42985
|
+
borderRadius: '4px'
|
|
42986
|
+
},
|
|
42987
|
+
children: "AUDIO"
|
|
43019
42988
|
})
|
|
43020
42989
|
});
|
|
43021
42990
|
default:
|
|
43022
|
-
return jsxRuntimeExports.jsx(
|
|
43023
|
-
|
|
43024
|
-
|
|
43025
|
-
|
|
43026
|
-
|
|
43027
|
-
|
|
42991
|
+
return jsxRuntimeExports.jsx(ImagePlaceholder, {
|
|
42992
|
+
children: jsxRuntimeExports.jsx("div", {
|
|
42993
|
+
style: {
|
|
42994
|
+
fontSize: '10px',
|
|
42995
|
+
textAlign: 'center',
|
|
42996
|
+
padding: '4px',
|
|
42997
|
+
width: '72px',
|
|
42998
|
+
height: '48px',
|
|
42999
|
+
display: 'flex',
|
|
43000
|
+
alignItems: 'center',
|
|
43001
|
+
justifyContent: 'center',
|
|
43002
|
+
background: '#f5f5f5',
|
|
43003
|
+
borderRadius: '4px'
|
|
43004
|
+
},
|
|
43005
|
+
children: "FILE"
|
|
43028
43006
|
})
|
|
43029
43007
|
});
|
|
43030
43008
|
}
|
|
43031
43009
|
};
|
|
43032
|
-
return jsxRuntimeExports.jsxs(
|
|
43010
|
+
return jsxRuntimeExports.jsxs("div", {
|
|
43033
43011
|
children: [label && jsxRuntimeExports.jsx(Title, {
|
|
43034
43012
|
"$required": required,
|
|
43035
43013
|
children: label
|
|
43036
|
-
}), jsxRuntimeExports.jsxs(
|
|
43037
|
-
children: [jsxRuntimeExports.
|
|
43038
|
-
|
|
43014
|
+
}), jsxRuntimeExports.jsxs(Container$3, {
|
|
43015
|
+
children: [jsxRuntimeExports.jsxs(ItemContainer, {
|
|
43016
|
+
children: [!uploadedFile && !loading && jsxRuntimeExports.jsxs(InputFileContainer, {
|
|
43017
|
+
children: [jsxRuntimeExports.jsx(UploadInput, {
|
|
43018
|
+
type: 'file',
|
|
43019
|
+
name: name,
|
|
43020
|
+
id: id,
|
|
43021
|
+
onChange: onFileChange,
|
|
43022
|
+
multiple: multiple,
|
|
43023
|
+
accept: accept
|
|
43024
|
+
}), jsxRuntimeExports.jsx(InputLabel, {
|
|
43025
|
+
htmlFor: id,
|
|
43026
|
+
children: t('actions.choose_file') || 'Choose File'
|
|
43027
|
+
})]
|
|
43028
|
+
}), loading && jsxRuntimeExports.jsx(Loading, {
|
|
43029
|
+
type: type || 'file',
|
|
43030
|
+
loading: loading
|
|
43031
|
+
}), !disabled && uploadedFile && filePreview()]
|
|
43032
|
+
}), jsxRuntimeExports.jsx(ItemContainer, {
|
|
43039
43033
|
children: jsxRuntimeExports.jsx(TextInput, {
|
|
43040
|
-
label: '',
|
|
43041
|
-
placeholder: placeHolder ? placeHolder : 'Supported formats are PNG, JPG, JPEG',
|
|
43034
|
+
label: inputValue ? '' : "".concat(t('form_fields.file_name') || 'File name', " ").concat(fileExtension || ''),
|
|
43042
43035
|
name: 'file',
|
|
43043
43036
|
size: 'small',
|
|
43044
43037
|
type: 'text',
|
|
43045
43038
|
fullWidth: true,
|
|
43046
|
-
|
|
43047
|
-
error: !!error,
|
|
43048
|
-
value: inputValue,
|
|
43039
|
+
value: inputValue || '',
|
|
43049
43040
|
onChange: onInputChange,
|
|
43050
43041
|
disabled: disabled
|
|
43051
43042
|
})
|
|
43052
|
-
}),
|
|
43053
|
-
|
|
43054
|
-
|
|
43055
|
-
|
|
43056
|
-
|
|
43057
|
-
|
|
43058
|
-
|
|
43059
|
-
|
|
43060
|
-
|
|
43061
|
-
|
|
43062
|
-
|
|
43063
|
-
|
|
43064
|
-
onChange: onFileChange,
|
|
43065
|
-
multiple: multiple,
|
|
43066
|
-
accept: accept
|
|
43067
|
-
}), jsxRuntimeExports.jsxs(InputLabel, {
|
|
43068
|
-
htmlFor: id,
|
|
43069
|
-
children: [jsxRuntimeExports.jsx(FileUploadOutlinedIcon, {}), t('general.upload') || 'Upload', ' ']
|
|
43070
|
-
})]
|
|
43071
|
-
})
|
|
43072
|
-
}), uploadedFile && type === FileTypes.IMAGE && jsxRuntimeExports.jsx(ImagePlaceholder, {
|
|
43073
|
-
height: 160,
|
|
43074
|
-
children: uploadedFile.link && jsxRuntimeExports.jsx("img", {
|
|
43075
|
-
src: uploadedFile.link,
|
|
43076
|
-
alt: 'Input Image'
|
|
43077
|
-
})
|
|
43078
|
-
}), uploadedFile && jsxRuntimeExports.jsx(CancelButton, {
|
|
43079
|
-
onClick: deleteFile,
|
|
43080
|
-
right: '160px',
|
|
43081
|
-
top: '37px',
|
|
43082
|
-
children: jsxRuntimeExports.jsx(CancelIcon, {
|
|
43083
|
-
style: {
|
|
43084
|
-
color: 'rgba(179, 179, 184, 1)'
|
|
43085
|
-
}
|
|
43086
|
-
})
|
|
43087
|
-
})]
|
|
43088
|
-
}) : jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
43089
|
-
children: [jsxRuntimeExports.jsxs(ItemContainer, {
|
|
43090
|
-
width: '23%',
|
|
43091
|
-
children: [!uploadedFile && !loading && jsxRuntimeExports.jsxs(InputFileContainer, {
|
|
43092
|
-
children: [jsxRuntimeExports.jsx(UploadInput, {
|
|
43093
|
-
type: 'file',
|
|
43094
|
-
className: inputClassName,
|
|
43095
|
-
name: name,
|
|
43096
|
-
id: id,
|
|
43097
|
-
onChange: onFileChange,
|
|
43098
|
-
multiple: multiple,
|
|
43099
|
-
accept: accept
|
|
43100
|
-
}), jsxRuntimeExports.jsxs(InputLabel, {
|
|
43101
|
-
htmlFor: id,
|
|
43102
|
-
children: [jsxRuntimeExports.jsx(FileUploadOutlinedIcon, {}), t('general.upload')]
|
|
43103
|
-
})]
|
|
43104
|
-
}), loading && jsxRuntimeExports.jsx(Loading, {
|
|
43105
|
-
type: type,
|
|
43106
|
-
loading: loading
|
|
43107
|
-
}), uploadedFile && InlineFilePreview()]
|
|
43108
|
-
}), uploadedFile && jsxRuntimeExports.jsx(CancelButton, {
|
|
43109
|
-
onClick: deleteFile,
|
|
43110
|
-
children: jsxRuntimeExports.jsx(CancelIcon, {
|
|
43111
|
-
style: {
|
|
43112
|
-
color: '#06C68F'
|
|
43113
|
-
}
|
|
43114
|
-
})
|
|
43115
|
-
}), ' ']
|
|
43043
|
+
}), uploadedFile && jsxRuntimeExports.jsx(CancelButton, {
|
|
43044
|
+
onClick: function onClick(e) {
|
|
43045
|
+
e.stopPropagation();
|
|
43046
|
+
if (deleteFile) {
|
|
43047
|
+
deleteFile();
|
|
43048
|
+
}
|
|
43049
|
+
},
|
|
43050
|
+
children: jsxRuntimeExports.jsx(CancelIcon, {
|
|
43051
|
+
style: {
|
|
43052
|
+
color: '#06C68F'
|
|
43053
|
+
}
|
|
43054
|
+
})
|
|
43116
43055
|
})]
|
|
43117
|
-
}), error &&
|
|
43056
|
+
}), error && jsxRuntimeExports.jsx(ErrorText, {
|
|
43118
43057
|
children: error
|
|
43119
43058
|
})]
|
|
43120
43059
|
});
|
|
@@ -81416,7 +81355,7 @@ function requirePlayers () {
|
|
|
81416
81355
|
canPlay: import_patterns.canPlay.youtube,
|
|
81417
81356
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81418
81357
|
/* webpackChunkName: 'reactPlayerYouTube' */
|
|
81419
|
-
'./YouTube-
|
|
81358
|
+
'./YouTube-D2V4Z5LG.js'
|
|
81420
81359
|
); }).then(function (n) { return n.YouTube; }))
|
|
81421
81360
|
},
|
|
81422
81361
|
{
|
|
@@ -81425,7 +81364,7 @@ function requirePlayers () {
|
|
|
81425
81364
|
canPlay: import_patterns.canPlay.soundcloud,
|
|
81426
81365
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81427
81366
|
/* webpackChunkName: 'reactPlayerSoundCloud' */
|
|
81428
|
-
'./SoundCloud-
|
|
81367
|
+
'./SoundCloud-D5RE0hBN.js'
|
|
81429
81368
|
); }).then(function (n) { return n.SoundCloud; }))
|
|
81430
81369
|
},
|
|
81431
81370
|
{
|
|
@@ -81434,7 +81373,7 @@ function requirePlayers () {
|
|
|
81434
81373
|
canPlay: import_patterns.canPlay.vimeo,
|
|
81435
81374
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81436
81375
|
/* webpackChunkName: 'reactPlayerVimeo' */
|
|
81437
|
-
'./Vimeo-
|
|
81376
|
+
'./Vimeo-C71PHmy8.js'
|
|
81438
81377
|
); }).then(function (n) { return n.Vimeo; }))
|
|
81439
81378
|
},
|
|
81440
81379
|
{
|
|
@@ -81443,7 +81382,7 @@ function requirePlayers () {
|
|
|
81443
81382
|
canPlay: import_patterns.canPlay.mux,
|
|
81444
81383
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81445
81384
|
/* webpackChunkName: 'reactPlayerMux' */
|
|
81446
|
-
'./Mux-
|
|
81385
|
+
'./Mux-CWsIfXgR.js'
|
|
81447
81386
|
); }).then(function (n) { return n.Mux; }))
|
|
81448
81387
|
},
|
|
81449
81388
|
{
|
|
@@ -81452,7 +81391,7 @@ function requirePlayers () {
|
|
|
81452
81391
|
canPlay: import_patterns.canPlay.facebook,
|
|
81453
81392
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81454
81393
|
/* webpackChunkName: 'reactPlayerFacebook' */
|
|
81455
|
-
'./Facebook-
|
|
81394
|
+
'./Facebook-CCzLezvE.js'
|
|
81456
81395
|
); }).then(function (n) { return n.Facebook; }))
|
|
81457
81396
|
},
|
|
81458
81397
|
{
|
|
@@ -81461,7 +81400,7 @@ function requirePlayers () {
|
|
|
81461
81400
|
canPlay: import_patterns.canPlay.streamable,
|
|
81462
81401
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81463
81402
|
/* webpackChunkName: 'reactPlayerStreamable' */
|
|
81464
|
-
'./Streamable-
|
|
81403
|
+
'./Streamable-cVBLCtV4.js'
|
|
81465
81404
|
); }).then(function (n) { return n.Streamable; }))
|
|
81466
81405
|
},
|
|
81467
81406
|
{
|
|
@@ -81470,7 +81409,7 @@ function requirePlayers () {
|
|
|
81470
81409
|
canPlay: import_patterns.canPlay.wistia,
|
|
81471
81410
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81472
81411
|
/* webpackChunkName: 'reactPlayerWistia' */
|
|
81473
|
-
'./Wistia-
|
|
81412
|
+
'./Wistia-DZLhakqM.js'
|
|
81474
81413
|
); }).then(function (n) { return n.Wistia; }))
|
|
81475
81414
|
},
|
|
81476
81415
|
{
|
|
@@ -81479,7 +81418,7 @@ function requirePlayers () {
|
|
|
81479
81418
|
canPlay: import_patterns.canPlay.twitch,
|
|
81480
81419
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81481
81420
|
/* webpackChunkName: 'reactPlayerTwitch' */
|
|
81482
|
-
'./Twitch-
|
|
81421
|
+
'./Twitch-DK8g5mI9.js'
|
|
81483
81422
|
); }).then(function (n) { return n.Twitch; }))
|
|
81484
81423
|
},
|
|
81485
81424
|
{
|
|
@@ -81488,7 +81427,7 @@ function requirePlayers () {
|
|
|
81488
81427
|
canPlay: import_patterns.canPlay.dailymotion,
|
|
81489
81428
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81490
81429
|
/* webpackChunkName: 'reactPlayerDailyMotion' */
|
|
81491
|
-
'./DailyMotion-
|
|
81430
|
+
'./DailyMotion-D1GfS99W.js'
|
|
81492
81431
|
); }).then(function (n) { return n.DailyMotion; }))
|
|
81493
81432
|
},
|
|
81494
81433
|
{
|
|
@@ -81497,7 +81436,7 @@ function requirePlayers () {
|
|
|
81497
81436
|
canPlay: import_patterns.canPlay.mixcloud,
|
|
81498
81437
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81499
81438
|
/* webpackChunkName: 'reactPlayerMixcloud' */
|
|
81500
|
-
'./Mixcloud-
|
|
81439
|
+
'./Mixcloud-NSXYlse6.js'
|
|
81501
81440
|
); }).then(function (n) { return n.Mixcloud; }))
|
|
81502
81441
|
},
|
|
81503
81442
|
{
|
|
@@ -81506,7 +81445,7 @@ function requirePlayers () {
|
|
|
81506
81445
|
canPlay: import_patterns.canPlay.vidyard,
|
|
81507
81446
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81508
81447
|
/* webpackChunkName: 'reactPlayerVidyard' */
|
|
81509
|
-
'./Vidyard-
|
|
81448
|
+
'./Vidyard-BfoXiL7u.js'
|
|
81510
81449
|
); }).then(function (n) { return n.Vidyard; }))
|
|
81511
81450
|
},
|
|
81512
81451
|
{
|
|
@@ -81515,7 +81454,7 @@ function requirePlayers () {
|
|
|
81515
81454
|
canPlay: import_patterns.canPlay.kaltura,
|
|
81516
81455
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81517
81456
|
/* webpackChunkName: 'reactPlayerKaltura' */
|
|
81518
|
-
'./Kaltura-
|
|
81457
|
+
'./Kaltura-Ybj6tj4c.js'
|
|
81519
81458
|
); }).then(function (n) { return n.Kaltura; }))
|
|
81520
81459
|
},
|
|
81521
81460
|
{
|
|
@@ -81527,7 +81466,7 @@ function requirePlayers () {
|
|
|
81527
81466
|
},
|
|
81528
81467
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81529
81468
|
/* webpackChunkName: 'reactPlayerFilePlayer' */
|
|
81530
|
-
'./FilePlayer-
|
|
81469
|
+
'./FilePlayer-CSeIQE-t.js'
|
|
81531
81470
|
); }).then(function (n) { return n.FilePlayer; }))
|
|
81532
81471
|
}
|
|
81533
81472
|
];
|
|
@@ -82348,7 +82287,7 @@ function requireReactPlayer () {
|
|
|
82348
82287
|
var import_Player = __toESM(/*@__PURE__*/ requirePlayer());
|
|
82349
82288
|
const Preview = (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
82350
82289
|
/* webpackChunkName: 'reactPlayerPreview' */
|
|
82351
|
-
'./Preview-
|
|
82290
|
+
'./Preview-YEvp75ub.js'
|
|
82352
82291
|
); }).then(function (n) { return n.Preview; }));
|
|
82353
82292
|
const IS_BROWSER = typeof window !== "undefined" && window.document && typeof document !== "undefined";
|
|
82354
82293
|
const IS_GLOBAL = typeof commonjsGlobal !== "undefined" && commonjsGlobal.window && commonjsGlobal.window.document;
|