frst-components 0.35.6 → 0.35.7
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/index.js +204 -238
- package/dist/src/components/DS/impedimentosTab/styles.d.ts +5 -5
- package/dist/src/components/DS/impedimentosTab/styles.d.ts.map +1 -1
- package/dist/src/components/DS/resultFilterTabs/resultFilterTabsStyles.d.ts +3 -3
- package/dist/src/components/DS/resultFilterTabs/resultFilterTabsStyles.d.ts.map +1 -1
- package/dist/src/components/DS/select/styles/StylesSelect.d.ts +3 -3
- package/dist/src/components/DS/select/styles/StylesSelect.d.ts.map +1 -1
- package/dist/src/components/DS/steps-progress/stepsProgressStyles.d.ts +5 -5
- package/dist/src/components/DS/steps-progress/stepsProgressStyles.d.ts.map +1 -1
- package/dist/src/components/LXP/bannerLxp/bannerLxp.d.ts +1 -1
- package/dist/src/components/LXP/bannerLxp/bannerLxp.d.ts.map +1 -1
- package/dist/src/components/LXP/progressBar/progressStyle.d.ts +3 -3
- package/dist/src/components/LXP/progressBar/progressStyle.d.ts.map +1 -1
- package/dist/src/components/card-trail/cardTrailStyle.d.ts +5 -5
- package/dist/src/components/card-trail/cardTrailStyle.d.ts.map +1 -1
- package/dist/src/components/challenge-cards/challengeCardStyles.d.ts +4 -4
- package/dist/src/components/challenge-cards/challengeCardStyles.d.ts.map +1 -1
- package/dist/src/components/challenge-cards/dropdownMenuStyle.d.ts +1 -1
- package/dist/src/components/commentary-box/commentaryBoxStyles.d.ts +3 -3
- package/dist/src/components/commentary-box/commentaryBoxStyles.d.ts.map +1 -1
- package/dist/src/components/dropdown-profile-menu/dropdownProfileMenuStyle.d.ts +3 -3
- package/dist/src/components/dropdown-profile-menu/dropdownProfileMenuStyle.d.ts.map +1 -1
- package/dist/src/components/global-menu/globalMenuStyles.d.ts +4 -4
- package/dist/src/components/global-menu/globalMenuStyles.d.ts.map +1 -1
- package/dist/src/components/header-user/headerUserStyles.d.ts +3 -3
- package/dist/src/components/input-comment/useInputHook.d.ts.map +1 -1
- package/dist/src/components/item-menu-global/itemMenuGlobalStyles.d.ts +7 -7
- package/dist/src/components/menu-more/menuMoreStyles.d.ts +8 -8
- package/dist/src/components/menu-more/menuMoreStyles.d.ts.map +1 -1
- package/dist/src/components/scroll-container/scrollContainerStyles.d.ts +7 -7
- package/dist/src/components/scroll-container/scrollContainerStyles.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2264,7 +2264,7 @@ const ProgressBar$2 = styled__default["default"](material.Box) `
|
|
|
2264
2264
|
`;
|
|
2265
2265
|
const ProgressItem$1 = styled__default["default"](material.Box) `
|
|
2266
2266
|
height: 8px;
|
|
2267
|
-
background: ${({ active }) => active ? '#FEA852' : '#D9D9D9'};
|
|
2267
|
+
background: ${({ $active }) => $active ? '#FEA852' : '#D9D9D9'};
|
|
2268
2268
|
width: 100%;
|
|
2269
2269
|
@media (max-width: 400px) {
|
|
2270
2270
|
height: 5px;
|
|
@@ -2284,8 +2284,8 @@ const CicleStep = styled__default["default"](material.Box) `
|
|
|
2284
2284
|
border-radius: 50%;
|
|
2285
2285
|
background: #FFE0C2;
|
|
2286
2286
|
color: #FFF;
|
|
2287
|
-
opacity: ${({ variant }) => variant == 'selected' ? '0.5' : '0'};
|
|
2288
|
-
cursor: ${({ variant }) => variant == 'disabled' ? 'not-allowed' : 'pointer'};
|
|
2287
|
+
opacity: ${({ $variant }) => $variant == 'selected' ? '0.5' : '0'};
|
|
2288
|
+
cursor: ${({ $variant }) => $variant == 'disabled' ? 'not-allowed' : 'pointer'};
|
|
2289
2289
|
@media (max-width: 400px) {
|
|
2290
2290
|
opacity: 0;
|
|
2291
2291
|
width: 25px;
|
|
@@ -2302,9 +2302,9 @@ const CicleStepChar = styled__default["default"](material.Box) `
|
|
|
2302
2302
|
color: #FFF;
|
|
2303
2303
|
margin-left: 10px;
|
|
2304
2304
|
margin-top: -40px;
|
|
2305
|
-
background: ${({ variant }) => variant == 'disabled' ? ('#BDBDBD') : (variant == 'selected' ? '#F26818' : '#FEA852')};
|
|
2306
|
-
position: ${({ variant }) => variant != 'disabled' && 'relative'};
|
|
2307
|
-
cursor: ${({ variant }) => variant == 'disabled' ? 'not-allowed' : 'pointer'};
|
|
2305
|
+
background: ${({ $variant }) => $variant == 'disabled' ? ('#BDBDBD') : ($variant == 'selected' ? '#F26818' : '#FEA852')};
|
|
2306
|
+
position: ${({ $variant }) => $variant != 'disabled' && 'relative'};
|
|
2307
|
+
cursor: ${({ $variant }) => $variant == 'disabled' ? 'not-allowed' : 'pointer'};
|
|
2308
2308
|
|
|
2309
2309
|
@media (max-width: 400px) {
|
|
2310
2310
|
width: 15px;
|
|
@@ -2317,11 +2317,11 @@ const CicleStepName = styled__default["default"](material.Box) `
|
|
|
2317
2317
|
margin-top: 20px;
|
|
2318
2318
|
width: 70px;
|
|
2319
2319
|
text-align: center;
|
|
2320
|
-
color: ${({ variant }) => variant == 'disabled' ? ('#757575') : (variant == 'selected' ? '#F26818' : (variant == 'white' ? '#FFF' : '#222'))};
|
|
2321
|
-
font-weight: ${({ variant }) => variant == 'selected' ? '600' : '400'};
|
|
2322
|
-
cursor: ${({ variant }) => variant == 'disabled' ? 'not-allowed' : 'pointer'};
|
|
2320
|
+
color: ${({ $variant }) => $variant == 'disabled' ? ('#757575') : ($variant == 'selected' ? '#F26818' : ($variant == 'white' ? '#FFF' : '#222'))};
|
|
2321
|
+
font-weight: ${({ $variant }) => $variant == 'selected' ? '600' : '400'};
|
|
2322
|
+
cursor: ${({ $variant }) => $variant == 'disabled' ? 'not-allowed' : 'pointer'};
|
|
2323
2323
|
|
|
2324
|
-
${({ colorItemWhite }) => colorItemWhite &&
|
|
2324
|
+
${({ $colorItemWhite }) => $colorItemWhite &&
|
|
2325
2325
|
`
|
|
2326
2326
|
color:#fff;
|
|
2327
2327
|
`}
|
|
@@ -2335,7 +2335,7 @@ const CicleStepName = styled__default["default"](material.Box) `
|
|
|
2335
2335
|
function StepsProgress({ definedSteps, stepSelected, width = 600, colorItemWhite = false }) {
|
|
2336
2336
|
const stepColor = definedSteps.filter(s => s.step !== 1);
|
|
2337
2337
|
return (jsxRuntime.jsxs(styled.ThemeProvider, { theme: FRSTTheme, children: [jsxRuntime.jsx(ProgressBar$2, { children: stepColor && Array.isArray(stepColor) ?
|
|
2338
|
-
stepColor.map((item, index) => jsxRuntime.jsx(ProgressItem$1, { active: item?.active }, index))
|
|
2338
|
+
stepColor.map((item, index) => jsxRuntime.jsx(ProgressItem$1, { "$active": item?.active }, index))
|
|
2339
2339
|
: null }), jsxRuntime.jsx(ContainerSteps, { children: definedSteps && Array.isArray(definedSteps) ?
|
|
2340
2340
|
definedSteps.map((item, index) => {
|
|
2341
2341
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [(item?.step == stepSelected) &&
|
|
@@ -2346,7 +2346,7 @@ function StepsProgress({ definedSteps, stepSelected, width = 600, colorItemWhite
|
|
|
2346
2346
|
: null })] }));
|
|
2347
2347
|
}
|
|
2348
2348
|
function StepItem({ index, name, action, step, variant, colorItemWhite = false }) {
|
|
2349
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs(material.Box, { children: [jsxRuntime.jsx(CicleStep, { variant: variant }), jsxRuntime.jsx(CicleStepChar, { variant: variant, onClick: () => variant != 'disabled' ? action() : () => { }, children: step }), jsxRuntime.jsx(CicleStepName, { variant: variant, colorItemWhite: colorItemWhite, onClick: () => variant != 'disabled' ? action() : () => { }, children: name })] }, index) }));
|
|
2349
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs(material.Box, { children: [jsxRuntime.jsx(CicleStep, { "$variant": variant }), jsxRuntime.jsx(CicleStepChar, { "$variant": variant, onClick: () => variant != 'disabled' ? action() : () => { }, children: step }), jsxRuntime.jsx(CicleStepName, { "$variant": variant, "$colorItemWhite": colorItemWhite, onClick: () => variant != 'disabled' ? action() : () => { }, children: name })] }, index) }));
|
|
2350
2350
|
}
|
|
2351
2351
|
|
|
2352
2352
|
var css_248z$l = "@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=VT323&display=swap');\n\n.avatarWithInfo-module_container__Y-yUf {\n /* width: 100%; */\n height: fit-content;\n padding: 4px 16px 4px 4px;\n display: inline-flex;\n justify-content: space-between;\n align-items: center;\n \n border: 1px solid #BDBDBD;\n border-radius: 25px;\n background-color: #FFF;\n font-size: 16px;\n \n flex-direction: row;\n flex-wrap: nowrap;\n font-family: 'Work Sans';\n flex-wrap: wrap;\n}";
|
|
@@ -3749,7 +3749,7 @@ const ButtonMore$2 = styled__default["default"](Button__default["default"]) `
|
|
|
3749
3749
|
background-color: transparent !important;
|
|
3750
3750
|
`;
|
|
3751
3751
|
const MenuCustom$2 = styled__default["default"](Menu__default["default"]) `
|
|
3752
|
-
margin-top: ${({ isArrowInMenu }) => (isArrowInMenu ? '8px' : '15px')};
|
|
3752
|
+
margin-top: ${({ $isArrowInMenu }) => ($isArrowInMenu ? '8px' : '15px')};
|
|
3753
3753
|
margin-left: 30px;
|
|
3754
3754
|
overflow: hidden;
|
|
3755
3755
|
border-radius: 8px;
|
|
@@ -3758,26 +3758,26 @@ const MenuCustom$2 = styled__default["default"](Menu__default["default"]) `
|
|
|
3758
3758
|
border-radius: 8px !important;
|
|
3759
3759
|
box-shadow: 0px 15px 20px -20px rgba(34, 34, 34, 0.15), 0px 3px 10px 0px rgba(0, 0, 0, 0.15);
|
|
3760
3760
|
overflow: visible;
|
|
3761
|
-
background: ${({ isDarkMode }) => isDarkMode ? '#1f1f1f' : '#00000000'};
|
|
3762
|
-
${({ isArrowInMenu, isDarkMode }) => isArrowInMenu &&
|
|
3761
|
+
background: ${({ $isDarkMode }) => $isDarkMode ? '#1f1f1f' : '#00000000'};
|
|
3762
|
+
${({ $isArrowInMenu, $isDarkMode }) => $isArrowInMenu &&
|
|
3763
3763
|
`&:before {
|
|
3764
3764
|
content: "";
|
|
3765
3765
|
position: absolute;
|
|
3766
3766
|
top: -15px;
|
|
3767
3767
|
right: 8.5px;
|
|
3768
3768
|
border-top: 6px solid transparent;
|
|
3769
|
-
border-bottom: 10px solid ${isDarkMode ? '#1f1f1f' : '#EBEBEB'};
|
|
3769
|
+
border-bottom: 10px solid ${$isDarkMode ? '#1f1f1f' : '#EBEBEB'};
|
|
3770
3770
|
border-left: 8px solid transparent;
|
|
3771
3771
|
border-right: 8px solid transparent;
|
|
3772
3772
|
}
|
|
3773
|
-
|
|
3773
|
+
|
|
3774
3774
|
&:after {
|
|
3775
3775
|
content: "";
|
|
3776
3776
|
position: absolute;
|
|
3777
3777
|
top: -14px;
|
|
3778
3778
|
right: 8.5px;
|
|
3779
3779
|
border-top: 6px solid transparent;
|
|
3780
|
-
border-bottom: 10px solid ${isDarkMode ? '#1f1f1f' : '#FFF'};
|
|
3780
|
+
border-bottom: 10px solid ${$isDarkMode ? '#1f1f1f' : '#FFF'};
|
|
3781
3781
|
border-left: 8px solid transparent;
|
|
3782
3782
|
border-right: 8px solid transparent;
|
|
3783
3783
|
}`}
|
|
@@ -3786,32 +3786,32 @@ const MenuCustom$2 = styled__default["default"](Menu__default["default"]) `
|
|
|
3786
3786
|
box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.15), 0px 15px 20px -20px rgba(34, 34, 34, 0.15);
|
|
3787
3787
|
padding-top: 0px;
|
|
3788
3788
|
padding-bottom: 0px;
|
|
3789
|
-
border: 1px solid ${({ isDarkMode }) => (isDarkMode ? '#1f1f1f !important;' : '#EBEBEB !important;')}!important;
|
|
3789
|
+
border: 1px solid ${({ $isDarkMode }) => ($isDarkMode ? '#1f1f1f !important;' : '#EBEBEB !important;')}!important;
|
|
3790
3790
|
border-radius: 8px !important;
|
|
3791
3791
|
overflow: hidden;
|
|
3792
|
-
background: ${({ isDarkMode }) => (isDarkMode ? '#1f1f1f !important;' : '#FFF !important;')};
|
|
3792
|
+
background: ${({ $isDarkMode }) => ($isDarkMode ? '#1f1f1f !important;' : '#FFF !important;')};
|
|
3793
3793
|
min-width: 160px;
|
|
3794
3794
|
width: auto;
|
|
3795
3795
|
/* &:hover {
|
|
3796
|
-
background:${({ isDarkMode }) => (isDarkMode ? '#525252 !important;' : '#FFF !important;')};
|
|
3797
|
-
border: 1px solid ${({ isDarkMode }) => (isDarkMode ? '#525252 !important;' : '#EBEBEB !important;')} !important;
|
|
3796
|
+
background:${({ $isDarkMode }) => ($isDarkMode ? '#525252 !important;' : '#FFF !important;')};
|
|
3797
|
+
border: 1px solid ${({ $isDarkMode }) => ($isDarkMode ? '#525252 !important;' : '#EBEBEB !important;')} !important;
|
|
3798
3798
|
} */
|
|
3799
3799
|
li {
|
|
3800
|
-
${({ isPaddingInMenu }) => isPaddingInMenu && `padding-left: 25px; !important;`}
|
|
3800
|
+
${({ $isPaddingInMenu }) => $isPaddingInMenu && `padding-left: 25px; !important;`}
|
|
3801
3801
|
}
|
|
3802
3802
|
}
|
|
3803
3803
|
`;
|
|
3804
3804
|
styled__default["default"](MenuItem__default["default"]) `
|
|
3805
|
-
background-color: ${({ theme, isDarkMode }) => isDarkMode ? `#1f1f1f !important;` : theme.colors.shadeWhite} !important;
|
|
3806
|
-
${({ isPaddingInMenu }) => isPaddingInMenu && `padding-right: 45px !important;`}
|
|
3805
|
+
background-color: ${({ theme, $isDarkMode }) => $isDarkMode ? `#1f1f1f !important;` : theme.colors.shadeWhite} !important;
|
|
3806
|
+
${({ $isPaddingInMenu }) => $isPaddingInMenu && `padding-right: 45px !important;`}
|
|
3807
3807
|
margin: 1px!important;
|
|
3808
3808
|
transition: none !important;
|
|
3809
3809
|
animation: none !important;
|
|
3810
3810
|
&:hover {
|
|
3811
|
-
background-color: ${({ isDarkMode }) => (isDarkMode ? `#525252 !important;` : `#F7F9FC !important;`)};
|
|
3811
|
+
background-color: ${({ $isDarkMode }) => ($isDarkMode ? `#525252 !important;` : `#F7F9FC !important;`)};
|
|
3812
3812
|
}
|
|
3813
3813
|
&:active {
|
|
3814
|
-
background-color: ${({ isDarkMode }) => (isDarkMode ? `#525252 !important;` : `#FCF3EB !important;`)};
|
|
3814
|
+
background-color: ${({ $isDarkMode }) => ($isDarkMode ? `#525252 !important;` : `#FCF3EB !important;`)};
|
|
3815
3815
|
}
|
|
3816
3816
|
`;
|
|
3817
3817
|
styled__default["default"](MenuItem__default["default"]) `
|
|
@@ -3843,8 +3843,8 @@ const IconOption = styled__default["default"].div `
|
|
|
3843
3843
|
const ButtonMenuNotification = styled__default["default"].button `
|
|
3844
3844
|
width: 100% !important;
|
|
3845
3845
|
text-decoration: none !important;
|
|
3846
|
-
color: ${({ isColor }) => (isColor ? isColor : `#FFFFF`)} !important;
|
|
3847
|
-
padding: ${({ isContainerOptions }) => isContainerOptions ? '4px 10px 4px 8px' : ' 6px 16px !important'};
|
|
3846
|
+
color: ${({ $isColor }) => ($isColor ? $isColor : `#FFFFF`)} !important;
|
|
3847
|
+
padding: ${({ $isContainerOptions }) => $isContainerOptions ? '4px 10px 4px 8px' : ' 6px 16px !important'};
|
|
3848
3848
|
border: none !important;
|
|
3849
3849
|
background: transparent !important;
|
|
3850
3850
|
font-family: 'PT Sans' !important;
|
|
@@ -3857,7 +3857,7 @@ const ButtonMenuNotification = styled__default["default"].button `
|
|
|
3857
3857
|
gap: 8px !important;
|
|
3858
3858
|
cursor: ${({ disabled }) => disabled ? 'default !important' : 'pointer !important'};
|
|
3859
3859
|
:hover {
|
|
3860
|
-
background-color: ${({ isDarkMode }) => (isDarkMode ? ` rgb(82, 82, 82) !important` : `#F7F9FC !important;`)};
|
|
3860
|
+
background-color: ${({ $isDarkMode }) => ($isDarkMode ? ` rgb(82, 82, 82) !important` : `#F7F9FC !important;`)};
|
|
3861
3861
|
}
|
|
3862
3862
|
`;
|
|
3863
3863
|
|
|
@@ -3874,11 +3874,11 @@ function MenuMore({ iconButton, options, style, closeAfterClick, isHover = true,
|
|
|
3874
3874
|
const handleClose = () => {
|
|
3875
3875
|
setAnchorEl(null);
|
|
3876
3876
|
};
|
|
3877
|
-
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs("div", { style: { ...style }, children: [jsxRuntime.jsx(ButtonMore$2, { id: "basic-button", disableRipple: isHover ? false : true, "aria-controls": "basic-menu", "aria-haspopup": "true", "aria-expanded": open ? 'true' : undefined, onClick: handleClick, children: iconButton ? iconButton : jsxRuntime.jsx(MoreDotsVertical, { fill: isDarkMode ? "#EBEBEB" : "#444" }) }), listOptions && listOptions?.length > 0 && (jsxRuntime.jsx(MenuCustom$2, { id: "basic-menu", anchorOrigin: { vertical: 'bottom', horizontal: 'left' }, transformOrigin: { vertical: 'top', horizontal: 'right' }, anchorEl: anchorEl, open: open, onClose: handleClose, isArrowInMenu: isArrowInMenu, isPaddingInMenu: isPaddingInMenu, isDarkMode: isDarkMode, children: listOptions.map((itemOption, index) => {
|
|
3877
|
+
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs("div", { style: { ...style }, children: [jsxRuntime.jsx(ButtonMore$2, { id: "basic-button", disableRipple: isHover ? false : true, "aria-controls": "basic-menu", "aria-haspopup": "true", "aria-expanded": open ? 'true' : undefined, onClick: handleClick, children: iconButton ? iconButton : jsxRuntime.jsx(MoreDotsVertical, { fill: isDarkMode ? "#EBEBEB" : "#444" }) }), listOptions && listOptions?.length > 0 && (jsxRuntime.jsx(MenuCustom$2, { id: "basic-menu", anchorOrigin: { vertical: 'bottom', horizontal: 'left' }, transformOrigin: { vertical: 'top', horizontal: 'right' }, anchorEl: anchorEl, open: open, onClose: handleClose, "$isArrowInMenu": isArrowInMenu, "$isPaddingInMenu": isPaddingInMenu, "$isDarkMode": isDarkMode, children: listOptions.map((itemOption, index) => {
|
|
3878
3878
|
return (jsxRuntime.jsx(material.Box, { children: jsxRuntime.jsxs(ButtonMenuNotification, { onClick: () => {
|
|
3879
3879
|
itemOption?.onClick();
|
|
3880
3880
|
closeAfterClick && handleClose();
|
|
3881
|
-
}, isColor: itemOption?.color, isDarkMode: isDarkMode, disabled: itemOption?.disabled, isContainerOptions: isContainerOptions, children: [itemOption?.startIcon && jsxRuntime.jsx(IconOption, { children: itemOption?.startIcon }), itemOption?.description] }) }, index));
|
|
3881
|
+
}, "$isColor": itemOption?.color, "$isDarkMode": isDarkMode, disabled: itemOption?.disabled, "$isContainerOptions": isContainerOptions, children: [itemOption?.startIcon && jsxRuntime.jsx(IconOption, { children: itemOption?.startIcon }), itemOption?.description] }) }, index));
|
|
3882
3882
|
}) }))] }) }));
|
|
3883
3883
|
}
|
|
3884
3884
|
|
|
@@ -4569,6 +4569,7 @@ const useInputHook = ({ limit, placeholder, onSendMentions, onContentFormat, onC
|
|
|
4569
4569
|
const [inputSearch, setInputSearch] = React.useState('');
|
|
4570
4570
|
const divInputRef = React.useRef(null);
|
|
4571
4571
|
const divPlaceholder = React.useRef(null);
|
|
4572
|
+
const isMounted = React.useRef(true);
|
|
4572
4573
|
const mentionTopPosition = `${(divInputRef.current?.clientHeight ?? 15) + 20}px`;
|
|
4573
4574
|
const [textLength, setTextLength] = React.useState(0);
|
|
4574
4575
|
const [isPlaceholder, setPlaceholder] = React.useState(false);
|
|
@@ -4764,6 +4765,8 @@ const useInputHook = ({ limit, placeholder, onSendMentions, onContentFormat, onC
|
|
|
4764
4765
|
};
|
|
4765
4766
|
const handlePlaceholderInputText = (isPlaceHolderFocus = false) => {
|
|
4766
4767
|
setTimeout(() => {
|
|
4768
|
+
if (!isMounted.current)
|
|
4769
|
+
return;
|
|
4767
4770
|
// Check if the click was on the emoji button or picker
|
|
4768
4771
|
const target = document.activeElement;
|
|
4769
4772
|
const isEmojiButton = target?.closest('.MuiIconButton-root');
|
|
@@ -4855,38 +4858,16 @@ const useInputHook = ({ limit, placeholder, onSendMentions, onContentFormat, onC
|
|
|
4855
4858
|
React.useEffect(() => {
|
|
4856
4859
|
setStyleLimitExceeded(textLength > limit);
|
|
4857
4860
|
}, [textLength]);
|
|
4861
|
+
React.useEffect(() => {
|
|
4862
|
+
isMounted.current = true;
|
|
4863
|
+
return () => { isMounted.current = false; };
|
|
4864
|
+
}, []);
|
|
4858
4865
|
React.useEffect(() => {
|
|
4859
4866
|
if (!divInputRef.current || !divPlaceholder.current)
|
|
4860
4867
|
return;
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
document.addEventListener('focus', () => {
|
|
4865
|
-
handlePlaceholderInputText();
|
|
4866
|
-
});
|
|
4867
|
-
document.addEventListener('blur', () => {
|
|
4868
|
-
handlePlaceholderInputText();
|
|
4869
|
-
});
|
|
4870
|
-
divPlaceholder.current?.addEventListener('mousedown', () => {
|
|
4871
|
-
handlePlaceholderInputText(true);
|
|
4872
|
-
});
|
|
4873
|
-
divPlaceholder.current?.addEventListener('focus', () => {
|
|
4874
|
-
handlePlaceholderInputText(true);
|
|
4875
|
-
});
|
|
4876
|
-
divPlaceholder.current?.addEventListener('blur', () => {
|
|
4877
|
-
handlePlaceholderInputText(true);
|
|
4878
|
-
});
|
|
4879
|
-
divInputRef.current?.addEventListener('mousedown', () => {
|
|
4880
|
-
handlePlaceholderInputText();
|
|
4881
|
-
});
|
|
4882
|
-
divInputRef.current?.addEventListener('focus', () => {
|
|
4883
|
-
handlePlaceholderInputText();
|
|
4884
|
-
});
|
|
4885
|
-
divInputRef.current?.addEventListener('blur', () => {
|
|
4886
|
-
handlePlaceholderInputText();
|
|
4887
|
-
});
|
|
4888
|
-
//capture the cursor position on arrow up and down or left and right and check if it´s close to the @ key
|
|
4889
|
-
divInputRef.current?.addEventListener('keyup', (event) => {
|
|
4868
|
+
const onDocEvent = () => handlePlaceholderInputText();
|
|
4869
|
+
const onPlaceholderEvent = () => handlePlaceholderInputText(true);
|
|
4870
|
+
const onArrowKey = (event) => {
|
|
4890
4871
|
if (event.key === 'ArrowUp' ||
|
|
4891
4872
|
event.key === 'ArrowDown' ||
|
|
4892
4873
|
event.key === 'ArrowLeft' ||
|
|
@@ -4894,45 +4875,30 @@ const useInputHook = ({ limit, placeholder, onSendMentions, onContentFormat, onC
|
|
|
4894
4875
|
event.key === 'Enter') {
|
|
4895
4876
|
setShowMention(false);
|
|
4896
4877
|
}
|
|
4897
|
-
}
|
|
4878
|
+
};
|
|
4879
|
+
document.addEventListener('mousedown', onDocEvent);
|
|
4880
|
+
document.addEventListener('focus', onDocEvent);
|
|
4881
|
+
document.addEventListener('blur', onDocEvent);
|
|
4882
|
+
const placeholderEl = divPlaceholder.current;
|
|
4883
|
+
placeholderEl.addEventListener('mousedown', onPlaceholderEvent);
|
|
4884
|
+
placeholderEl.addEventListener('focus', onPlaceholderEvent);
|
|
4885
|
+
placeholderEl.addEventListener('blur', onPlaceholderEvent);
|
|
4886
|
+
const inputEl = divInputRef.current;
|
|
4887
|
+
inputEl.addEventListener('mousedown', onDocEvent);
|
|
4888
|
+
inputEl.addEventListener('focus', onDocEvent);
|
|
4889
|
+
inputEl.addEventListener('blur', onDocEvent);
|
|
4890
|
+
inputEl.addEventListener('keyup', onArrowKey);
|
|
4898
4891
|
return () => {
|
|
4899
|
-
document.removeEventListener('mousedown',
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
handlePlaceholderInputText(true);
|
|
4910
|
-
});
|
|
4911
|
-
divPlaceholder.current?.removeEventListener('focus', () => {
|
|
4912
|
-
handlePlaceholderInputText(true);
|
|
4913
|
-
});
|
|
4914
|
-
divPlaceholder.current?.removeEventListener('blur', () => {
|
|
4915
|
-
handlePlaceholderInputText(true);
|
|
4916
|
-
});
|
|
4917
|
-
divInputRef.current?.removeEventListener('mousedown', () => {
|
|
4918
|
-
handlePlaceholderInputText();
|
|
4919
|
-
});
|
|
4920
|
-
divInputRef.current?.removeEventListener('focus', () => {
|
|
4921
|
-
handlePlaceholderInputText();
|
|
4922
|
-
});
|
|
4923
|
-
divInputRef.current?.removeEventListener('blur', () => {
|
|
4924
|
-
handlePlaceholderInputText();
|
|
4925
|
-
});
|
|
4926
|
-
//capture the cursor position on arrow up and down or left and right and check if it´s close to the @ key
|
|
4927
|
-
divInputRef.current?.removeEventListener('keyup', (event) => {
|
|
4928
|
-
if (event.key === 'ArrowUp' ||
|
|
4929
|
-
event.key === 'ArrowDown' ||
|
|
4930
|
-
event.key === 'ArrowLeft' ||
|
|
4931
|
-
event.key === 'ArrowRight' ||
|
|
4932
|
-
event.key === 'Enter') {
|
|
4933
|
-
setShowMention(false);
|
|
4934
|
-
}
|
|
4935
|
-
});
|
|
4892
|
+
document.removeEventListener('mousedown', onDocEvent);
|
|
4893
|
+
document.removeEventListener('focus', onDocEvent);
|
|
4894
|
+
document.removeEventListener('blur', onDocEvent);
|
|
4895
|
+
placeholderEl.removeEventListener('mousedown', onPlaceholderEvent);
|
|
4896
|
+
placeholderEl.removeEventListener('focus', onPlaceholderEvent);
|
|
4897
|
+
placeholderEl.removeEventListener('blur', onPlaceholderEvent);
|
|
4898
|
+
inputEl.removeEventListener('mousedown', onDocEvent);
|
|
4899
|
+
inputEl.removeEventListener('focus', onDocEvent);
|
|
4900
|
+
inputEl.removeEventListener('blur', onDocEvent);
|
|
4901
|
+
inputEl.removeEventListener('keyup', onArrowKey);
|
|
4936
4902
|
};
|
|
4937
4903
|
}, []);
|
|
4938
4904
|
React.useEffect(() => {
|
|
@@ -5181,7 +5147,7 @@ function InputComment$1({ placeholder, onChange, limit, users, showCharacterCoun
|
|
|
5181
5147
|
};
|
|
5182
5148
|
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs("div", { style: { minHeight: '48px', ...styles }, tabIndex: 0, onMouseDown: () => divPlaceholder.current.focus(), children: [jsxRuntime.jsxs(InputWrapper$2, { tabIndex: 1, isPlaceholder: isPlaceholder, isInputLimit: styleLimitExceeded, onMouseDown: () => divPlaceholder.current.focus(), darkMode: darkMode, children: [jsxRuntime.jsx(InputText$4, { id: "input-comment-component", tabIndex: 2, contentEditable: true, ref: divInputRef, onKeyUpCapture: (event) => {
|
|
5183
5149
|
handleInput(event);
|
|
5184
|
-
}, "data-text": "enter", suppressContentEditableWarning: true, onPaste: handlePaste, darkMode: darkMode }), jsxRuntime.jsx(InputPlaceholder, { style: { display: 'none' }, contentEditable: true, ref: divPlaceholder, children: placeholder }), showMention && users && users.length > 0 && (jsxRuntime.jsx(Mentions, { users: users, top: mentionTopPosition, onSelect: (user) => {
|
|
5150
|
+
}, "data-text": "enter", suppressContentEditableWarning: true, onPaste: handlePaste, darkMode: darkMode }), jsxRuntime.jsx(InputPlaceholder, { style: { display: 'none' }, contentEditable: true, ref: divPlaceholder, suppressContentEditableWarning: true, children: placeholder }), showMention && users && users.length > 0 && (jsxRuntime.jsx(Mentions, { users: users, top: mentionTopPosition, onSelect: (user) => {
|
|
5185
5151
|
setShowMention(false);
|
|
5186
5152
|
handleMentionUser(user);
|
|
5187
5153
|
}, darkMode: darkMode }))] }), jsxRuntime.jsxs(HelperContainer, { children: [!isPlaceholder && showCharacterCounter && (jsxRuntime.jsxs(HelperText$2, { isInputLimit: styleLimitExceeded, darkMode: darkMode, children: [textLength, "/", limit] })), !isPlaceholder && showEmojiPicker &&
|
|
@@ -5293,8 +5259,8 @@ const Dropdown$2 = styled__default["default"].div `
|
|
|
5293
5259
|
const DropdownWrapper = styled__default["default"].div `
|
|
5294
5260
|
display: flex;
|
|
5295
5261
|
flex-direction: column;
|
|
5296
|
-
visibility: ${(props) => props
|
|
5297
|
-
opacity:${(props) => props
|
|
5262
|
+
visibility: ${(props) => props.$isVisible ? 'visible' : 'hidden'};
|
|
5263
|
+
opacity:${(props) => props.$isVisible ? '1' : '0'};
|
|
5298
5264
|
position: absolute;
|
|
5299
5265
|
width: 210px;
|
|
5300
5266
|
background-color: gray;
|
|
@@ -5320,7 +5286,7 @@ const ItemDrop = styled__default["default"].div `
|
|
|
5320
5286
|
font-weight: 400;
|
|
5321
5287
|
font-size: 16px;
|
|
5322
5288
|
line-height: 19px;
|
|
5323
|
-
border-bottom: ${(props) => props
|
|
5289
|
+
border-bottom: ${(props) => props.$isLastItem ? 'transparent' : '1px solid #EBEBEB'};
|
|
5324
5290
|
|
|
5325
5291
|
&:hover {
|
|
5326
5292
|
background-color: ${({ theme }) => theme.colors.neutralsGrey5};
|
|
@@ -5637,14 +5603,14 @@ function CommentaryBox({ name, className, styles, position, value, date, actionL
|
|
|
5637
5603
|
((isPrivateAuthor || isPrivateMe) &&
|
|
5638
5604
|
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(DividerDot, { children: jsxRuntime.jsx(Dot, { fill: '#757575' }) }), jsxRuntime.jsx(EyeOffIcon, { children: jsxRuntime.jsx(EyeOff, { fill: '#757575' }) }), jsxRuntime.jsx(CommentPrivate, { children: textPrivateComment })] })) : null] }), jsxRuntime.jsxs(Position$2, { children: [" ", position, " "] })] }), jsxRuntime.jsxs(OptionsWrapper, { children: [size[0] > WIDTH_MOBILE &&
|
|
5639
5605
|
jsxRuntime.jsxs(Date$2, { children: [" ", date, " ", wasEdited && `(${textEdited})`, " "] }), hasDropdown && (isAuthor || isMe) &&
|
|
5640
|
-
jsxRuntime.jsxs(Dropdown$2, { children: [jsxRuntime.jsx(ButtonMore$1, { onClick: () => setIsOpenDrop(!isOpenDrop), onMouseOver: () => setActionArea(true), onMouseOut: () => setActionArea(false), children: jsxRuntime.jsx(MoreDotsHorizontal, { fill: getColorIconMore() }) }), jsxRuntime.jsxs(DropdownWrapper, { isVisible: isOpenDrop, isMe: isMe, children: [isMe && isAuthor &&
|
|
5641
|
-
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(ItemDrop, { onClick: actionMakePrivate, children: [" ", (!isPrivateAuthor && !isPrivateMe) ? textMakePrivate : textMakePublic, " "] }), jsxRuntime.jsxs(ItemDrop, { onClick: () => editingComment(), children: [" ", textEditComment, " "] }), jsxRuntime.jsxs(ItemDrop, { isLastItem: true, onClick: actionDeleteComment, children: [" ", textDeleteComment, " "] })] }), isMe && !isAuthor &&
|
|
5606
|
+
jsxRuntime.jsxs(Dropdown$2, { children: [jsxRuntime.jsx(ButtonMore$1, { onClick: () => setIsOpenDrop(!isOpenDrop), onMouseOver: () => setActionArea(true), onMouseOut: () => setActionArea(false), children: jsxRuntime.jsx(MoreDotsHorizontal, { fill: getColorIconMore() }) }), jsxRuntime.jsxs(DropdownWrapper, { "$isVisible": isOpenDrop, isMe: isMe, children: [isMe && isAuthor &&
|
|
5607
|
+
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(ItemDrop, { onClick: actionMakePrivate, children: [" ", (!isPrivateAuthor && !isPrivateMe) ? textMakePrivate : textMakePublic, " "] }), jsxRuntime.jsxs(ItemDrop, { onClick: () => editingComment(), children: [" ", textEditComment, " "] }), jsxRuntime.jsxs(ItemDrop, { "$isLastItem": true, onClick: actionDeleteComment, children: [" ", textDeleteComment, " "] })] }), isMe && !isAuthor &&
|
|
5642
5608
|
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [(!isPrivateAuthor) &&
|
|
5643
|
-
jsxRuntime.jsxs(ItemDrop, { onClick: actionMakePrivate, children: [" ", !isPrivateMe ? textMakePrivate : textMakePublic, " "] }), jsxRuntime.jsxs(ItemDrop, { onClick: () => editingComment(), children: [" ", textEditComment, " "] }), jsxRuntime.jsxs(ItemDrop, { isLastItem: true, onClick: actionDeleteComment, children: [" ", textDeleteComment, " "] })] }), isAuthor && !isMe &&
|
|
5644
|
-
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(ItemDrop, { onClick: actionMakePrivate, children: [" ", (!isPrivateAuthor && !isPrivateMe) ? textMakePrivate : textMakePublic, " "] }), jsxRuntime.jsxs(ItemDrop, { isLastItem: true, onClick: actionDeleteComment, children: [" ", textDeleteComment, " "] })] })] })] })] })] }), size[0] <= WIDTH_MOBILE &&
|
|
5609
|
+
jsxRuntime.jsxs(ItemDrop, { onClick: actionMakePrivate, children: [" ", !isPrivateMe ? textMakePrivate : textMakePublic, " "] }), jsxRuntime.jsxs(ItemDrop, { onClick: () => editingComment(), children: [" ", textEditComment, " "] }), jsxRuntime.jsxs(ItemDrop, { "$isLastItem": true, onClick: actionDeleteComment, children: [" ", textDeleteComment, " "] })] }), isAuthor && !isMe &&
|
|
5610
|
+
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(ItemDrop, { onClick: actionMakePrivate, children: [" ", (!isPrivateAuthor && !isPrivateMe) ? textMakePrivate : textMakePublic, " "] }), jsxRuntime.jsxs(ItemDrop, { "$isLastItem": true, onClick: actionDeleteComment, children: [" ", textDeleteComment, " "] })] })] })] })] })] }), size[0] <= WIDTH_MOBILE &&
|
|
5645
5611
|
jsxRuntime.jsxs("div", { style: { display: 'flex', marginLeft: '14px', marginTop: '5px', alignItems: 'center' }, children: [(isPrivateAuthor || isPrivateMe) &&
|
|
5646
5612
|
jsxRuntime.jsx("div", { style: { marginRight: '10px' }, children: jsxRuntime.jsx(EyeOffIcon, { children: jsxRuntime.jsx(EyeOff, { fill: '#757575' }) }) }), jsxRuntime.jsxs(Date$2, { children: [" ", date, " ", wasEdited && `(${textEdited})`, " "] })] }), onEditing ?
|
|
5647
|
-
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(CommentaryEditingContent, { id: iDCommentInEditing, "data-gramm": "false", contentEditable: "true", role: "textbox", "aria-multiline": "true", suppressContentEditableWarning: true, children: value }), jsxRuntime.jsxs(FooterEditingWrapper, { width: size[0], children: [jsxRuntime.jsx(Button$5, { handleClick: () => { saveEditComment(); }, label: size[0] > WIDTH_MOBILE ? textSaveButton : textSaveButtonMobile, disabled: !enableSaveEdit, variant: "primary", style: { marginRight: '20px' } }), jsxRuntime.jsx(Button$5, { handleClick: () => { cancelEditComment(); }, label: textCancelButton, variant: "secondary" })] })] })
|
|
5613
|
+
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(CommentaryEditingContent, { id: iDCommentInEditing, "data-gramm": "false", contentEditable: "true", role: "textbox", "aria-multiline": "true", suppressContentEditableWarning: true, children: value }), jsxRuntime.jsxs(FooterEditingWrapper, { "$width": size[0], children: [jsxRuntime.jsx(Button$5, { handleClick: () => { saveEditComment(); }, label: size[0] > WIDTH_MOBILE ? textSaveButton : textSaveButtonMobile, disabled: !enableSaveEdit, variant: "primary", style: { marginRight: '20px' } }), jsxRuntime.jsx(Button$5, { handleClick: () => { cancelEditComment(); }, label: textCancelButton, variant: "secondary" })] })] })
|
|
5648
5614
|
:
|
|
5649
5615
|
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(CommentaryContent, { id: iDCommentPosted, children: value }), jsxRuntime.jsxs(IterationsWrapper, { children: [showStatusLike ? jsxRuntime.jsxs(LikesStatistics, { children: [!isLiked ?
|
|
5650
5616
|
jsxRuntime.jsx(ThumbsUpCovered, { width: '16px', height: '16px' })
|
|
@@ -6365,7 +6331,7 @@ const WrapperContent$5 = styled__default["default"].div `
|
|
|
6365
6331
|
display: flex;
|
|
6366
6332
|
flex-direction: row;
|
|
6367
6333
|
width: 100%;
|
|
6368
|
-
overflow-x: ${({ hiddenHorizontalScrollBar }) => (hiddenHorizontalScrollBar ? 'hidden' : 'scroll')};
|
|
6334
|
+
overflow-x: ${({ $hiddenHorizontalScrollBar }) => ($hiddenHorizontalScrollBar ? 'hidden' : 'scroll')};
|
|
6369
6335
|
overflow-y: hidden;
|
|
6370
6336
|
white-space: nowrap;
|
|
6371
6337
|
gap: 24px;
|
|
@@ -6374,40 +6340,40 @@ const WrapperContent$5 = styled__default["default"].div `
|
|
|
6374
6340
|
&::-webkit-scrollbar {
|
|
6375
6341
|
display: none;
|
|
6376
6342
|
}
|
|
6377
|
-
padding-left: ${({ paddingIntern }) => (paddingIntern ? paddingIntern : '150px')};
|
|
6378
|
-
padding-right: ${({ paddingIntern }) => (paddingIntern ? paddingIntern : '150px')};
|
|
6343
|
+
padding-left: ${({ $paddingIntern }) => ($paddingIntern ? $paddingIntern : '150px')};
|
|
6344
|
+
padding-right: ${({ $paddingIntern }) => ($paddingIntern ? $paddingIntern : '150px')};
|
|
6379
6345
|
`;
|
|
6380
6346
|
const ButtonControll$1 = styled__default["default"].div `
|
|
6381
6347
|
display: flex;
|
|
6382
|
-
visibility: ${({ visibility }) => visibility};
|
|
6348
|
+
visibility: ${({ $visibility }) => $visibility};
|
|
6383
6349
|
flex-direction: column;
|
|
6384
6350
|
align-items: center;
|
|
6385
6351
|
justify-content: center;
|
|
6386
6352
|
cursor: pointer;
|
|
6387
|
-
margin-top: ${({ marginTopArrrowButton }) => (marginTopArrrowButton ? marginTopArrrowButton : '0.5rem')};
|
|
6353
|
+
margin-top: ${({ $marginTopArrrowButton }) => ($marginTopArrrowButton ? $marginTopArrrowButton : '0.5rem')};
|
|
6388
6354
|
|
|
6389
|
-
width: ${({ sizeButton }) => sizeButton + 'px'};
|
|
6390
|
-
height: ${({ sizeButton }) => sizeButton + 'px'};
|
|
6355
|
+
width: ${({ $sizeButton }) => $sizeButton + 'px'};
|
|
6356
|
+
height: ${({ $sizeButton }) => $sizeButton + 'px'};
|
|
6391
6357
|
|
|
6392
|
-
min-width: ${({ sizeButton }) => sizeButton + 'px'};
|
|
6393
|
-
min-height: ${({ sizeButton }) => sizeButton + 'px'};
|
|
6358
|
+
min-width: ${({ $sizeButton }) => $sizeButton + 'px'};
|
|
6359
|
+
min-height: ${({ $sizeButton }) => $sizeButton + 'px'};
|
|
6394
6360
|
|
|
6395
6361
|
background: ${({ theme }) => theme.colors.shadeWhite};
|
|
6396
6362
|
border: 1px solid #e8e8e8;
|
|
6397
6363
|
|
|
6398
6364
|
border-radius: 50%;
|
|
6399
6365
|
|
|
6400
|
-
/* ${({ sizeButton, isLeftButton, marginsArrowButton }) => {
|
|
6366
|
+
/* ${({ $sizeButton, $isLeftButton, $marginsArrowButton }) => {
|
|
6401
6367
|
let result = '';
|
|
6402
|
-
if (sizeButton >= 80) {
|
|
6403
|
-
result = isLeftButton
|
|
6404
|
-
? 'padding-right: 6px; margin-right: ' + marginsArrowButton + ';'
|
|
6405
|
-
: 'padding-left: 6px; margin-left: ' + marginsArrowButton + ';';
|
|
6368
|
+
if ($sizeButton >= 80) {
|
|
6369
|
+
result = $isLeftButton
|
|
6370
|
+
? 'padding-right: 6px; margin-right: ' + $marginsArrowButton + ';'
|
|
6371
|
+
: 'padding-left: 6px; margin-left: ' + $marginsArrowButton + ';';
|
|
6406
6372
|
}
|
|
6407
6373
|
else {
|
|
6408
|
-
result = isLeftButton
|
|
6409
|
-
? 'padding-right: 3px; margin-right: ' + marginsArrowButton + ';'
|
|
6410
|
-
: 'padding-left: 3px; margin-left: ' + marginsArrowButton + ';';
|
|
6374
|
+
result = $isLeftButton
|
|
6375
|
+
? 'padding-right: 3px; margin-right: ' + $marginsArrowButton + ';'
|
|
6376
|
+
: 'padding-left: 3px; margin-left: ' + $marginsArrowButton + ';';
|
|
6411
6377
|
}
|
|
6412
6378
|
return result;
|
|
6413
6379
|
}} */
|
|
@@ -6489,7 +6455,7 @@ function ScrollContainer$1({ children, type, isVisibleControlsButtons, positionA
|
|
|
6489
6455
|
updateSize();
|
|
6490
6456
|
return () => window.removeEventListener('resize', updateSize);
|
|
6491
6457
|
}, []);
|
|
6492
|
-
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs("div", { style: { ...styles, position: 'relative' }, className: className, children: [jsxRuntime.jsxs(WrapperHorizontal$1, { children: [isVisibleControlsButtons && positionArrowButton != 'bottom' && (jsxRuntime.jsx(ButtonArrow, { colorBackground: colorBackground, isLeftButton: true, onClick: scrollToLeft, widthProtectClick: widthProtectClick, onActionArea: setActionAreaButtonLeft, actionArea: actionAreaButtonLeft, sizeButton: sizeArrowButton, isVisible: isVisibleArrowButtonLeft, margin: marginsArrowButton ? (marginsArrowButton + 50) * -1 + 'px' : '-138px', ArrowScroll: ArrowScrollLeft, marginTopArrrowButton: marginTopArrrowButton })), jsxRuntime.jsx(WrapperContent$5, { id: iDScroll, paddingIntern: horizontalMarginInternScroll ? horizontalMarginInternScroll : '150px', hiddenHorizontalScrollBar: hiddenHorizontalScrollBar, children: children }), isVisibleControlsButtons && positionArrowButton != 'bottom' && (jsxRuntime.jsx(ButtonArrow, { colorBackground: colorBackground, isLeftButton: false, onClick: scrollToRight, widthProtectClick: widthProtectClick, onActionArea: setActionAreaButtonRight, actionArea: actionAreaButtonRight, sizeButton: sizeArrowButton, isVisible: isVisibleArrowButtonRight, margin: marginsArrowButton ? (marginsArrowButton + 50) * -1 + 'px' : '-138px', ArrowScroll: ArrowScrollRight, marginTopArrrowButton: marginTopArrrowButton }))] }), jsxRuntime.jsx("div", { style: { display: 'flex', justifyContent: 'center', width: '100%' }, children: isVisibleControlsButtons && positionArrowButton == 'bottom' && (jsxRuntime.jsxs("div", { style: {
|
|
6458
|
+
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs("div", { style: { ...styles, position: 'relative' }, className: className, children: [jsxRuntime.jsxs(WrapperHorizontal$1, { children: [isVisibleControlsButtons && positionArrowButton != 'bottom' && (jsxRuntime.jsx(ButtonArrow, { colorBackground: colorBackground, isLeftButton: true, onClick: scrollToLeft, widthProtectClick: widthProtectClick, onActionArea: setActionAreaButtonLeft, actionArea: actionAreaButtonLeft, sizeButton: sizeArrowButton, isVisible: isVisibleArrowButtonLeft, margin: marginsArrowButton ? (marginsArrowButton + 50) * -1 + 'px' : '-138px', ArrowScroll: ArrowScrollLeft, marginTopArrrowButton: marginTopArrrowButton })), jsxRuntime.jsx(WrapperContent$5, { id: iDScroll, "$paddingIntern": horizontalMarginInternScroll ? horizontalMarginInternScroll : '150px', "$hiddenHorizontalScrollBar": hiddenHorizontalScrollBar, children: children }), isVisibleControlsButtons && positionArrowButton != 'bottom' && (jsxRuntime.jsx(ButtonArrow, { colorBackground: colorBackground, isLeftButton: false, onClick: scrollToRight, widthProtectClick: widthProtectClick, onActionArea: setActionAreaButtonRight, actionArea: actionAreaButtonRight, sizeButton: sizeArrowButton, isVisible: isVisibleArrowButtonRight, margin: marginsArrowButton ? (marginsArrowButton + 50) * -1 + 'px' : '-138px', ArrowScroll: ArrowScrollRight, marginTopArrrowButton: marginTopArrrowButton }))] }), jsxRuntime.jsx("div", { style: { display: 'flex', justifyContent: 'center', width: '100%' }, children: isVisibleControlsButtons && positionArrowButton == 'bottom' && (jsxRuntime.jsxs("div", { style: {
|
|
6493
6459
|
display: 'flex',
|
|
6494
6460
|
flexDirection: 'row',
|
|
6495
6461
|
marginTop: marginTopArrrowButton ? marginTopArrrowButton : '5px'
|
|
@@ -6512,7 +6478,7 @@ function ButtonArrow({ isLeftButton, onClick, onActionArea, actionArea, sizeButt
|
|
|
6512
6478
|
background: !isLeftButton
|
|
6513
6479
|
? `linear-gradient(270deg, ${colorBackground} 15%, rgba(243, 243, 243, 0.00) 100%)`
|
|
6514
6480
|
: `linear-gradient(90deg, ${colorBackground} 15%, rgba(235, 235, 235, 0.00) 100%)`
|
|
6515
|
-
}, children: jsxRuntime.jsx(ButtonControll$1, { id: `button-controll${isLeftButton}`, isLeftButton: isLeftButton, onClick: onClick, onMouseOver: () => onActionArea(true), onMouseOut: () => onActionArea(false), sizeButton: sizeButton, visibility: isVisible ? 'visible' : 'hidden', marginsArrowButton: margin, marginTopArrrowButton: marginTopArrrowButton, children: jsxRuntime.jsx(ArrowScroll, { fill: actionArea ? '#fff' : '#000', height: sizeButton ? (sizeButton / 2.3).toFixed(0).toString() : '34', width: sizeButton ? (sizeButton / 4.3).toFixed(0).toString() : '18' }) }) }));
|
|
6481
|
+
}, children: jsxRuntime.jsx(ButtonControll$1, { id: `button-controll${isLeftButton}`, "$isLeftButton": isLeftButton, onClick: onClick, onMouseOver: () => onActionArea(true), onMouseOut: () => onActionArea(false), "$sizeButton": sizeButton, "$visibility": isVisible ? 'visible' : 'hidden', "$marginsArrowButton": margin, "$marginTopArrrowButton": marginTopArrrowButton, children: jsxRuntime.jsx(ArrowScroll, { fill: actionArea ? '#fff' : '#000', height: sizeButton ? (sizeButton / 2.3).toFixed(0).toString() : '34', width: sizeButton ? (sizeButton / 4.3).toFixed(0).toString() : '18' }) }) }));
|
|
6516
6482
|
}
|
|
6517
6483
|
|
|
6518
6484
|
const HeaderWrapper = styled__default["default"].div `
|
|
@@ -6944,7 +6910,7 @@ const DropDownContainer$1 = styled__default["default"].div `
|
|
|
6944
6910
|
border: 1px solid #e8e8e8;
|
|
6945
6911
|
border-radius: 4px;
|
|
6946
6912
|
position: relative;
|
|
6947
|
-
${(props) => props
|
|
6913
|
+
${(props) => props.$error &&
|
|
6948
6914
|
styled.css `
|
|
6949
6915
|
background: ${({ theme }) => theme.colors.inputError};
|
|
6950
6916
|
border: 1px solid ${({ theme }) => theme.colors.messageError1};
|
|
@@ -6957,7 +6923,7 @@ const EventOverlay$1 = styled__default["default"].div `
|
|
|
6957
6923
|
top: 0;
|
|
6958
6924
|
left: 0;
|
|
6959
6925
|
background: transparent;
|
|
6960
|
-
${props => props
|
|
6926
|
+
${props => props.$disabled &&
|
|
6961
6927
|
styled.css `
|
|
6962
6928
|
cursor: not-allowed !important;
|
|
6963
6929
|
pointer-events: none;
|
|
@@ -6984,14 +6950,14 @@ const DropDownHeader$1 = styled__default["default"].div `
|
|
|
6984
6950
|
line-height: 19px;
|
|
6985
6951
|
color: #a6a6a6;
|
|
6986
6952
|
}
|
|
6987
|
-
${(props) => props
|
|
6953
|
+
${(props) => props.$error &&
|
|
6988
6954
|
styled.css `
|
|
6989
6955
|
background: ${({ theme }) => theme.colors.inputError};
|
|
6990
6956
|
p {
|
|
6991
6957
|
color: ${({ theme }) => theme.colors.linkError};
|
|
6992
6958
|
}
|
|
6993
6959
|
`};
|
|
6994
|
-
${(props) => props
|
|
6960
|
+
${(props) => props.$disabled &&
|
|
6995
6961
|
styled.css `
|
|
6996
6962
|
background: ${({ theme }) => theme.colors.neutralsGrey8};
|
|
6997
6963
|
border: 1px solid ${({ theme }) => theme.colors.neutralsGrey6};
|
|
@@ -7027,7 +6993,7 @@ const DropDownHeaderIcon$1 = styled__default["default"]('div') `
|
|
|
7027
6993
|
justify-content: center;
|
|
7028
6994
|
transition: transform 0.1s ease-in-out;
|
|
7029
6995
|
|
|
7030
|
-
${({ open }) => open === true &&
|
|
6996
|
+
${({ $open }) => $open === true &&
|
|
7031
6997
|
styled.css `
|
|
7032
6998
|
transform: rotate(180deg);
|
|
7033
6999
|
`}
|
|
@@ -7081,7 +7047,7 @@ function Select$2({ placeholder, defaultValue, children, onChange, loading, isEr
|
|
|
7081
7047
|
onChange(e);
|
|
7082
7048
|
toggle();
|
|
7083
7049
|
};
|
|
7084
|
-
return (jsxRuntime.jsx("div", { style: style, children: jsxRuntime.jsxs(DropDownContainer$1, { ref: wrapperRef, error: isError, theme: FRSTTheme, children: [jsxRuntime.jsx(EventOverlay$1, { onClick: toggle, disabled: disabled }), jsxRuntime.jsxs(DropDownHeader$1, { error: isError, disabled: disabled, theme: FRSTTheme, children: [loading ? (jsxRuntime.jsx("p", { children: "Carregando dados..." })) : selectedOption ? (jsxRuntime.jsx(SelectedOption$1, { children: selectedOption })) : (jsxRuntime.jsx("p", { children: placeholder })), jsxRuntime.jsx(DropDownHeaderIcon$1, { open: isOpen, children: ArrowIconFormatted ? jsxRuntime.jsx(ArrowIconFormatted, { fill: disabled && '#BDBDBD' }) : jsxRuntime.jsx(ArrowIcon$2, { fill: disabled && '#BDBDBD' }) })] }), isOpen && (jsxRuntime.jsx(DropDownListContainer$1, { children: jsxRuntime.jsx(DropDownList$1, { children: jsxRuntime.jsx("div", { onClick: handleChange, children: jsxRuntime.jsx(SelectContext.Provider, { value: { selected: selectedOptionValue }, children: children }) }) }) }))] }) }));
|
|
7050
|
+
return (jsxRuntime.jsx("div", { style: style, children: jsxRuntime.jsxs(DropDownContainer$1, { ref: wrapperRef, "$error": isError, theme: FRSTTheme, children: [jsxRuntime.jsx(EventOverlay$1, { onClick: toggle, "$disabled": disabled }), jsxRuntime.jsxs(DropDownHeader$1, { "$error": isError, "$disabled": disabled, theme: FRSTTheme, children: [loading ? (jsxRuntime.jsx("p", { children: "Carregando dados..." })) : selectedOption ? (jsxRuntime.jsx(SelectedOption$1, { children: selectedOption })) : (jsxRuntime.jsx("p", { children: placeholder })), jsxRuntime.jsx(DropDownHeaderIcon$1, { "$open": isOpen, children: ArrowIconFormatted ? jsxRuntime.jsx(ArrowIconFormatted, { fill: disabled && '#BDBDBD' }) : jsxRuntime.jsx(ArrowIcon$2, { fill: disabled && '#BDBDBD' }) })] }), isOpen && (jsxRuntime.jsx(DropDownListContainer$1, { children: jsxRuntime.jsx(DropDownList$1, { children: jsxRuntime.jsx("div", { onClick: handleChange, children: jsxRuntime.jsx(SelectContext.Provider, { value: { selected: selectedOptionValue }, children: children }) }) }) }))] }) }));
|
|
7085
7051
|
}
|
|
7086
7052
|
|
|
7087
7053
|
const ListItem$1 = styled__default["default"]("li") `
|
|
@@ -7895,11 +7861,11 @@ const TabWrapper = styled__default["default"]('div') `
|
|
|
7895
7861
|
const Tab$1 = styled__default["default"]('div') `
|
|
7896
7862
|
width: 137px;
|
|
7897
7863
|
padding: 12px 16px;
|
|
7898
|
-
background-color: ${({ theme, style, selected }) => style?.backgroundColor || (selected ? '#D2ACE4' : theme.colors.shadeWhite)};
|
|
7864
|
+
background-color: ${({ theme, style, $selected }) => style?.backgroundColor || ($selected ? '#D2ACE4' : theme.colors.shadeWhite)};
|
|
7899
7865
|
border-radius: 8px 8px 0px 0px;
|
|
7900
7866
|
cursor: pointer;
|
|
7901
7867
|
|
|
7902
|
-
${(props) => props
|
|
7868
|
+
${(props) => props.$selected &&
|
|
7903
7869
|
styled.css `
|
|
7904
7870
|
background-color: #D2ACE4;
|
|
7905
7871
|
`}
|
|
@@ -7909,7 +7875,7 @@ const Tab$1 = styled__default["default"]('div') `
|
|
|
7909
7875
|
font-size: 16px;
|
|
7910
7876
|
line-height: 1.1;
|
|
7911
7877
|
color: ${({ theme }) => theme.colors.neutralsGrey1};
|
|
7912
|
-
font-weight: ${props => props
|
|
7878
|
+
font-weight: ${props => props.$selected ? 700 : 400};
|
|
7913
7879
|
white-space: nowrap;
|
|
7914
7880
|
text-overflow: ellipsis;
|
|
7915
7881
|
overflow: hidden;
|
|
@@ -7919,7 +7885,7 @@ const Tab$1 = styled__default["default"]('div') `
|
|
|
7919
7885
|
:hover {
|
|
7920
7886
|
background-color: ${({ theme }) => theme.colors.neutralsGrey8};
|
|
7921
7887
|
|
|
7922
|
-
${(props) => props
|
|
7888
|
+
${(props) => props.$selected &&
|
|
7923
7889
|
styled.css `
|
|
7924
7890
|
background-color: #D2ACE4;
|
|
7925
7891
|
`}
|
|
@@ -7962,7 +7928,7 @@ const WrapperAddButton = styled__default["default"]('div') `
|
|
|
7962
7928
|
color: #8E0EC8;
|
|
7963
7929
|
}
|
|
7964
7930
|
|
|
7965
|
-
${(props) => props
|
|
7931
|
+
${(props) => props.$activeButton &&
|
|
7966
7932
|
styled.css `
|
|
7967
7933
|
color: #7C0EAF;
|
|
7968
7934
|
`}
|
|
@@ -7981,7 +7947,7 @@ const WrapperAddButton = styled__default["default"]('div') `
|
|
|
7981
7947
|
height: 16px;
|
|
7982
7948
|
|
|
7983
7949
|
path {
|
|
7984
|
-
${(props) => props
|
|
7950
|
+
${(props) => props.$activeButton ?
|
|
7985
7951
|
styled.css `
|
|
7986
7952
|
stroke: #7C0EAF;
|
|
7987
7953
|
`
|
|
@@ -8009,7 +7975,7 @@ const WrapperImpedimentoSelect = styled__default["default"]('div') `
|
|
|
8009
7975
|
font-weight: 400;
|
|
8010
7976
|
color: ${({ theme }) => theme.colors.neutralsGrey1};
|
|
8011
7977
|
|
|
8012
|
-
${(props) => props
|
|
7978
|
+
${(props) => props.$activeSelect &&
|
|
8013
7979
|
styled.css `
|
|
8014
7980
|
font-weight: 700;
|
|
8015
7981
|
color: ${({ theme }) => theme.colors.neutralsGrey2};
|
|
@@ -8026,7 +7992,7 @@ const WrapperSelectIcon$1 = styled__default["default"]('div') `
|
|
|
8026
7992
|
justify-content: center;
|
|
8027
7993
|
align-items: center;
|
|
8028
7994
|
transition: transform 0.3s ease-in-out;
|
|
8029
|
-
transform: ${({ isOpenSelect }) => (isOpenSelect ? 'rotate(180deg)' : 'rotate(0deg)')} ;
|
|
7995
|
+
transform: ${({ $isOpenSelect }) => ($isOpenSelect ? 'rotate(180deg)' : 'rotate(0deg)')} ;
|
|
8030
7996
|
|
|
8031
7997
|
svg {
|
|
8032
7998
|
width: 16px;
|
|
@@ -8054,7 +8020,7 @@ styled__default["default"]('div') `
|
|
|
8054
8020
|
display: flex;
|
|
8055
8021
|
align-items: center;
|
|
8056
8022
|
justify-content: center;
|
|
8057
|
-
background-color: ${(props) => props
|
|
8023
|
+
background-color: ${(props) => props.$buttonColor};
|
|
8058
8024
|
`;
|
|
8059
8025
|
|
|
8060
8026
|
const ContainerModal = styled__default["default"]('div') `
|
|
@@ -8311,7 +8277,7 @@ function ImpedimentosTab({ maxTabs, tabsList, showAddButton, onSaveNewImpediment
|
|
|
8311
8277
|
handleClickTab(impedimento);
|
|
8312
8278
|
};
|
|
8313
8279
|
const renderTabs = (tabInfo, index) => {
|
|
8314
|
-
return (jsxRuntime.jsx(Tab$1, { style: style, selected: tabInfo.id === selectedTab?.id, onClick: () => handleClickTab(tabInfo), children: jsxRuntime.jsx("p", { children: tabInfo.title }) }, index));
|
|
8280
|
+
return (jsxRuntime.jsx(Tab$1, { style: style, "$selected": tabInfo.id === selectedTab?.id, onClick: () => handleClickTab(tabInfo), children: jsxRuntime.jsx("p", { children: tabInfo.title }) }, index));
|
|
8315
8281
|
};
|
|
8316
8282
|
const handleUpdate = () => {
|
|
8317
8283
|
if (editDescription == '')
|
|
@@ -8356,7 +8322,7 @@ function ImpedimentosTab({ maxTabs, tabsList, showAddButton, onSaveNewImpediment
|
|
|
8356
8322
|
color: 'rgba(117, 117, 117, 1)',
|
|
8357
8323
|
textAlign: 'center',
|
|
8358
8324
|
boxShadow: ' 0px 0px 18px 0px rgba(34, 34, 34, 0.2)'
|
|
8359
|
-
}, children: jsxRuntime.jsxs(WrapperImpedimentoSelect, { activeSelect: openImpedimentoSelect, onClick: (e) => setImpedimentoSelectAnchor(e.currentTarget), style: style, children: [jsxRuntime.jsxs("p", { children: ["Mais ", onHideTabs.length] }), jsxRuntime.jsx(WrapperSelectIcon$1, { isOpenSelect: openImpedimentoSelect, children: jsxRuntime.jsx(ArrrowExpandDropdown, {}) })] }) })) : (jsxRuntime.jsx(jsxRuntime.Fragment, {}))] }), jsxRuntime.jsx(material.Box, { display: 'flex', alignItems: 'center', children: showAddButton ? (jsxRuntime.jsxs(WrapperAddButton, { activeButton: openAddImpedimento, onClick: handleClickAddImpedimento, children: [jsxRuntime.jsx(AddIcon, {}), jsxRuntime.jsx("p", { children: addButtonText })] })) : (jsxRuntime.jsx(jsxRuntime.Fragment, {})) })] }), selectedTab?.id ? (jsxRuntime.jsxs(TabInfoWrapper, { onDoubleClick: () => selectedTab?.showOptions && setIsEdit(true), children: [jsxRuntime.jsx(Tooltip$2, { content: selectedTab?.user_name, direction: "bottom", delay: 200, style: {
|
|
8325
|
+
}, children: jsxRuntime.jsxs(WrapperImpedimentoSelect, { "$activeSelect": openImpedimentoSelect, onClick: (e) => setImpedimentoSelectAnchor(e.currentTarget), style: style, children: [jsxRuntime.jsxs("p", { children: ["Mais ", onHideTabs.length] }), jsxRuntime.jsx(WrapperSelectIcon$1, { "$isOpenSelect": openImpedimentoSelect, children: jsxRuntime.jsx(ArrrowExpandDropdown, {}) })] }) })) : (jsxRuntime.jsx(jsxRuntime.Fragment, {}))] }), jsxRuntime.jsx(material.Box, { display: 'flex', alignItems: 'center', children: showAddButton ? (jsxRuntime.jsxs(WrapperAddButton, { "$activeButton": openAddImpedimento, onClick: handleClickAddImpedimento, children: [jsxRuntime.jsx(AddIcon, {}), jsxRuntime.jsx("p", { children: addButtonText })] })) : (jsxRuntime.jsx(jsxRuntime.Fragment, {})) })] }), selectedTab?.id ? (jsxRuntime.jsxs(TabInfoWrapper, { onDoubleClick: () => selectedTab?.showOptions && setIsEdit(true), children: [jsxRuntime.jsx(Tooltip$2, { content: selectedTab?.user_name, direction: "bottom", delay: 200, style: {
|
|
8360
8326
|
fontFamily: 'PT Sans',
|
|
8361
8327
|
fontWeight: 400,
|
|
8362
8328
|
fontSize: '14px',
|
|
@@ -9218,15 +9184,15 @@ const Tabs = styled__default["default"].div `
|
|
|
9218
9184
|
const Tab = styled__default["default"].div `
|
|
9219
9185
|
font-family: 'PT Sans';
|
|
9220
9186
|
color: #222222;
|
|
9221
|
-
font-weight: ${(props) => (props
|
|
9222
|
-
background-color: ${(props) => (props
|
|
9187
|
+
font-weight: ${(props) => (props.$isActive ? 700 : 400)};
|
|
9188
|
+
background-color: ${(props) => (props.$isActive ? '#ACC8E4' : '')};
|
|
9223
9189
|
cursor: pointer;
|
|
9224
9190
|
padding: 12px 16px;
|
|
9225
|
-
border-top-left-radius: ${(props) => (props
|
|
9226
|
-
border-top-right-radius: ${(props) => (props
|
|
9191
|
+
border-top-left-radius: ${(props) => (props.$isActive ? '8px' : '8px')};
|
|
9192
|
+
border-top-right-radius: ${(props) => (props.$isActive ? '8px' : '8px')};
|
|
9227
9193
|
|
|
9228
9194
|
&:hover {
|
|
9229
|
-
background-color: ${(props) => (props
|
|
9195
|
+
background-color: ${(props) => (props.$isActive ? '' : '#f0f0f0')}; /* Cinza clarinho no hover se não for ativo */
|
|
9230
9196
|
}
|
|
9231
9197
|
`;
|
|
9232
9198
|
const Content$3 = styled__default["default"].div `
|
|
@@ -9300,7 +9266,7 @@ const Menu = styled__default["default"].div `
|
|
|
9300
9266
|
`;
|
|
9301
9267
|
const WrapperTabsResultSelect = styled__default["default"]('div') `
|
|
9302
9268
|
display: flex;
|
|
9303
|
-
align-items: center;
|
|
9269
|
+
align-items: center;
|
|
9304
9270
|
gap: 8px;
|
|
9305
9271
|
padding: 8px;
|
|
9306
9272
|
border-radius: 8px;
|
|
@@ -9310,7 +9276,7 @@ const WrapperTabsResultSelect = styled__default["default"]('div') `
|
|
|
9310
9276
|
font-family: 'PT Sans';
|
|
9311
9277
|
font-size: 16px;
|
|
9312
9278
|
line-height: 1.1;
|
|
9313
|
-
font-weight: ${({ activeSelect }) => (activeSelect ? '700' : '400')};
|
|
9279
|
+
font-weight: ${({ $activeSelect }) => ($activeSelect ? '700' : '400')};
|
|
9314
9280
|
color: #444444;
|
|
9315
9281
|
}
|
|
9316
9282
|
|
|
@@ -9323,7 +9289,7 @@ const WrapperSelectIcon = styled__default["default"]('div') `
|
|
|
9323
9289
|
justify-content: center;
|
|
9324
9290
|
align-items: center;
|
|
9325
9291
|
transition: transform 0.3s ease-in-out;
|
|
9326
|
-
transform: ${({ isOpenSelect }) => (isOpenSelect ? 'rotate(180deg)' : 'rotate(0deg)')};
|
|
9292
|
+
transform: ${({ $isOpenSelect }) => ($isOpenSelect ? 'rotate(180deg)' : 'rotate(0deg)')};
|
|
9327
9293
|
|
|
9328
9294
|
svg {
|
|
9329
9295
|
width: 16px;
|
|
@@ -9488,7 +9454,7 @@ const ResultFilterTabs = ({ results, onTabChange, onDelete, onEdit, tabLimit })
|
|
|
9488
9454
|
}
|
|
9489
9455
|
};
|
|
9490
9456
|
const tabs = React.useMemo(() => {
|
|
9491
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: filteredResults?.map((result, index) => (jsxRuntime.jsxs(Tab, { isActive: activeTab === index, onClick: () => handleTabClick(index, result?.version), children: [result.name, " ", result.name === 'Resultado' ? result?.version : result?.version - 1] }, index))) }));
|
|
9457
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: filteredResults?.map((result, index) => (jsxRuntime.jsxs(Tab, { "$isActive": activeTab === index, onClick: () => handleTabClick(index, result?.version), children: [result.name, " ", result.name === 'Resultado' ? result?.version : result?.version - 1] }, index))) }));
|
|
9492
9458
|
}, [filteredResults, activeTab]);
|
|
9493
9459
|
const handleEdit = () => {
|
|
9494
9460
|
if (!isEditing)
|
|
@@ -9538,10 +9504,10 @@ const ResultFilterTabs = ({ results, onTabChange, onDelete, onEdit, tabLimit })
|
|
|
9538
9504
|
setDateValue(dateFixed);
|
|
9539
9505
|
}
|
|
9540
9506
|
}, [newDate]);
|
|
9541
|
-
return (jsxRuntime.jsxs(Container$o, { children: [jsxRuntime.jsxs(Tabs, { children: [jsxRuntime.jsx("div", { style: { display: 'flex' }, children: tabs }), canShowDropdown && (jsxRuntime.jsx(Tooltip$2, { content: "Ver todos os Resultados", direction: "bottom", delay: 200, style: { textAlign: 'center' }, children: jsxRuntime.jsxs(WrapperTabsResultSelect, { activeSelect: isDropdownOpen, onClick: (event) => {
|
|
9507
|
+
return (jsxRuntime.jsxs(Container$o, { children: [jsxRuntime.jsxs(Tabs, { children: [jsxRuntime.jsx("div", { style: { display: 'flex' }, children: tabs }), canShowDropdown && (jsxRuntime.jsx(Tooltip$2, { content: "Ver todos os Resultados", direction: "bottom", delay: 200, style: { textAlign: 'center' }, children: jsxRuntime.jsxs(WrapperTabsResultSelect, { "$activeSelect": isDropdownOpen, onClick: (event) => {
|
|
9542
9508
|
setAnchor(event?.currentTarget);
|
|
9543
9509
|
toggleDropdown();
|
|
9544
|
-
}, children: [jsxRuntime.jsxs("p", { children: ["Mais ", hiddenTabs.length] }), jsxRuntime.jsx(WrapperSelectIcon, { isOpenSelect: isDropdownOpen, children: jsxRuntime.jsx(ArrrowExpandDropdown, {}) })] }) }))] }), jsxRuntime.jsxs(Content$3, { ref: editContainerRef, onDoubleClick: handleDoubleClick, children: [jsxRuntime.jsxs(Info, { children: [jsxRuntime.jsxs("p", { children: ["Valor a ser atingido:", ' ', isEditing ? (jsxRuntime.jsx(inputIndicator, { type: "text", value: newValue, onChange: (e) => {
|
|
9510
|
+
}, children: [jsxRuntime.jsxs("p", { children: ["Mais ", hiddenTabs.length] }), jsxRuntime.jsx(WrapperSelectIcon, { "$isOpenSelect": isDropdownOpen, children: jsxRuntime.jsx(ArrrowExpandDropdown, {}) })] }) }))] }), jsxRuntime.jsxs(Content$3, { ref: editContainerRef, onDoubleClick: handleDoubleClick, children: [jsxRuntime.jsxs(Info, { children: [jsxRuntime.jsxs("p", { children: ["Valor a ser atingido:", ' ', isEditing ? (jsxRuntime.jsx(inputIndicator, { type: "text", value: newValue, onChange: (e) => {
|
|
9545
9511
|
const maskedValue = e?.target?.value;
|
|
9546
9512
|
// Aceita números, ponto e vírgula
|
|
9547
9513
|
const numericValue = maskedValue.replace(/[^\d.,]/g, '');
|
|
@@ -12205,7 +12171,7 @@ function AvatarAssociatedChannel({ descriptionChannel, nameChannel, channel, col
|
|
|
12205
12171
|
}
|
|
12206
12172
|
|
|
12207
12173
|
const BannerContainer = styled__default["default"].div `
|
|
12208
|
-
background: ${(props) => props
|
|
12174
|
+
background: ${(props) => props.$backgroundBanner};
|
|
12209
12175
|
display: flex;
|
|
12210
12176
|
justify-content: flex-start;
|
|
12211
12177
|
align-items: center;
|
|
@@ -12423,7 +12389,7 @@ function BannerLxp(props) {
|
|
|
12423
12389
|
setColorTitle(props?.titleColor);
|
|
12424
12390
|
setDisableText(props.isDisabledTitle);
|
|
12425
12391
|
}, [props?.title, props?.titleColor, props.isDisabledTitle]);
|
|
12426
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [props?.isLoading ? (jsxRuntime.jsx(LoadingBanner, {})) : (jsxRuntime.jsxs(BannerContainer, { backgroundBanner: props?.bgColor || `url(${props?.bgSrc})`, style: {
|
|
12392
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [props?.isLoading ? (jsxRuntime.jsx(LoadingBanner, {})) : (jsxRuntime.jsxs(BannerContainer, { "$backgroundBanner": props?.bgColor || `url(${props?.bgSrc})`, style: {
|
|
12427
12393
|
...props.style,
|
|
12428
12394
|
objectFit: 'fill'
|
|
12429
12395
|
}, children: [!props?.isDisabledTitle && (jsxRuntime.jsx("span", { style: {
|
|
@@ -13071,23 +13037,23 @@ const ValueAndProgress = styled__default["default"].div `
|
|
|
13071
13037
|
flex-direction: row;
|
|
13072
13038
|
align-items: center;
|
|
13073
13039
|
font-family: 'PT Sans';
|
|
13074
|
-
color: ${({ colorText }) => colorText || '#ffffff'};
|
|
13040
|
+
color: ${({ $colorText }) => $colorText || '#ffffff'};
|
|
13075
13041
|
font-weight: 400;
|
|
13076
13042
|
`;
|
|
13077
13043
|
const BorderLinearProgress = styled__default["default"](LinearProgress__default["default"]) `
|
|
13078
13044
|
width: 100%;
|
|
13079
13045
|
height: 8px !important;
|
|
13080
13046
|
border-radius: 8px;
|
|
13081
|
-
background: ${({ trackColor }) => trackColor || 'rgba(255, 77, 13, 0.3)'} !important;
|
|
13047
|
+
background: ${({ $trackColor }) => $trackColor || 'rgba(255, 77, 13, 0.3)'} !important;
|
|
13082
13048
|
|
|
13083
13049
|
|
|
13084
13050
|
.MuiLinearProgress-bar {
|
|
13085
|
-
background: ${({ bgColor }) => bgColor || '#ff4d0d'} !important;
|
|
13051
|
+
background: ${({ $bgColor }) => $bgColor || '#ff4d0d'} !important;
|
|
13086
13052
|
}
|
|
13087
13053
|
`;
|
|
13088
13054
|
|
|
13089
13055
|
function ProgressBar$1({ value, label, style, bgColor, trackColor, colorText }) {
|
|
13090
|
-
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(ProgressContainer, { style: style, children: [jsxRuntime.jsx("span", { children: label }), jsxRuntime.jsxs(ValueAndProgress, { colorText: colorText, children: [jsxRuntime.jsx(BorderLinearProgress, { trackColor: trackColor, bgColor: bgColor, variant: "determinate", value: value }), " \u00A0", value + '%'] })] }) }));
|
|
13056
|
+
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(ProgressContainer, { style: style, children: [jsxRuntime.jsx("span", { children: label }), jsxRuntime.jsxs(ValueAndProgress, { "$colorText": colorText, children: [jsxRuntime.jsx(BorderLinearProgress, { "$trackColor": trackColor, "$bgColor": bgColor, variant: "determinate", value: value }), " \u00A0", value + '%'] })] }) }));
|
|
13091
13057
|
}
|
|
13092
13058
|
|
|
13093
13059
|
const Container$g = styled__default["default"].div `
|
|
@@ -13798,11 +13764,11 @@ const WrapperIconNotificationMobile = styled__default["default"].div `
|
|
|
13798
13764
|
const SubMenuContainer = styled__default["default"].div `
|
|
13799
13765
|
width: 100%;
|
|
13800
13766
|
height: 50px;
|
|
13801
|
-
${(props) => props
|
|
13767
|
+
${(props) => props.$marginTop &&
|
|
13802
13768
|
styled.css `
|
|
13803
13769
|
margin-top: 4rem;
|
|
13804
13770
|
`}
|
|
13805
|
-
background: ${({ variant, theme }) => (variant == 'LXP' ? theme.colors.neutralsGrey2 : theme.colors.primary1)};
|
|
13771
|
+
background: ${({ $variant, theme }) => ($variant == 'LXP' ? theme.colors.neutralsGrey2 : theme.colors.primary1)};
|
|
13806
13772
|
|
|
13807
13773
|
padding-left: 124px;
|
|
13808
13774
|
padding-right: 124px;
|
|
@@ -13812,7 +13778,7 @@ const SubMenuContainer = styled__default["default"].div `
|
|
|
13812
13778
|
justify-content: center;
|
|
13813
13779
|
`;
|
|
13814
13780
|
const MenuMobile$1 = styled__default["default"].div `
|
|
13815
|
-
display: ${({ isVisible }) => (isVisible ? 'flex' : 'none')};
|
|
13781
|
+
display: ${({ $isVisible }) => ($isVisible ? 'flex' : 'none')};
|
|
13816
13782
|
flex-direction: column;
|
|
13817
13783
|
justify-content: space-between;
|
|
13818
13784
|
position: absolute;
|
|
@@ -13824,7 +13790,7 @@ const MenuMobile$1 = styled__default["default"].div `
|
|
|
13824
13790
|
background: #222;
|
|
13825
13791
|
`;
|
|
13826
13792
|
const SideMenu$1 = styled__default["default"].div `
|
|
13827
|
-
display: ${({ isVisible }) => (isVisible ? 'flex' : 'none')};
|
|
13793
|
+
display: ${({ $isVisible }) => ($isVisible ? 'flex' : 'none')};
|
|
13828
13794
|
flex-direction: column;
|
|
13829
13795
|
justify-content: space-between;
|
|
13830
13796
|
position: absolute;
|
|
@@ -14247,10 +14213,10 @@ const Wrapper$4 = styled__default["default"].button `
|
|
|
14247
14213
|
gap: 2px;
|
|
14248
14214
|
cursor: pointer;
|
|
14249
14215
|
border: 0;
|
|
14250
|
-
border-bottom: ${({ typeItem }) => typeItem == 'menu' ? '4px' : '2px'} solid transparent;
|
|
14251
|
-
border-top: ${({ typeItem }) => typeItem == 'menu' ? '10px' : '2px'} solid transparent;
|
|
14216
|
+
border-bottom: ${({ $typeItem }) => $typeItem == 'menu' ? '4px' : '2px'} solid transparent;
|
|
14217
|
+
border-top: ${({ $typeItem }) => $typeItem == 'menu' ? '10px' : '2px'} solid transparent;
|
|
14252
14218
|
|
|
14253
|
-
background-color: ${({ variant, theme, typeItem }) => typeItem == 'submenu' ? 'transparent' : variant == 'LXP' ? theme.colors.neutralsGrey1 : theme.colors.primary1};
|
|
14219
|
+
background-color: ${({ $variant, theme, $typeItem }) => $typeItem == 'submenu' ? 'transparent' : $variant == 'LXP' ? theme.colors.neutralsGrey1 : theme.colors.primary1};
|
|
14254
14220
|
|
|
14255
14221
|
font-family: 'PT Sans';
|
|
14256
14222
|
font-style: normal;
|
|
@@ -14260,21 +14226,21 @@ const Wrapper$4 = styled__default["default"].button `
|
|
|
14260
14226
|
|
|
14261
14227
|
color: #FFFFFF;
|
|
14262
14228
|
|
|
14263
|
-
white-space: ${({ wrapText }) => wrapText ? 'wrap' : 'nowrap'};
|
|
14229
|
+
white-space: ${({ $wrapText }) => $wrapText ? 'wrap' : 'nowrap'};
|
|
14264
14230
|
|
|
14265
14231
|
&:hover {
|
|
14266
|
-
background-color: ${({ variant, theme }) => variant == 'LXP' ? theme.colors.neutralsGrey3 : '#F5792A'};
|
|
14267
|
-
border-bottom: ${({ typeItem }) => typeItem == 'menu' ? '4px' : '2px'} solid transparent;
|
|
14232
|
+
background-color: ${({ $variant, theme }) => $variant == 'LXP' ? theme.colors.neutralsGrey3 : '#F5792A'};
|
|
14233
|
+
border-bottom: ${({ $typeItem }) => $typeItem == 'menu' ? '4px' : '2px'} solid transparent;
|
|
14268
14234
|
}
|
|
14269
|
-
${({ pressed, variant, typeItem, theme }) => pressed && `
|
|
14235
|
+
${({ $pressed, $variant, $typeItem, theme }) => $pressed && `
|
|
14270
14236
|
font-weight: 700;
|
|
14271
|
-
border-bottom: ${typeItem == 'menu' ? '4px' : '2px'} solid
|
|
14272
|
-
${variant == 'LXP' && typeItem == 'menu' ? theme.colors.primary1 : theme.colors.shadeWhite};
|
|
14237
|
+
border-bottom: ${$typeItem == 'menu' ? '4px' : '2px'} solid
|
|
14238
|
+
${$variant == 'LXP' && $typeItem == 'menu' ? theme.colors.primary1 : theme.colors.shadeWhite};
|
|
14273
14239
|
`}
|
|
14274
14240
|
&:focus {
|
|
14275
14241
|
font-weight: 700;
|
|
14276
|
-
border-bottom: ${({ typeItem }) => typeItem == 'menu' ? '4px' : '2px'} solid
|
|
14277
|
-
${({ variant, typeItem, theme }) => variant == 'LXP' && typeItem == 'menu' ? theme.colors.primary1 : theme.colors.shadeWhite};
|
|
14242
|
+
border-bottom: ${({ $typeItem }) => $typeItem == 'menu' ? '4px' : '2px'} solid
|
|
14243
|
+
${({ $variant, $typeItem, theme }) => $variant == 'LXP' && $typeItem == 'menu' ? theme.colors.primary1 : theme.colors.shadeWhite};
|
|
14278
14244
|
}
|
|
14279
14245
|
`;
|
|
14280
14246
|
styled__default["default"].button `
|
|
@@ -14284,8 +14250,8 @@ styled__default["default"].button `
|
|
|
14284
14250
|
justify-content: center;
|
|
14285
14251
|
cursor: pointer;
|
|
14286
14252
|
border: 0;
|
|
14287
|
-
border-bottom: ${({ typeItem }) => typeItem == 'menu' ? '4px' : '2px'} solid transparent;
|
|
14288
|
-
border-top: ${({ typeItem }) => typeItem == 'menu' ? '4px' : '2px'} solid transparent;
|
|
14253
|
+
border-bottom: ${({ $typeItem }) => $typeItem == 'menu' ? '4px' : '2px'} solid transparent;
|
|
14254
|
+
border-top: ${({ $typeItem }) => $typeItem == 'menu' ? '4px' : '2px'} solid transparent;
|
|
14289
14255
|
|
|
14290
14256
|
background-color: transparent;
|
|
14291
14257
|
|
|
@@ -14297,12 +14263,12 @@ styled__default["default"].button `
|
|
|
14297
14263
|
|
|
14298
14264
|
color: #FFFFFF;
|
|
14299
14265
|
|
|
14300
|
-
white-space: ${({ wrapText }) => wrapText ? 'wrap' : 'nowrap'};
|
|
14266
|
+
white-space: ${({ $wrapText }) => $wrapText ? 'wrap' : 'nowrap'};
|
|
14301
14267
|
|
|
14302
14268
|
&:hover {
|
|
14303
|
-
background-color: ${({ variant, theme }) => variant == 'LXP' ? theme.colors.neutralsGrey3 : '#F5792A'};
|
|
14304
|
-
border-bottom: ${({ typeItem }) => typeItem == 'menu' ? '4px' : '2px'} solid
|
|
14305
|
-
${({ variant, typeItem, theme }) => variant == 'LXP' && typeItem == 'menu' ? theme.colors.primary1 : theme.colors.shadeWhite};
|
|
14269
|
+
background-color: ${({ $variant, theme }) => $variant == 'LXP' ? theme.colors.neutralsGrey3 : '#F5792A'};
|
|
14270
|
+
border-bottom: ${({ $typeItem }) => $typeItem == 'menu' ? '4px' : '2px'} solid
|
|
14271
|
+
${({ $variant, $typeItem, theme }) => $variant == 'LXP' && $typeItem == 'menu' ? theme.colors.primary1 : theme.colors.shadeWhite};
|
|
14306
14272
|
}
|
|
14307
14273
|
|
|
14308
14274
|
&:focus {
|
|
@@ -14311,7 +14277,7 @@ styled__default["default"].button `
|
|
|
14311
14277
|
`;
|
|
14312
14278
|
|
|
14313
14279
|
function ItemGlobalMenu({ variant, type, label, handleOnClick, wrapText, pressed, style, icon, customMenu }) {
|
|
14314
|
-
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(Wrapper$4, { variant: variant, pressed: pressed, typeItem: type, wrapText: wrapText, style: { ...style }, onClick: handleOnClick, children: [jsxRuntime.jsx("span", { style: { marginRight: customMenu ? 10 : 0 }, children: icon }), jsxRuntime.jsx("span", { style: { marginTop: customMenu ? -8 : 0 }, children: label })] }) }));
|
|
14280
|
+
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(Wrapper$4, { "$variant": variant, "$pressed": pressed, "$typeItem": type, "$wrapText": wrapText, style: { ...style }, onClick: handleOnClick, children: [jsxRuntime.jsx("span", { style: { marginRight: customMenu ? 10 : 0 }, children: icon }), jsxRuntime.jsx("span", { style: { marginTop: customMenu ? -8 : 0 }, children: label })] }) }));
|
|
14315
14281
|
}
|
|
14316
14282
|
|
|
14317
14283
|
const Container$d = styled__default["default"].div `
|
|
@@ -14412,7 +14378,7 @@ const AvatarCustomUser = styled__default["default"](Avatar__default["default"])
|
|
|
14412
14378
|
const MenuCustom$1 = styled__default["default"](Menu__default["default"]) `
|
|
14413
14379
|
& .MuiPaper-root{
|
|
14414
14380
|
border-radius: 0px;
|
|
14415
|
-
${({ variantstyle }) => variantstyle == 'LXP' && `border-bottom-left-radius: 8px;
|
|
14381
|
+
${({ $variantstyle }) => $variantstyle == 'LXP' && `border-bottom-left-radius: 8px;
|
|
14416
14382
|
border-bottom-right-radius: 8px;
|
|
14417
14383
|
box-shadow: none !important;`}
|
|
14418
14384
|
}
|
|
@@ -14436,7 +14402,7 @@ const MenuItemCustom$1 = styled__default["default"](MenuItem__default["default"]
|
|
|
14436
14402
|
color: white !important;
|
|
14437
14403
|
border: 0;
|
|
14438
14404
|
|
|
14439
|
-
${({ variantstyle }) => variantstyle == 'LXP' ?
|
|
14405
|
+
${({ $variantstyle }) => $variantstyle == 'LXP' ?
|
|
14440
14406
|
`background-color: #222222 !important;
|
|
14441
14407
|
border-top: 0.5px solid #757575 !important;`
|
|
14442
14408
|
:
|
|
@@ -14447,7 +14413,7 @@ const MenuItemCustom$1 = styled__default["default"](MenuItem__default["default"]
|
|
|
14447
14413
|
|
|
14448
14414
|
&:hover {
|
|
14449
14415
|
|
|
14450
|
-
${({ variantstyle }) => variantstyle == 'LXP' ?
|
|
14416
|
+
${({ $variantstyle }) => $variantstyle == 'LXP' ?
|
|
14451
14417
|
`background-color: #444444 !important;`
|
|
14452
14418
|
:
|
|
14453
14419
|
`background-color: #F5792A !important;`}
|
|
@@ -14457,13 +14423,13 @@ const MenuItemCustom$1 = styled__default["default"](MenuItem__default["default"]
|
|
|
14457
14423
|
const SubMenuItemCustom = styled__default["default"](MenuItem__default["default"]) `
|
|
14458
14424
|
color: white !important;
|
|
14459
14425
|
|
|
14460
|
-
${({ variantstyle }) => variantstyle == 'LXP' ?
|
|
14426
|
+
${({ $variantstyle }) => $variantstyle == 'LXP' ?
|
|
14461
14427
|
`background-color: #222222 !important;`
|
|
14462
14428
|
:
|
|
14463
14429
|
`background-color: #FF4D0D !important;`}
|
|
14464
14430
|
|
|
14465
14431
|
&:hover {
|
|
14466
|
-
${({ variantstyle }) => variantstyle == 'LXP' ?
|
|
14432
|
+
${({ $variantstyle }) => $variantstyle == 'LXP' ?
|
|
14467
14433
|
`background-color: #444444 !important;`
|
|
14468
14434
|
:
|
|
14469
14435
|
`background-color: #F5792A !important;`}
|
|
@@ -14493,12 +14459,12 @@ function DropdownProfileMenu({ variant, user, menuItems, profileMenuText, isMobi
|
|
|
14493
14459
|
};
|
|
14494
14460
|
return (jsxRuntime.jsx(Container$d, { style: { ...style }, children: variant == 'LXP' ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [showProfile ?
|
|
14495
14461
|
jsxRuntime.jsxs(Button__default["default"], { id: "profile-dropdown", "aria-controls": "basic-menu", "aria-haspopup": "true", "aria-expanded": open ? 'true' : undefined, style: { padding: 0 }, onClick: handleClick, children: [jsxRuntime.jsx(AvatarCustomUser, { alt: "User Photo", src: user.avatar || 'https://certificates-mentor.s3.amazonaws.com/frst-avatar-default.png' }), !isMobileVersion && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(UserName, { children: [" ", user.textIsMe, " "] }), jsxRuntime.jsx(DropdownIcon, { fill: "white" })] }))] })
|
|
14496
|
-
: null, jsxRuntime.jsxs(MenuCustom$1, { id: "basic-menu", anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }, anchorEl: anchorEl, open: open, onClose: handleClose, variantstyle: 'LXP', children: [jsxRuntime.jsxs(ProfileInfos, { children: [jsxRuntime.jsx(AvatarCustomUser, { alt: "User Photo", src: user.avatar || 'https://certificates-mentor.s3.amazonaws.com/frst-avatar-default.png', style: { width: '70px', height: '70px' } }), jsxRuntime.jsxs(WrapperRightProfileInfo, { children: [jsxRuntime.jsxs(ProfileNameInfo, { children: [" ", user.name, " "] }), jsxRuntime.jsxs(ProfileCompanyInfo, { children: [" ", user.company, " "] }), !hiddenProfileMenu && (jsxRuntime.jsx(WrapperButtonFrst, { children: jsxRuntime.jsx(Button$5, { variant: 'secondary', label: profileMenuText, handleClick: handleProfileMenuClick }) }))] })] }), menuItems &&
|
|
14462
|
+
: null, jsxRuntime.jsxs(MenuCustom$1, { id: "basic-menu", anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }, anchorEl: anchorEl, open: open, onClose: handleClose, "$variantstyle": 'LXP', children: [jsxRuntime.jsxs(ProfileInfos, { children: [jsxRuntime.jsx(AvatarCustomUser, { alt: "User Photo", src: user.avatar || 'https://certificates-mentor.s3.amazonaws.com/frst-avatar-default.png', style: { width: '70px', height: '70px' } }), jsxRuntime.jsxs(WrapperRightProfileInfo, { children: [jsxRuntime.jsxs(ProfileNameInfo, { children: [" ", user.name, " "] }), jsxRuntime.jsxs(ProfileCompanyInfo, { children: [" ", user.company, " "] }), !hiddenProfileMenu && (jsxRuntime.jsx(WrapperButtonFrst, { children: jsxRuntime.jsx(Button$5, { variant: 'secondary', label: profileMenuText, handleClick: handleProfileMenuClick }) }))] })] }), menuItems &&
|
|
14497
14463
|
menuItems.length > 0 &&
|
|
14498
14464
|
menuItems.map((item, index) => {
|
|
14499
14465
|
if (item.subItens) {
|
|
14500
14466
|
if (item.subItens.length > 1)
|
|
14501
|
-
return (jsxRuntime.jsxs(MenuItemCustom$1, { onClick: handleSubitens(item.subItens), variantstyle: 'LXP', children: [item.iconBegin && item.iconBegin, item.iconBegin && jsxRuntime.jsx("span", { children: "\u00A0" }), jsxRuntime.jsxs("div", { style: {
|
|
14467
|
+
return (jsxRuntime.jsxs(MenuItemCustom$1, { onClick: handleSubitens(item.subItens), "$variantstyle": 'LXP', children: [item.iconBegin && item.iconBegin, item.iconBegin && jsxRuntime.jsx("span", { children: "\u00A0" }), jsxRuntime.jsxs("div", { style: {
|
|
14502
14468
|
width: '100%',
|
|
14503
14469
|
display: 'flex',
|
|
14504
14470
|
flexDirection: 'row',
|
|
@@ -14507,24 +14473,24 @@ function DropdownProfileMenu({ variant, user, menuItems, profileMenuText, isMobi
|
|
|
14507
14473
|
}, children: [jsxRuntime.jsx("div", { style: { marginLeft: '7px' }, children: item.label }), jsxRuntime.jsx(DropdownSideIconWhite, {})] })] }, index));
|
|
14508
14474
|
}
|
|
14509
14475
|
else
|
|
14510
|
-
return (jsxRuntime.jsxs(MenuItemCustom$1, { onClick: item.onClick || handleClose, variantstyle: 'LXP', children: [item.iconBegin && item.iconBegin, jsxRuntime.jsx("div", { style: {
|
|
14476
|
+
return (jsxRuntime.jsxs(MenuItemCustom$1, { onClick: item.onClick || handleClose, "$variantstyle": 'LXP', children: [item.iconBegin && item.iconBegin, jsxRuntime.jsx("div", { style: {
|
|
14511
14477
|
width: '100%',
|
|
14512
14478
|
display: 'flex',
|
|
14513
14479
|
flexDirection: 'row',
|
|
14514
14480
|
alignItems: 'center',
|
|
14515
14481
|
justifyContent: 'space-between'
|
|
14516
14482
|
}, children: jsxRuntime.jsx("div", { style: { marginLeft: item.iconBegin ? '9px' : '0px' }, children: item.label }) })] }, index));
|
|
14517
|
-
})] }), jsxRuntime.jsx(MenuCustom$1, { id: "sub-menu", anchorOrigin: { vertical: 'top', horizontal: 'left' }, transformOrigin: { vertical: 'top', horizontal: 'right' }, anchorEl: anchorSub, open: openSub, onClose: handleClose, variantstyle: 'default', children: subMenu &&
|
|
14483
|
+
})] }), jsxRuntime.jsx(MenuCustom$1, { id: "sub-menu", anchorOrigin: { vertical: 'top', horizontal: 'left' }, transformOrigin: { vertical: 'top', horizontal: 'right' }, anchorEl: anchorSub, open: openSub, onClose: handleClose, "$variantstyle": 'default', children: subMenu &&
|
|
14518
14484
|
subMenu.map((item, index) => {
|
|
14519
|
-
return (jsxRuntime.jsx(SubMenuItemCustom, { onClick: (e) => item.onClick(e), variantstyle: 'LXP', children: item.label }, item.id));
|
|
14485
|
+
return (jsxRuntime.jsx(SubMenuItemCustom, { onClick: (e) => item.onClick(e), "$variantstyle": 'LXP', children: item.label }, item.id));
|
|
14520
14486
|
}) })] })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [showProfile ?
|
|
14521
14487
|
jsxRuntime.jsxs(Button__default["default"], { id: "profile-dropdown", "aria-controls": "basic-menu", "aria-haspopup": "true", "aria-expanded": open ? 'true' : undefined, style: { background: '#FF4D0D', borderRadius: '0px', padding: '5px', width: '185px', whiteSpace: 'nowrap' }, onClick: handleClick, children: [jsxRuntime.jsx(AvatarCustomUser, { alt: "User Photo", src: user.avatar || 'https://certificates-mentor.s3.amazonaws.com/frst-avatar-default.png' }), jsxRuntime.jsxs(UserName, { children: [" ", user.textIsMe, " "] }), jsxRuntime.jsx(DropdownIcon, { fill: "white" })] })
|
|
14522
|
-
: null, jsxRuntime.jsx(MenuCustom$1, { id: "basic-menu", anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }, anchorEl: anchorEl, open: open, onClose: handleClose, variantstyle: 'default', children: menuItems &&
|
|
14488
|
+
: null, jsxRuntime.jsx(MenuCustom$1, { id: "basic-menu", anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }, anchorEl: anchorEl, open: open, onClose: handleClose, "$variantstyle": 'default', children: menuItems &&
|
|
14523
14489
|
menuItems.length > 0 &&
|
|
14524
14490
|
menuItems.map((item, index) => {
|
|
14525
14491
|
if (item.subItens) {
|
|
14526
14492
|
if (item.subItens.length > 1)
|
|
14527
|
-
return (jsxRuntime.jsxs(MenuItemCustom$1, { onClick: handleSubitens(item.subItens), variantstyle: 'default', children: [item.iconBegin && item.iconBegin, item.iconBegin && jsxRuntime.jsx("span", { children: "\u00A0" }), jsxRuntime.jsxs("div", { style: {
|
|
14493
|
+
return (jsxRuntime.jsxs(MenuItemCustom$1, { onClick: handleSubitens(item.subItens), "$variantstyle": 'default', children: [item.iconBegin && item.iconBegin, item.iconBegin && jsxRuntime.jsx("span", { children: "\u00A0" }), jsxRuntime.jsxs("div", { style: {
|
|
14528
14494
|
width: '100%',
|
|
14529
14495
|
display: 'flex',
|
|
14530
14496
|
flexDirection: 'row',
|
|
@@ -14533,16 +14499,16 @@ function DropdownProfileMenu({ variant, user, menuItems, profileMenuText, isMobi
|
|
|
14533
14499
|
}, children: [jsxRuntime.jsx("div", { style: { marginLeft: '7px' }, children: item.label }), jsxRuntime.jsx(DropdownSideIconWhite, {})] })] }, index));
|
|
14534
14500
|
}
|
|
14535
14501
|
else
|
|
14536
|
-
return (jsxRuntime.jsxs(MenuItemCustom$1, { onClick: item.onClick || handleClose, variantstyle: 'default', children: [item.iconBegin && item.iconBegin, jsxRuntime.jsx("div", { style: {
|
|
14502
|
+
return (jsxRuntime.jsxs(MenuItemCustom$1, { onClick: item.onClick || handleClose, "$variantstyle": 'default', children: [item.iconBegin && item.iconBegin, jsxRuntime.jsx("div", { style: {
|
|
14537
14503
|
width: '100%',
|
|
14538
14504
|
display: 'flex',
|
|
14539
14505
|
flexDirection: 'row',
|
|
14540
14506
|
alignItems: 'center',
|
|
14541
14507
|
justifyContent: 'space-between'
|
|
14542
14508
|
}, children: jsxRuntime.jsx("div", { style: { marginLeft: item.iconBegin ? '9px' : '0px' }, children: item.label }) })] }, index));
|
|
14543
|
-
}) }), jsxRuntime.jsx(MenuCustom$1, { id: "sub-menu", anchorOrigin: { vertical: 'top', horizontal: 'left' }, transformOrigin: { vertical: 'top', horizontal: 'right' }, anchorEl: anchorSub, open: openSub, onClose: handleClose, variantstyle: 'default', children: subMenu &&
|
|
14509
|
+
}) }), jsxRuntime.jsx(MenuCustom$1, { id: "sub-menu", anchorOrigin: { vertical: 'top', horizontal: 'left' }, transformOrigin: { vertical: 'top', horizontal: 'right' }, anchorEl: anchorSub, open: openSub, onClose: handleClose, "$variantstyle": 'default', children: subMenu &&
|
|
14544
14510
|
subMenu.map((item, index) => {
|
|
14545
|
-
return (jsxRuntime.jsx(SubMenuItemCustom, { onClick: (e) => item.onClick(e), variantstyle: 'default', children: item.label }, item.id));
|
|
14511
|
+
return (jsxRuntime.jsx(SubMenuItemCustom, { onClick: (e) => item.onClick(e), "$variantstyle": 'default', children: item.label }, item.id));
|
|
14546
14512
|
}) })] })) }));
|
|
14547
14513
|
}
|
|
14548
14514
|
|
|
@@ -14915,7 +14881,7 @@ function GlobalMenu({ variant, menu, customMenu, user, search, notification, lan
|
|
|
14915
14881
|
// const newNotification = notification.notificationList
|
|
14916
14882
|
// ? notification.notificationList.filter((notification) => notification.isNewNotification)
|
|
14917
14883
|
// : []
|
|
14918
|
-
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: variant == 'LXP' ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(MenuMobile, { onClickExit: onClickExit, languageSelected: languageSelected, variant: 'LXP', items: menu, isVisible: isVisibleMenuMobile, setVisible: (e) => setIsVisibleMenuMobile(e), onClickSite: onClickSite, onClickLinkedin: onClickLinkedin, onClickInstagram: onClickInstagram, onClickYoutube: onClickYoutube, onClickSpotify: onClickSpotify, onClickPodCast: onClickPodCast, customMenu: customMenu }), jsxRuntime.jsx(SideMenu, { onClickExit: onClickExit, languageSelected: languageSelected, variant: 'LXP', items: menu, isVisible: isVisibleSideMenu, setVisible: (e) => setIsVisibleSideMenu(e), onClickSite: onClickSite, onClickLinkedin: onClickLinkedin, onClickInstagram: onClickInstagram, onClickYoutube: onClickYoutube, onClickSpotify: onClickSpotify, onClickPodCast: onClickPodCast, customMenu: customMenu }), jsxRuntime.jsxs("div", { style: { width: '100%', display: 'flex', flexDirection: 'column' }, children: [jsxRuntime.jsxs(MenuContainer, { variant: variant, style: {
|
|
14884
|
+
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: variant == 'LXP' ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(MenuMobile, { onClickExit: onClickExit, languageSelected: languageSelected, variant: 'LXP', items: menu, isVisible: isVisibleMenuMobile, setVisible: (e) => setIsVisibleMenuMobile(e), onClickSite: onClickSite, onClickLinkedin: onClickLinkedin, onClickInstagram: onClickInstagram, onClickYoutube: onClickYoutube, onClickSpotify: onClickSpotify, onClickPodCast: onClickPodCast, customMenu: customMenu }), jsxRuntime.jsx(SideMenu, { onClickExit: onClickExit, languageSelected: languageSelected, variant: 'LXP', items: menu, isVisible: isVisibleSideMenu, setVisible: (e) => setIsVisibleSideMenu(e), onClickSite: onClickSite, onClickLinkedin: onClickLinkedin, onClickInstagram: onClickInstagram, onClickYoutube: onClickYoutube, onClickSpotify: onClickSpotify, onClickPodCast: onClickPodCast, customMenu: customMenu }), jsxRuntime.jsxs("div", { style: { width: '100%', display: 'flex', flexDirection: 'column' }, children: [jsxRuntime.jsxs(MenuContainer, { "$variant": variant, style: {
|
|
14919
14885
|
paddingRight: windowSize[0] > 1400 ? '124px' : isMobileVersion ? '12px' : '35px',
|
|
14920
14886
|
paddingLeft: windowSize[0] > 1400 ? '124px' : isMobileVersion ? '12px' : '35px',
|
|
14921
14887
|
...style
|
|
@@ -14931,7 +14897,7 @@ function GlobalMenu({ variant, menu, customMenu, user, search, notification, lan
|
|
|
14931
14897
|
: windowSize[0] > 1500
|
|
14932
14898
|
? '428px'
|
|
14933
14899
|
: '332px'
|
|
14934
|
-
} }))), jsxRuntime.jsxs(MenuContainer, { variant: variant, style: {
|
|
14900
|
+
} }))), jsxRuntime.jsxs(MenuContainer, { "$variant": variant, style: {
|
|
14935
14901
|
height: '100%',
|
|
14936
14902
|
paddingLeft: isMobileVersion ? '0' : windowSize[0] * 0.03 + 'px',
|
|
14937
14903
|
paddingRight: isMobileVersion ? '0' : windowSize[0] * 0.03 + 'px',
|
|
@@ -14980,13 +14946,13 @@ function GlobalMenu({ variant, menu, customMenu, user, search, notification, lan
|
|
|
14980
14946
|
paddingLeft: '10px',
|
|
14981
14947
|
height: '100%',
|
|
14982
14948
|
flexDirection: 'inherit'
|
|
14983
|
-
} }, item.id ? item.id : index)))] })] }), SubMenu && SubMenu.length > 0 && (jsxRuntime.jsx(SubMenuContainer, { variant: variant, marginTop: marginTopSubMenu, style: {
|
|
14949
|
+
} }, item.id ? item.id : index)))] })] }), SubMenu && SubMenu.length > 0 && (jsxRuntime.jsx(SubMenuContainer, { "$variant": variant, "$marginTop": marginTopSubMenu, style: {
|
|
14984
14950
|
paddingRight: windowSize[0] > 1400 ? '124px' : '35px',
|
|
14985
14951
|
paddingLeft: windowSize[0] > 1400 ? '124px' : '35px',
|
|
14986
14952
|
...style
|
|
14987
14953
|
}, children: SubMenu.map((item, index) => {
|
|
14988
14954
|
return (jsxRuntime.jsx(ItemGlobalMenu, { label: item.label, variant: "LXP", type: "submenu", handleOnClick: () => item.onClick('tes'), style: { paddingRight: '10px', paddingLeft: '10px' } }, item.id ? item.id : index));
|
|
14989
|
-
}) }))] }), openNotificationMobile && windowSize[0] < 700 ? (jsxRuntime.jsx(NotificationPopOver, { handleClickMarkRead: notification.handleClickMarkRead, isOpen: openNotificationMobile, anchor: anchorNotification, textEmptyState: notification.textEmptyState, notificationList: updatedNotificationList, textMarkAllAsRead: notification.textMarkAllAsRead, textNotification: notification.textNotification, isMobile: true, setOnAreaPopOver: (e) => setOnAreaPopOver(e), textBack: notification.textBack, handleClickBack: () => handleCloseNotification(), textDeleteAll: notification.textDeleteAll, handleClickDeleteAll: notification.handleClickDeleteAll, isLoading: notification?.isLoading })) : null] })) : variant === 'default' ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(MenuMobile, { onClickExit: onClickExit, languageSelected: languageSelected, variant: 'default', items: menu, isVisible: isVisibleMenuMobile, setVisible: (e) => setIsVisibleMenuMobile(e), onClickSite: onClickSite, onClickLinkedin: onClickLinkedin, onClickInstagram: onClickInstagram, onClickYoutube: onClickYoutube, onClickSpotify: onClickSpotify, onClickPodCast: onClickPodCast, customMenu: customMenu }), jsxRuntime.jsx("div", { style: { width: '100%', display: 'flex', flexDirection: 'column' }, children: jsxRuntime.jsxs(MenuContainer, { variant: variant, style: {
|
|
14955
|
+
}) }))] }), openNotificationMobile && windowSize[0] < 700 ? (jsxRuntime.jsx(NotificationPopOver, { handleClickMarkRead: notification.handleClickMarkRead, isOpen: openNotificationMobile, anchor: anchorNotification, textEmptyState: notification.textEmptyState, notificationList: updatedNotificationList, textMarkAllAsRead: notification.textMarkAllAsRead, textNotification: notification.textNotification, isMobile: true, setOnAreaPopOver: (e) => setOnAreaPopOver(e), textBack: notification.textBack, handleClickBack: () => handleCloseNotification(), textDeleteAll: notification.textDeleteAll, handleClickDeleteAll: notification.handleClickDeleteAll, isLoading: notification?.isLoading })) : null] })) : variant === 'default' ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(MenuMobile, { onClickExit: onClickExit, languageSelected: languageSelected, variant: 'default', items: menu, isVisible: isVisibleMenuMobile, setVisible: (e) => setIsVisibleMenuMobile(e), onClickSite: onClickSite, onClickLinkedin: onClickLinkedin, onClickInstagram: onClickInstagram, onClickYoutube: onClickYoutube, onClickSpotify: onClickSpotify, onClickPodCast: onClickPodCast, customMenu: customMenu }), jsxRuntime.jsx("div", { style: { width: '100%', display: 'flex', flexDirection: 'column' }, children: jsxRuntime.jsxs(MenuContainer, { "$variant": variant, style: {
|
|
14990
14956
|
paddingRight: windowSize[0] > 1400
|
|
14991
14957
|
? '70px'
|
|
14992
14958
|
: windowSize[0] > 1199
|
|
@@ -15048,7 +15014,7 @@ function GlobalMenu({ variant, menu, customMenu, user, search, notification, lan
|
|
|
15048
15014
|
}, children: [jsxRuntime.jsx(IconNotification, { fill: FRSTTheme['colors'].shadeWhite }), ' ', hasNewNotification ? (jsxRuntime.jsxs("div", { style: { marginLeft: '-12px' }, children: [' ', jsxRuntime.jsx(HasNotificationIcon, {}), ' '] })) : null] }), windowSize[0] > 700 ? (jsxRuntime.jsx(NotificationPopOver, { handleClickMarkRead: notification.handleClickMarkRead, isOpen: openNotificationMobile, anchor: anchorNotification, textEmptyState: notification.textEmptyState, notificationList: updatedNotificationList, textMarkAllAsRead: notification.textMarkAllAsRead, textNotification: notification.textNotification, isMobile: false, setOnAreaPopOver: (e) => setOnAreaPopOver(e), textBack: notification.textBack, handleClickBack: () => handleCloseNotification(), textDeleteAll: notification.textDeleteAll, handleClickDeleteAll: notification.handleClickDeleteAll, isLoading: notification?.isLoading })) : null] })), jsxRuntime.jsx(DropdownProfileMenu, { variant: "LXP", user: user, profileMenuText: profileMenuText, handleProfileMenuClick: onClickProfileMenuText, menuItems: user && user.menuItems, isMobileVersion: isMobileVersion, hiddenProfileMenu: hiddenProfileMenu, showProfile: showProfile, style: {
|
|
15049
15015
|
marginLeft: isMobileVersion ? '0px' : '5px',
|
|
15050
15016
|
marginRight: isMobileVersion ? '0px' : '5px'
|
|
15051
|
-
} }), showNavigation && (jsxRuntime.jsxs(Navigation, { onClick: onClickNavigation, children: [jsxRuntime.jsx(HandWave, {}), jsxRuntime.jsx(TextNotification, { children: "Ajuda" })] })), showHelp && (jsxRuntime.jsxs(Help, { onClick: onClickHelp, onMouseEnter: () => setShowTooltipHelp(true), onMouseLeave: () => setShowTooltipHelp(false), children: [jsxRuntime.jsx(HelpIcon, {}), jsxRuntime.jsx(TextNotification, { children: "Suporte" })] })), showTooltipHelp && (jsxRuntime.jsx("div", { id: "cardAjuda", style: { position: 'relative' }, children: jsxRuntime.jsx(TolltipTopbar, { children: "Clique aqui para tirar suas d\u00FAvidas com o nosso suporte." }) }))] })] }) }), openNotificationMobile && windowSize[0] <= 700 ? (jsxRuntime.jsx(NotificationPopOver, { handleClickMarkRead: notification.handleClickMarkRead, isOpen: openNotificationMobile, anchor: anchorNotification, textEmptyState: notification.textEmptyState, notificationList: updatedNotificationList, textMarkAllAsRead: notification.textMarkAllAsRead, textNotification: notification.textNotification, isMobile: true, setOnAreaPopOver: (e) => setOnAreaPopOver(e), textBack: notification.textBack, handleClickBack: () => handleCloseNotification(), textDeleteAll: notification.textDeleteAll, handleClickDeleteAll: notification.handleClickDeleteAll, isLoading: notification?.isLoading })) : null] })) : (jsxRuntime.jsx("div", { style: { width: '100%', display: 'flex', flexDirection: 'column', ...style }, children: jsxRuntime.jsxs(MenuContainer, { variant: variant, style: { ...style, display: 'none' }, children: [jsxRuntime.jsx(WrapperLogo, { onClick: () => onClickLogo(), children: FrstIconFormatted ? FrstIconFormatted : jsxRuntime.jsx(FRSTLogo, { height: "28" }) }), jsxRuntime.jsx(WrapperMenu, { children: menu &&
|
|
15017
|
+
} }), showNavigation && (jsxRuntime.jsxs(Navigation, { onClick: onClickNavigation, children: [jsxRuntime.jsx(HandWave, {}), jsxRuntime.jsx(TextNotification, { children: "Ajuda" })] })), showHelp && (jsxRuntime.jsxs(Help, { onClick: onClickHelp, onMouseEnter: () => setShowTooltipHelp(true), onMouseLeave: () => setShowTooltipHelp(false), children: [jsxRuntime.jsx(HelpIcon, {}), jsxRuntime.jsx(TextNotification, { children: "Suporte" })] })), showTooltipHelp && (jsxRuntime.jsx("div", { id: "cardAjuda", style: { position: 'relative' }, children: jsxRuntime.jsx(TolltipTopbar, { children: "Clique aqui para tirar suas d\u00FAvidas com o nosso suporte." }) }))] })] }) }), openNotificationMobile && windowSize[0] <= 700 ? (jsxRuntime.jsx(NotificationPopOver, { handleClickMarkRead: notification.handleClickMarkRead, isOpen: openNotificationMobile, anchor: anchorNotification, textEmptyState: notification.textEmptyState, notificationList: updatedNotificationList, textMarkAllAsRead: notification.textMarkAllAsRead, textNotification: notification.textNotification, isMobile: true, setOnAreaPopOver: (e) => setOnAreaPopOver(e), textBack: notification.textBack, handleClickBack: () => handleCloseNotification(), textDeleteAll: notification.textDeleteAll, handleClickDeleteAll: notification.handleClickDeleteAll, isLoading: notification?.isLoading })) : null] })) : (jsxRuntime.jsx("div", { style: { width: '100%', display: 'flex', flexDirection: 'column', ...style }, children: jsxRuntime.jsxs(MenuContainer, { "$variant": variant, style: { ...style, display: 'none' }, children: [jsxRuntime.jsx(WrapperLogo, { onClick: () => onClickLogo(), children: FrstIconFormatted ? FrstIconFormatted : jsxRuntime.jsx(FRSTLogo, { height: "28" }) }), jsxRuntime.jsx(WrapperMenu, { children: menu &&
|
|
15052
15018
|
menu.length > 0 &&
|
|
15053
15019
|
menu.map((item, index) => {
|
|
15054
15020
|
return (jsxRuntime.jsx(ItemGlobalMenu, { label: item.label, variant: "default", type: "menu", handleOnClick: () => item.onClick('tes'), style: { paddingRight: '10px', paddingLeft: '10px' } }, item.id ? item.id : index));
|
|
@@ -15061,7 +15027,7 @@ function MenuMobile({ items, isVisible, setVisible, variant, languageSelected, o
|
|
|
15061
15027
|
setOptionsSubmenu(items);
|
|
15062
15028
|
setTimeout(() => setSubMenuIsVisible(true), 200);
|
|
15063
15029
|
};
|
|
15064
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(SubMenuMobile, { onClickExit: onClickExit, items: optionsSubMenu, isVisible: subMenuIsVisible, setVisible: setSubMenuIsVisible, variant: variant, languageSelected: languageSelected, onClickSite: onClickSite, onClickLinkedin: onClickLinkedin, onClickInstagram: onClickInstagram, onClickYoutube: onClickYoutube, onClickSpotify: onClickSpotify, onClickPodCast: onClickPodCast, customMenu: customMenu }), jsxRuntime.jsx(MenuMobile$1, { isVisible: isVisible, children: variant === 'LXP' || variant === 'custom' ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(ItemMenuMobile, { onClick: () => setVisible(false), children: jsxRuntime.jsxs("span", { children: [' ', jsxRuntime.jsx(BackArrow, { fill: "white" }), " \u00A0 ", languageSelected === 'en-US' ? 'Back' : 'Voltar'] }) }), items &&
|
|
15030
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(SubMenuMobile, { onClickExit: onClickExit, items: optionsSubMenu, isVisible: subMenuIsVisible, setVisible: setSubMenuIsVisible, variant: variant, languageSelected: languageSelected, onClickSite: onClickSite, onClickLinkedin: onClickLinkedin, onClickInstagram: onClickInstagram, onClickYoutube: onClickYoutube, onClickSpotify: onClickSpotify, onClickPodCast: onClickPodCast, customMenu: customMenu }), jsxRuntime.jsx(MenuMobile$1, { "$isVisible": isVisible, children: variant === 'LXP' || variant === 'custom' ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(ItemMenuMobile, { onClick: () => setVisible(false), children: jsxRuntime.jsxs("span", { children: [' ', jsxRuntime.jsx(BackArrow, { fill: "white" }), " \u00A0 ", languageSelected === 'en-US' ? 'Back' : 'Voltar'] }) }), items &&
|
|
15065
15031
|
items.length > 0 &&
|
|
15066
15032
|
items.map((item, index) => {
|
|
15067
15033
|
if (item.label == 'Criar conteúdo')
|
|
@@ -15088,7 +15054,7 @@ function SubMenuMobile({ items, isVisible, setVisible, variant, languageSelected
|
|
|
15088
15054
|
React.useEffect(() => {
|
|
15089
15055
|
setOptions(items);
|
|
15090
15056
|
}, [items]);
|
|
15091
|
-
return (jsxRuntime.jsx(MenuMobile$1, { isVisible: isVisible, style: { zIndex: '10002' }, children: variant === 'LXP' ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { children: options &&
|
|
15057
|
+
return (jsxRuntime.jsx(MenuMobile$1, { "$isVisible": isVisible, style: { zIndex: '10002' }, children: variant === 'LXP' ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { children: options &&
|
|
15092
15058
|
options.length > 0 &&
|
|
15093
15059
|
options.map((item, index) => {
|
|
15094
15060
|
if (item.label == 'Criar conteúdo')
|
|
@@ -15113,7 +15079,7 @@ function SideMenu({ items, isVisible, setVisible, variant, languageSelected, onC
|
|
|
15113
15079
|
setOptionsSubmenu(items);
|
|
15114
15080
|
setTimeout(() => setSubMenuIsVisible(true), 200);
|
|
15115
15081
|
};
|
|
15116
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(SideMenu$1, { isVisible: isVisible, children: variant === 'LXP' ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(ItemSideMenu, { onClick: () => setVisible(false), children: jsxRuntime.jsxs("span", { children: [' ', jsxRuntime.jsx(BackArrow, { fill: "white" }), " \u00A0 ", languageSelected === 'en-US' ? 'Back' : 'Voltar'] }) }), items &&
|
|
15082
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(SideMenu$1, { "$isVisible": isVisible, children: variant === 'LXP' ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(ItemSideMenu, { onClick: () => setVisible(false), children: jsxRuntime.jsxs("span", { children: [' ', jsxRuntime.jsx(BackArrow, { fill: "white" }), " \u00A0 ", languageSelected === 'en-US' ? 'Back' : 'Voltar'] }) }), items &&
|
|
15117
15083
|
items.length > 0 &&
|
|
15118
15084
|
items.map((item, index) => {
|
|
15119
15085
|
if (item.label == 'Criar conteúdo')
|
|
@@ -16792,7 +16758,7 @@ const DropDownHeaderIcon = styled__default["default"]('div') `
|
|
|
16792
16758
|
justify-content: center;
|
|
16793
16759
|
transition: transform 0.1s ease-in-out;
|
|
16794
16760
|
|
|
16795
|
-
${({ open }) => open === true && styled.css `
|
|
16761
|
+
${({ $open }) => $open === true && styled.css `
|
|
16796
16762
|
transform: rotate(180deg);
|
|
16797
16763
|
`}
|
|
16798
16764
|
`;
|
|
@@ -16845,7 +16811,7 @@ function SelectLXP$1({ placeholder, defaultValue, children, onChange, loading })
|
|
|
16845
16811
|
return (jsxRuntime.jsx("div", { children: jsxRuntime.jsxs(DropDownContainer, { ref: wrapperRef, children: [jsxRuntime.jsx(EventOverlay, { onClick: toggle }), jsxRuntime.jsxs(DropDownHeader, { children: [loading ?
|
|
16846
16812
|
jsxRuntime.jsx("p", { children: "Carregando dados..." })
|
|
16847
16813
|
:
|
|
16848
|
-
selectedOption ? jsxRuntime.jsx(SelectedOption, { children: selectedOption }) : jsxRuntime.jsx("p", { children: placeholder }), jsxRuntime.jsx(DropDownHeaderIcon, { open: isOpen, children: jsxRuntime.jsx(ArrowIcon$1, {}) })] }), isOpen && (jsxRuntime.jsx(DropDownListContainer, { children: jsxRuntime.jsx(DropDownList, { children: jsxRuntime.jsx("div", { onClick: handleChange, children: jsxRuntime.jsx(SelectLXPContext.Provider, { value: { selected: selectedOptionValue }, children: children }) }) }) }))] }) }));
|
|
16814
|
+
selectedOption ? jsxRuntime.jsx(SelectedOption, { children: selectedOption }) : jsxRuntime.jsx("p", { children: placeholder }), jsxRuntime.jsx(DropDownHeaderIcon, { "$open": isOpen, children: jsxRuntime.jsx(ArrowIcon$1, {}) })] }), isOpen && (jsxRuntime.jsx(DropDownListContainer, { children: jsxRuntime.jsx(DropDownList, { children: jsxRuntime.jsx("div", { onClick: handleChange, children: jsxRuntime.jsx(SelectLXPContext.Provider, { value: { selected: selectedOptionValue }, children: children }) }) }) }))] }) }));
|
|
16849
16815
|
}
|
|
16850
16816
|
|
|
16851
16817
|
const ListItem = styled__default["default"]("li") `
|
|
@@ -16863,13 +16829,13 @@ const ListItem = styled__default["default"]("li") `
|
|
|
16863
16829
|
align-items: center;
|
|
16864
16830
|
cursor: pointer;
|
|
16865
16831
|
|
|
16866
|
-
${props => props
|
|
16832
|
+
${props => props.$disabled === true && styled.css `
|
|
16867
16833
|
cursor: not-allowed;
|
|
16868
16834
|
background-color: #e5e5e5;
|
|
16869
16835
|
opacity: 0.3;
|
|
16870
16836
|
`}
|
|
16871
16837
|
|
|
16872
|
-
${props => props
|
|
16838
|
+
${props => props.$selected === true && styled.css `
|
|
16873
16839
|
background-color: #e5e5e5;
|
|
16874
16840
|
cursor: pointer;
|
|
16875
16841
|
opacity: 1;
|
|
@@ -16880,7 +16846,7 @@ const ListItem = styled__default["default"]("li") `
|
|
|
16880
16846
|
}
|
|
16881
16847
|
`;
|
|
16882
16848
|
function SelectLXPItem({ value, label, selected, handleSelect, disabled }) {
|
|
16883
|
-
return (jsxRuntime.jsx(SelectLXPContext.Consumer, { children: ({ selected }) => (jsxRuntime.jsx(ListItem, { disabled: disabled, selected: selected === value, value: value, onClick: handleSelect, children: label })) }));
|
|
16849
|
+
return (jsxRuntime.jsx(SelectLXPContext.Consumer, { children: ({ selected }) => (jsxRuntime.jsx(ListItem, { "$disabled": disabled, "$selected": selected === value, value: value, onClick: handleSelect, children: label })) }));
|
|
16884
16850
|
}
|
|
16885
16851
|
|
|
16886
16852
|
function SelectLXP({ placeholder, valueSelect, handleValueSelect, listItems }) {
|
|
@@ -17460,9 +17426,9 @@ const CardContainer$2 = styled__default["default"](_.Card) `
|
|
|
17460
17426
|
const HeaderImage = styled__default["default"](_.Box) `
|
|
17461
17427
|
width: 320px;
|
|
17462
17428
|
height: 200px;
|
|
17463
|
-
cursor: ${({ notstarted }) => notstarted ? 'no-drop' : 'pointer'};
|
|
17464
|
-
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)), url('${({ image }) => image}');
|
|
17465
|
-
filter: grayscale(${({ notstarted }) => notstarted ? '1' : '0'});
|
|
17429
|
+
cursor: ${({ $notstarted }) => $notstarted ? 'no-drop' : 'pointer'};
|
|
17430
|
+
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)), url('${({ $image }) => $image}');
|
|
17431
|
+
filter: grayscale(${({ $notstarted }) => $notstarted ? '1' : '0'});
|
|
17466
17432
|
background-size: contain;
|
|
17467
17433
|
`;
|
|
17468
17434
|
const MyBox = styled__default["default"](_.Box) `
|
|
@@ -17471,14 +17437,14 @@ const MyBox = styled__default["default"](_.Box) `
|
|
|
17471
17437
|
padding-top: 12px;
|
|
17472
17438
|
`;
|
|
17473
17439
|
const MyCardContent = styled__default["default"](_.CardContent) `
|
|
17474
|
-
cursor: ${({ notstarted }) => notstarted ? 'no-drop' : 'pointer'};
|
|
17440
|
+
cursor: ${({ $notstarted }) => $notstarted ? 'no-drop' : 'pointer'};
|
|
17475
17441
|
height: 100%;
|
|
17476
17442
|
display: flex;
|
|
17477
17443
|
flex-direction: column;
|
|
17478
|
-
justify-content: ${({ hasmentor }) => hasmentor ? 'space-between' : 'flex-start'};
|
|
17444
|
+
justify-content: ${({ $hasmentor }) => $hasmentor ? 'space-between' : 'flex-start'};
|
|
17479
17445
|
`;
|
|
17480
17446
|
const WrapperDate = styled__default["default"].div `
|
|
17481
|
-
display: ${({ notstarted }) => notstarted ? 'flex' : 'none'};
|
|
17447
|
+
display: ${({ $notstarted }) => $notstarted ? 'flex' : 'none'};
|
|
17482
17448
|
margin-bottom: 7px;
|
|
17483
17449
|
`;
|
|
17484
17450
|
|
|
@@ -17507,12 +17473,12 @@ function CardTrail(props) {
|
|
|
17507
17473
|
return +true;
|
|
17508
17474
|
};
|
|
17509
17475
|
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(CardContainer$2, { children: [!props?.notStarted && props.variant == 'primary' &&
|
|
17510
|
-
jsxRuntime.jsx(PercentageProgress, { progress: props.progress }), jsxRuntime.jsx(HeaderImage, { onClick: redirectToD2L, image: props.bannerImage, notstarted: +props?.notStarted }), jsxRuntime.jsx(MyBox, { children: jsxRuntime.jsxs(MyCardContent, { notstarted: +props?.notStarted, hasmentor: getAlign(), children: [jsxRuntime.jsx(TitleCard, { onClick: redirectToD2L, children: props.name }), jsxRuntime.jsx(TextDescription, { onClick: redirectToD2L, children: props.description }), props.variant == 'primary' ?
|
|
17476
|
+
jsxRuntime.jsx(PercentageProgress, { progress: props.progress }), jsxRuntime.jsx(HeaderImage, { onClick: redirectToD2L, "$image": props.bannerImage, "$notstarted": +props?.notStarted }), jsxRuntime.jsx(MyBox, { children: jsxRuntime.jsxs(MyCardContent, { "$notstarted": +props?.notStarted, "$hasmentor": getAlign(), children: [jsxRuntime.jsx(TitleCard, { onClick: redirectToD2L, children: props.name }), jsxRuntime.jsx(TextDescription, { onClick: redirectToD2L, children: props.description }), props.variant == 'primary' ?
|
|
17511
17477
|
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [props.start &&
|
|
17512
|
-
jsxRuntime.jsxs(WrapperDate, { onClick: redirectToD2L, notstarted: +props?.notStarted, children: [jsxRuntime.jsxs("b", { children: [props.labels?.dateStart ? props.labels?.dateStart : 'Data de início', ":\u00A0"] }), props.start] }), props.mentor?.name &&
|
|
17478
|
+
jsxRuntime.jsxs(WrapperDate, { onClick: redirectToD2L, "$notstarted": +props?.notStarted, children: [jsxRuntime.jsxs("b", { children: [props.labels?.dateStart ? props.labels?.dateStart : 'Data de início', ":\u00A0"] }), props.start] }), props.mentor?.name &&
|
|
17513
17479
|
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(TitleMentoring, { onClick: redirectToD2L, children: props.labels?.mentor ? props.labels?.mentor : 'Mentor(a)' }), jsxRuntime.jsx(MentorComponent, { mentor: props.mentor, notstarted: +props?.notStarted })] })] })
|
|
17514
17480
|
:
|
|
17515
|
-
jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs(WrapperDate, { onClick: redirectToD2L, notstarted: +true, style: { margin: '0px' }, children: [jsxRuntime.jsxs("b", { children: [props.labels?.dateStart ? props.labels?.dateStart : 'Data de início', ":\u00A0"] }), props.start] }) })] }) })] }) }));
|
|
17481
|
+
jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs(WrapperDate, { onClick: redirectToD2L, "$notstarted": +true, style: { margin: '0px' }, children: [jsxRuntime.jsxs("b", { children: [props.labels?.dateStart ? props.labels?.dateStart : 'Data de início', ":\u00A0"] }), props.start] }) })] }) })] }) }));
|
|
17516
17482
|
}
|
|
17517
17483
|
function MentorComponent(props) {
|
|
17518
17484
|
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs(GridFooter, { container: true, spacing: 2, onClick: () => { props.mentor.linkedin && window.open(`${props.mentor.linkedin}`, '_blank'); }, style: { margin: '0px', cursor: 'pointer' }, children: [jsxRuntime.jsx(Avatar, { size: "32px", alt: "Mentoring", src: props.mentor?.avatar ? props.mentor.avatar : "https://certificates-mentor.s3.amazonaws.com/frst-avatar-default.png", disabled: props?.notStarted }), jsxRuntime.jsx(GridNameMentoring, { item: true, children: jsxRuntime.jsx(NameMentoring, { children: props.mentor?.name }) }), props.mentor.linkedin && jsxRuntime.jsx(LinkedinIconMentor, {})] }) });
|
|
@@ -17534,7 +17500,7 @@ const WrapperCard$4 = styled__default["default"].div `
|
|
|
17534
17500
|
flex-direction: column;
|
|
17535
17501
|
width: 282px;
|
|
17536
17502
|
height: 445px;
|
|
17537
|
-
background: ${({ theme, active }) => active ? theme.colors.neutralsGrey9 : theme.colors.shadeWhite};
|
|
17503
|
+
background: ${({ theme, $active }) => $active ? theme.colors.neutralsGrey9 : theme.colors.shadeWhite};
|
|
17538
17504
|
border-radius: 8px;
|
|
17539
17505
|
|
|
17540
17506
|
overflow: hidden;
|
|
@@ -17575,10 +17541,10 @@ const TagStep = styled__default["default"].div `
|
|
|
17575
17541
|
align-self: flex-end;
|
|
17576
17542
|
padding: 4px 15px;
|
|
17577
17543
|
border-radius: 0px 8px;
|
|
17578
|
-
|
|
17544
|
+
|
|
17579
17545
|
height: 24px;
|
|
17580
17546
|
z-index: 2 ;
|
|
17581
|
-
${({ variant, theme }) => getVariantTagStyle(variant, theme)};
|
|
17547
|
+
${({ $variant, theme }) => getVariantTagStyle($variant, theme)};
|
|
17582
17548
|
`;
|
|
17583
17549
|
const BannerCard = styled__default["default"].img `
|
|
17584
17550
|
margin-top: -24px;
|
|
@@ -17592,13 +17558,13 @@ const StepName = styled__default["default"].div `
|
|
|
17592
17558
|
color: white;
|
|
17593
17559
|
-webkit-text-stroke: 0.5px black;
|
|
17594
17560
|
text-shadow: 2px 0 0 black, 0 2px 0 black,-2px 0 0 black,0 -2px 0 black;
|
|
17595
|
-
|
|
17561
|
+
|
|
17596
17562
|
display: flex;
|
|
17597
17563
|
justify-content: center;
|
|
17598
17564
|
border: 2px dashed #FFF;
|
|
17599
17565
|
|
|
17600
17566
|
z-index: 2;
|
|
17601
|
-
${({ variant }) => variant != 'completed' && variant != 'srg' &&
|
|
17567
|
+
${({ $variant }) => $variant != 'completed' && $variant != 'srg' &&
|
|
17602
17568
|
`margin-top: -60px;
|
|
17603
17569
|
margin-bottom: 16px;`}
|
|
17604
17570
|
padding: 0px 12px 0px 12px;
|
|
@@ -17697,7 +17663,7 @@ const ButtonAction = styled__default["default"].div `
|
|
|
17697
17663
|
color: ${({ theme }) => theme.colors.linkOnfocus};
|
|
17698
17664
|
|
|
17699
17665
|
&:nth-child(1) {
|
|
17700
|
-
${({ variant, theme }) => variant != 'completed' && variant != 'srg' && `
|
|
17666
|
+
${({ $variant, theme }) => $variant != 'completed' && $variant != 'srg' && `
|
|
17701
17667
|
border-right: 1px solid ${theme.colors.neutralsGrey5};
|
|
17702
17668
|
`}
|
|
17703
17669
|
}
|
|
@@ -17778,7 +17744,7 @@ styled__default["default"].p `
|
|
|
17778
17744
|
font-size: 16px;
|
|
17779
17745
|
`;
|
|
17780
17746
|
const MenuCustom = styled__default["default"](Menu__default["default"]) `
|
|
17781
|
-
margin-left: ${({ step }) => step == 'completed' ? '-64px' : '-84px'} ;
|
|
17747
|
+
margin-left: ${({ $step }) => $step == 'completed' ? '-64px' : '-84px'} ;
|
|
17782
17748
|
margin-top: 10px;
|
|
17783
17749
|
|
|
17784
17750
|
& .MuiPaper-root {
|
|
@@ -17869,16 +17835,16 @@ function ChallengeCard({ variant, description, language, onClickView, onClickNew
|
|
|
17869
17835
|
setActiveClick(false);
|
|
17870
17836
|
}, 700);
|
|
17871
17837
|
};
|
|
17872
|
-
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(WrapperCard$4, { style: { ...style }, active: activeClick, children: [jsxRuntime.jsxs(TagStep, { onClick: () => handleClick(), variant: variant, children: [jsxRuntime.jsx(TagText, { children: label.tagStep[variant] }), variant == 'completed' &&
|
|
17873
|
-
jsxRuntime.jsx("span", { style: { marginLeft: '10px', height: '100%' }, children: jsxRuntime.jsx(CheckInCicle$1, { customColor_1: "transparent", height: '16', width: '16' }) })] }), jsxRuntime.jsxs(WrapperBanner$1, { onClick: () => handleClick(), children: [jsxRuntime.jsx(BannerCard, { src: BannersSRC[variant] }), jsxRuntime.jsx(StepName, { variant: variant, children: label.nameStep[variant] })] }), jsxRuntime.jsxs(ContentCard$1, { children: [jsxRuntime.jsxs(WrapperHeader$1, { children: [jsxRuntime.jsx(TitleProject, { onClick: () => handleClick(), children: variant == 'srg' ? 'Space Race Game' : label.project }), variant != 'srg' && onClickContinue && onClickDelete &&
|
|
17838
|
+
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(WrapperCard$4, { style: { ...style }, "$active": activeClick, children: [jsxRuntime.jsxs(TagStep, { onClick: () => handleClick(), "$variant": variant, children: [jsxRuntime.jsx(TagText, { children: label.tagStep[variant] }), variant == 'completed' &&
|
|
17839
|
+
jsxRuntime.jsx("span", { style: { marginLeft: '10px', height: '100%' }, children: jsxRuntime.jsx(CheckInCicle$1, { customColor_1: "transparent", height: '16', width: '16' }) })] }), jsxRuntime.jsxs(WrapperBanner$1, { onClick: () => handleClick(), children: [jsxRuntime.jsx(BannerCard, { src: BannersSRC[variant] }), jsxRuntime.jsx(StepName, { "$variant": variant, children: label.nameStep[variant] })] }), jsxRuntime.jsxs(ContentCard$1, { children: [jsxRuntime.jsxs(WrapperHeader$1, { children: [jsxRuntime.jsx(TitleProject, { onClick: () => handleClick(), children: variant == 'srg' ? 'Space Race Game' : label.project }), variant != 'srg' && onClickContinue && onClickDelete &&
|
|
17874
17840
|
jsxRuntime.jsx(Dots, { children: jsxRuntime.jsx(MoreVerticalMenu, { textContinue: label.continue, textDelete: label.delete, textEdit: label.edit, handleContinue: () => onClickContinue(), handleDelete: () => onClickDelete(), handleEdit: () => onClickEdit(), variant: variant }) })] }), variant != 'srg' ?
|
|
17875
17841
|
jsxRuntime.jsx(DescriptionProject, { onClick: () => handleClick(), children: resumeString(description, 73) })
|
|
17876
17842
|
:
|
|
17877
|
-
jsxRuntime.jsx(DescriptionSRG$1, { onClick: () => handleClick(), children: label.srgDecription }), jsxRuntime.jsxs(ButtonActionWrapper, { children: [jsxRuntime.jsx(ButtonAction, { onClick: () => handleClick(), variant: variant, children: variant == 'srg' ?
|
|
17843
|
+
jsxRuntime.jsx(DescriptionSRG$1, { onClick: () => handleClick(), children: label.srgDecription }), jsxRuntime.jsxs(ButtonActionWrapper, { children: [jsxRuntime.jsx(ButtonAction, { onClick: () => handleClick(), "$variant": variant, children: variant == 'srg' ?
|
|
17878
17844
|
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Plus, {}), jsxRuntime.jsx("span", { style: { marginLeft: '12px' }, children: label.newProject })] })
|
|
17879
17845
|
:
|
|
17880
17846
|
label.view }), variant !== 'srg' && variant !== 'completed' && onClickContinue &&
|
|
17881
|
-
jsxRuntime.jsx(ButtonAction, { onClick: () => onClickContinue(), variant: variant, children: jsxRuntime.jsx("span", { style: { marginLeft: '12px' }, children: label.continue }) })] })] })] }) }));
|
|
17847
|
+
jsxRuntime.jsx(ButtonAction, { onClick: () => onClickContinue(), "$variant": variant, children: jsxRuntime.jsx("span", { style: { marginLeft: '12px' }, children: label.continue }) })] })] })] }) }));
|
|
17882
17848
|
}
|
|
17883
17849
|
const resumeString = (str, limit) => {
|
|
17884
17850
|
if (!str)
|
|
@@ -18011,7 +17977,7 @@ function MoreVerticalMenu({ textContinue, textDelete, textEdit, handleContinue,
|
|
|
18011
17977
|
padding: 0,
|
|
18012
17978
|
display: 'flex',
|
|
18013
17979
|
justifyContent: 'center'
|
|
18014
|
-
}, children: jsxRuntime.jsx(MoreDotsVertical, {}) }), jsxRuntime.jsxs(MenuCustom, { id: "basic-menu", anchorOrigin: { vertical: 'bottom', horizontal: 'left' }, transformOrigin: { vertical: 'top', horizontal: 'left' }, anchorEl: anchorEl, open: open, onClose: handleClose, step: variant, children: [variant !== 'completed' &&
|
|
17980
|
+
}, children: jsxRuntime.jsx(MoreDotsVertical, {}) }), jsxRuntime.jsxs(MenuCustom, { id: "basic-menu", anchorOrigin: { vertical: 'bottom', horizontal: 'left' }, transformOrigin: { vertical: 'top', horizontal: 'left' }, anchorEl: anchorEl, open: open, onClose: handleClose, "$step": variant, children: [variant !== 'completed' &&
|
|
18015
17981
|
jsxRuntime.jsxs(MenuItemCustom, { onClick: () => handleSelect([true, false, false]), style: { color: activeClick[0] ? '#663366' : '#0645AD', borderBottom: '1px solid #EBEBEB' }, children: [jsxRuntime.jsx(FowardArrow, { width: '16', height: '16', fill: activeClick[0] ? '#663366' : '#0645AD' }), jsxRuntime.jsx(TextOption, { children: textContinue })] }), jsxRuntime.jsxs(MenuItemCustom, { onClick: () => handleSelect([false, true, false]), style: { color: activeClick[0] ? '#663366' : '#0645AD', borderBottom: '1px solid #EBEBEB' }, children: [jsxRuntime.jsx(EditIcon, { width: '16', height: '16', fill: activeClick[0] ? '#663366' : '#0645AD' }), jsxRuntime.jsx(TextOption, { children: textEdit })] }), jsxRuntime.jsxs(MenuItemCustom, { onClick: () => handleSelect([false, false, true]), style: { color: activeClick[1] ? '#C00F00' : '#FF0000' }, children: [jsxRuntime.jsx(TrashIcon, { fill: activeClick[1] ? '#C00F00' : '#FF0000', width: '13', height: '16' }), jsxRuntime.jsx(TextOption, { children: textDelete })] })] })] }));
|
|
18016
17982
|
}
|
|
18017
17983
|
|
|
@@ -22321,7 +22287,7 @@ const Name = styled__default["default"].div `
|
|
|
22321
22287
|
font-family: 'PT Sans';
|
|
22322
22288
|
font-style: normal;
|
|
22323
22289
|
font-weight: 700;
|
|
22324
|
-
font-size: ${({ large }) => large ? '20px' : '16px'};
|
|
22290
|
+
font-size: ${({ $large }) => $large ? '20px' : '16px'};
|
|
22325
22291
|
line-height: 110%;
|
|
22326
22292
|
|
|
22327
22293
|
color: ${({ theme }) => theme.colors.neutralsGrey1};
|
|
@@ -22330,7 +22296,7 @@ const Text = styled__default["default"].div `
|
|
|
22330
22296
|
font-family: 'PT Sans';
|
|
22331
22297
|
font-style: normal;
|
|
22332
22298
|
font-weight: 400;
|
|
22333
|
-
font-size: ${({ large }) => large ? '16px' : '12px'};
|
|
22299
|
+
font-size: ${({ $large }) => $large ? '16px' : '12px'};
|
|
22334
22300
|
line-height: 16px;
|
|
22335
22301
|
|
|
22336
22302
|
color: ${({ theme }) => theme.colors.neutralsGrey3};
|
|
@@ -22344,14 +22310,14 @@ const WrapperHandle = styled__default["default"].div `
|
|
|
22344
22310
|
display: flex;
|
|
22345
22311
|
justify-content: center;
|
|
22346
22312
|
align-items: center;
|
|
22347
|
-
height: ${({ large }) => large ? '32px' : '20px'};
|
|
22348
|
-
width: ${({ large }) => large ? '32px' : '20px'};
|
|
22313
|
+
height: ${({ $large }) => $large ? '32px' : '20px'};
|
|
22314
|
+
width: ${({ $large }) => $large ? '32px' : '20px'};
|
|
22349
22315
|
border-radius: 50%;
|
|
22350
22316
|
background: rgba(255, 255, 255, 0.5);
|
|
22351
22317
|
margin-left: 8px;
|
|
22352
22318
|
margin-bottom: 3px;
|
|
22353
22319
|
cursor: pointer;
|
|
22354
|
-
padding: ${({ large }) => large ? '7px' : '5px'};
|
|
22320
|
+
padding: ${({ $large }) => $large ? '7px' : '5px'};
|
|
22355
22321
|
|
|
22356
22322
|
&:hover{
|
|
22357
22323
|
background: rgba(255, 255, 255, 0.7);
|
|
@@ -22359,7 +22325,7 @@ const WrapperHandle = styled__default["default"].div `
|
|
|
22359
22325
|
`;
|
|
22360
22326
|
|
|
22361
22327
|
function HeaderUser({ avatar, name, text, onClick, large, showHandleButtons, onClickEdit, onClickDelete, }) {
|
|
22362
|
-
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(Wrapper$2, { onClick: () => !!(onClick) ? onClick() : {}, children: [jsxRuntime.jsx(Avatar, { size: large ? '56px' : '32px', src: avatar?.src, alt: avatar?.alt }), jsxRuntime.jsxs(WrapperText, { style: { justifyContent: 'space-around' }, children: [jsxRuntime.jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center' }, children: [jsxRuntime.jsx(Name, { large: large, children: name }), showHandleButtons ? jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(WrapperHandle, { onClick: () => onClickEdit ? onClickEdit() : {}, large: large, children: jsxRuntime.jsx(EditIcon, { fill: '#444444' }) }), jsxRuntime.jsx(WrapperHandle, { onClick: () => onClickDelete ? onClickDelete() : {}, large: large, children: jsxRuntime.jsx(TrashIconNew, { fill: '#444444' }) })] }) : null] }), jsxRuntime.jsx(Text, { large: large, children: text })] })] }) }));
|
|
22328
|
+
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(Wrapper$2, { onClick: () => !!(onClick) ? onClick() : {}, children: [jsxRuntime.jsx(Avatar, { size: large ? '56px' : '32px', src: avatar?.src, alt: avatar?.alt }), jsxRuntime.jsxs(WrapperText, { style: { justifyContent: 'space-around' }, children: [jsxRuntime.jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center' }, children: [jsxRuntime.jsx(Name, { "$large": large, children: name }), showHandleButtons ? jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(WrapperHandle, { onClick: () => onClickEdit ? onClickEdit() : {}, "$large": large, children: jsxRuntime.jsx(EditIcon, { fill: '#444444' }) }), jsxRuntime.jsx(WrapperHandle, { onClick: () => onClickDelete ? onClickDelete() : {}, "$large": large, children: jsxRuntime.jsx(TrashIconNew, { fill: '#444444' }) })] }) : null] }), jsxRuntime.jsx(Text, { "$large": large, children: text })] })] }) }));
|
|
22363
22329
|
}
|
|
22364
22330
|
|
|
22365
22331
|
const InputWrapper = styled__default["default"].div `
|