magneto365.ui 2.57.4 → 2.58.1
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/assets/4cf4b85aba741f29.svg +11 -0
- package/dist/cjs/css/magneto.ui.lib.min.css +1 -1
- package/dist/cjs/index.js +53 -41
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/UI/atoms/Text/Text.interface.d.ts +2 -1
- package/dist/cjs/types/components/UI/molecules/Actions/Actions.interface.d.ts +4 -0
- package/dist/cjs/types/components/UI/molecules/AlertJobStatus/AlertJobStatus.interface.d.ts +11 -0
- package/dist/cjs/types/components/UI/molecules/JobActions/JobActions.interface.d.ts +5 -0
- package/dist/cjs/types/components/UI/molecules/JobApplyCard/JobApplyCard.interface.d.ts +4 -0
- package/dist/cjs/types/components/UI/molecules/JobCompanyHeader/JobCompanyHeader.interface.d.ts +6 -0
- package/dist/cjs/types/components/UI/organism/JobDetailsDrawer/JobDetailsDrawer.interface.d.ts +10 -1
- package/dist/cjs/types/components/UI/organism/MobileJobDetailsActionsBar/MobileJobDetailsActionsBar.interface.d.ts +4 -0
- package/dist/cjs/types/components/UI/organism/MobileJobDetailsDrawer/MobileJobDetailsDrawer.interface.d.ts +10 -2
- package/dist/cjs/types/constants/icons.constants.d.ts +1 -0
- package/dist/esm/css/magneto.ui.lib.min.css +1 -1
- package/dist/esm/index.js +53 -41
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/UI/atoms/Text/Text.interface.d.ts +2 -1
- package/dist/esm/types/components/UI/molecules/Actions/Actions.interface.d.ts +4 -0
- package/dist/esm/types/components/UI/molecules/AlertJobStatus/AlertJobStatus.interface.d.ts +11 -0
- package/dist/esm/types/components/UI/molecules/JobActions/JobActions.interface.d.ts +5 -0
- package/dist/esm/types/components/UI/molecules/JobApplyCard/JobApplyCard.interface.d.ts +4 -0
- package/dist/esm/types/components/UI/molecules/JobCompanyHeader/JobCompanyHeader.interface.d.ts +6 -0
- package/dist/esm/types/components/UI/organism/JobDetailsDrawer/JobDetailsDrawer.interface.d.ts +10 -1
- package/dist/esm/types/components/UI/organism/MobileJobDetailsActionsBar/MobileJobDetailsActionsBar.interface.d.ts +4 -0
- package/dist/esm/types/components/UI/organism/MobileJobDetailsDrawer/MobileJobDetailsDrawer.interface.d.ts +10 -2
- package/dist/esm/types/constants/icons.constants.d.ts +1 -0
- package/dist/index.d.ts +96 -47
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -241,7 +241,7 @@ var useMediaQuery = function (defaultValue, options) {
|
|
|
241
241
|
|
|
242
242
|
var style$10 = {"magneto-ui-icon":"mg_icon_magneto-ui-icon_4jxnv","magneto-ui-hover":"mg_icon_magneto-ui-hover_4jxnv"};
|
|
243
243
|
|
|
244
|
-
var Component$
|
|
244
|
+
var Component$2A = function (_a) {
|
|
245
245
|
var fallbackIcon = _a.fallbackIcon, _b = _a.showDefaultFallback, showDefaultFallback = _b === void 0 ? true : _b, icon = _a.icon, _c = _a.hover, hover = _c === void 0 ? false : _c, size = _a.size, className = _a.className, alt = _a.alt;
|
|
246
246
|
var _d = useState(false), imageError = _d[0], setImageError = _d[1];
|
|
247
247
|
var handleError = function () {
|
|
@@ -257,7 +257,7 @@ var Component$2z = function (_a) {
|
|
|
257
257
|
/**
|
|
258
258
|
* Atom UI component of Icon for general purpose
|
|
259
259
|
*/
|
|
260
|
-
var IconItem = Component$
|
|
260
|
+
var IconItem = Component$2A;
|
|
261
261
|
|
|
262
262
|
var styles$2m = {"avatarComponent":"mg_avatar_avatarComponent_1upgt","magneto-ui-default-avatar":"mg_avatar_magneto-ui-default-avatar_1upgt"};
|
|
263
263
|
|
|
@@ -317,6 +317,8 @@ var Calendar1 = "https://static.magneto365.com/lib/assets/0b8544276681f8c8.svg";
|
|
|
317
317
|
|
|
318
318
|
var Checked = "https://static.magneto365.com/lib/assets/530e8da9d7699174.svg";
|
|
319
319
|
|
|
320
|
+
var Checked2 = "https://static.magneto365.com/lib/assets/4cf4b85aba741f29.svg";
|
|
321
|
+
|
|
320
322
|
var Clock = "https://static.magneto365.com/lib/assets/4219aa1f11a79041.svg";
|
|
321
323
|
|
|
322
324
|
var ClockLine = "https://static.magneto365.com/lib/assets/035d90cb55b544da.svg";
|
|
@@ -527,7 +529,7 @@ var Youtube = "https://static.magneto365.com/lib/assets/f78dbede1bdf3dd0.svg";
|
|
|
527
529
|
|
|
528
530
|
var YoutubeSolid = "https://static.magneto365.com/lib/assets/cdcc07646d43bd9d.svg";
|
|
529
531
|
|
|
530
|
-
var Component$
|
|
532
|
+
var Component$2z = function (_a) {
|
|
531
533
|
var userImage = _a.userImage, fallbackImage = _a.fallbackImage, onClick = _a.onClick;
|
|
532
534
|
var _b = useState(false), imageError = _b[0], setImageError = _b[1];
|
|
533
535
|
var handleError = function () {
|
|
@@ -541,17 +543,17 @@ var Component$2y = function (_a) {
|
|
|
541
543
|
/**
|
|
542
544
|
* UI Atom component of Avatar
|
|
543
545
|
*/
|
|
544
|
-
var Avatar = Component$
|
|
546
|
+
var Avatar = Component$2z;
|
|
545
547
|
|
|
546
548
|
var styles$2l = {"badge-count":"mg_badge_badge-count_15t5z","badge-count__animation":"mg_badge_badge-count_animation_15t5z","pulse":"mg_badge_pulse_15t5z"};
|
|
547
549
|
|
|
548
|
-
var Component$
|
|
550
|
+
var Component$2y = function (_a) {
|
|
549
551
|
var _b = _a.number, number = _b === void 0 ? undefined : _b, className = _a.className;
|
|
550
552
|
return (React.createElement("p", { className: "".concat(styles$2l['badge-count'], " ").concat(className) },
|
|
551
553
|
React.createElement("span", { className: styles$2l['badge-count__animation'] }),
|
|
552
554
|
number && number));
|
|
553
555
|
};
|
|
554
|
-
var Badge = Component$
|
|
556
|
+
var Badge = Component$2y;
|
|
555
557
|
|
|
556
558
|
var BAR_LOADER_PREFIX = '--bar-loader';
|
|
557
559
|
|
|
@@ -690,8 +692,8 @@ var ShareIcons = {
|
|
|
690
692
|
}
|
|
691
693
|
};
|
|
692
694
|
|
|
693
|
-
var Component$
|
|
694
|
-
var ActionsAnchorIcons = _a.ActionsAnchorIcons, ActionsAnchorLinks = _a.ActionsAnchorLinks, ActionAnchorText = _a.ActionAnchorText, ActionsHeader = _a.ActionsHeader, externalButtonChild = _a.externalButtonChild, saveButtonProps = _a.saveButtonProps, shareButtonProps = _a.shareButtonProps, copyButtonProps = _a.copyButtonProps, offerCompanyName = _a.offerCompanyName, backText = _a.backText;
|
|
695
|
+
var Component$2x = function (_a) {
|
|
696
|
+
var ActionsAnchorIcons = _a.ActionsAnchorIcons, ActionsAnchorLinks = _a.ActionsAnchorLinks, ActionAnchorText = _a.ActionAnchorText, ActionsHeader = _a.ActionsHeader, externalButtonChild = _a.externalButtonChild, saveButtonProps = _a.saveButtonProps, shareButtonProps = _a.shareButtonProps, copyButtonProps = _a.copyButtonProps, offerCompanyName = _a.offerCompanyName, backText = _a.backText, isApplied = _a.isApplied;
|
|
695
697
|
var _b = useState(), component = _b[0], setComponent = _b[1];
|
|
696
698
|
var actionsLinkList = ActionsAnchorIcons === null || ActionsAnchorIcons === void 0 ? void 0 : ActionsAnchorIcons.map(function (_, index) { return ({
|
|
697
699
|
Icon: ActionsAnchorIcons === null || ActionsAnchorIcons === void 0 ? void 0 : ActionsAnchorIcons[index],
|
|
@@ -704,7 +706,7 @@ var Component$2w = function (_a) {
|
|
|
704
706
|
if (component)
|
|
705
707
|
return component;
|
|
706
708
|
return (React.createElement("div", { className: styles$2j['magneto-ui-actions'] },
|
|
707
|
-
React.createElement("div", { id: styles$2j['magneto-ui__external-child'] }, externalButtonChild),
|
|
709
|
+
React.createElement("div", { id: styles$2j['magneto-ui__external-child'] }, !isApplied && externalButtonChild),
|
|
708
710
|
React.createElement(SaveButton, __assign({}, saveButtonProps)),
|
|
709
711
|
React.createElement("button", { className: styles$2j['magneto-ui-actions__button'], "aria-label": shareButtonProps.title, onClick: function () {
|
|
710
712
|
return setComponent(React.createElement(Actions.ShareLinks, { offerCompanyName: offerCompanyName, shareButtonProps: copyButtonProps, ActionsHeader: ActionsHeader, backText: backText, onBack: handleBack }));
|
|
@@ -742,27 +744,27 @@ var ShareLinksAction = function (_a) {
|
|
|
742
744
|
/**
|
|
743
745
|
* UI Molecule componet of Actions
|
|
744
746
|
*/
|
|
745
|
-
var Actions = Object.assign(Component$
|
|
747
|
+
var Actions = Object.assign(Component$2x, { ShareLinks: ShareLinksAction });
|
|
746
748
|
|
|
747
749
|
var style$$ = {"magneto-ui-alert":"mg_alert_magneto-ui-alert_1v3n3","magneto-ui-warning":"mg_alert_magneto-ui-warning_1v3n3","magneto-ui-warning--with-border":"mg_alert_magneto-ui-warning--with-border_1v3n3","magneto-ui-success":"mg_alert_magneto-ui-success_1v3n3","magneto-ui-success--with-border":"mg_alert_magneto-ui-success--with-border_1v3n3","magneto-ui-error":"mg_alert_magneto-ui-error_1v3n3","magneto-ui-error--with-border":"mg_alert_magneto-ui-error--with-border_1v3n3","magneto-ui-info":"mg_alert_magneto-ui-info_1v3n3","magneto-ui-info--with-border":"mg_alert_magneto-ui-info--with-border_1v3n3","magneto-ui-close-action":"mg_alert_magneto-ui-close-action_1v3n3"};
|
|
748
750
|
|
|
749
751
|
var style$_ = {"magneto-ui-bold":"mg_text_magneto-ui-bold_16w4y","magneto-ui-lighter":"mg_text_magneto-ui-lighter_16w4y","magneto-ui-normal":"mg_text_magneto-ui-normal_16w4y"};
|
|
750
752
|
|
|
751
|
-
var
|
|
753
|
+
var Component$2w = function (_a) {
|
|
752
754
|
var text = _a.text, customText = _a.customText, className = _a.className;
|
|
753
755
|
var textRender = useMemo(function () {
|
|
754
756
|
return (customText === null || customText === void 0 ? void 0 : customText.length) ? (React.createElement("span", { className: className }, customText.map(function (_a, index) {
|
|
755
757
|
var value = _a.value, fontWeight = _a.fontWeight, _b = _a.lineBreak, lineBreak = _b === void 0 ? false : _b;
|
|
756
|
-
return (React.createElement(Fragment, { key: "
|
|
758
|
+
return (React.createElement(Fragment, { key: "custom-text-".concat(index) },
|
|
757
759
|
React.createElement("span", { className: style$_["".concat(classMUI, "-").concat(fontWeight)] }, value),
|
|
758
760
|
lineBreak && React.createElement("br", null)));
|
|
759
761
|
}))) : (React.createElement("p", { className: className }, text));
|
|
760
762
|
}, [text, customText, className]);
|
|
761
763
|
return React.createElement(React.Fragment, null, textRender);
|
|
762
764
|
};
|
|
763
|
-
var Text$1 =
|
|
765
|
+
var Text$1 = Component$2w;
|
|
764
766
|
|
|
765
|
-
var alertIcons = {
|
|
767
|
+
var alertIcons$1 = {
|
|
766
768
|
info: Info,
|
|
767
769
|
success: Success,
|
|
768
770
|
warning: Warning,
|
|
@@ -772,7 +774,7 @@ var Component$2v = function (_a) {
|
|
|
772
774
|
var text = _a.text, type = _a.type, customText = _a.customText, _b = _a.border, border = _b === void 0 ? false : _b, size = _a.size, onClose = _a.onClose, _c = _a.className, className = _c === void 0 ? '' : _c, extraButton = _a.extraButton;
|
|
773
775
|
var borderStyle = border ? style$$["".concat(classMUI, "-").concat(type, "--with-border")] : '';
|
|
774
776
|
var typeStyle = style$$["".concat(classMUI, "-").concat(type)];
|
|
775
|
-
var iconByType = useMemo(function () { return alertIcons[type]; }, [type]);
|
|
777
|
+
var iconByType = useMemo(function () { return alertIcons$1[type]; }, [type]);
|
|
776
778
|
return (React.createElement("div", { className: "".concat(style$$["".concat(classMUI, "-alert")], " ").concat(className, " ").concat(borderStyle, " ").concat(typeStyle), style: { width: size } },
|
|
777
779
|
React.createElement(IconItem, { className: style$$["".concat(classMUI, "-icon")], icon: iconByType, alt: type }),
|
|
778
780
|
React.createElement(Text$1, { text: text, customText: customText, className: style$$["".concat(classMUI, "-text")] }),
|
|
@@ -1917,7 +1919,7 @@ Component$29.displayName = 'SharePopover';
|
|
|
1917
1919
|
var SharePopover = Component$29;
|
|
1918
1920
|
|
|
1919
1921
|
var Component$28 = function (_a) {
|
|
1920
|
-
var actionsAnchorIcons = _a.actionsAnchorIcons, actionsAnchorLinks = _a.actionsAnchorLinks, actionsAnchorTitle = _a.actionsAnchorTitle, externalButtonChild = _a.externalButtonChild, saveButtonProps = _a.saveButtonProps, shareButtonProps = _a.shareButtonProps;
|
|
1922
|
+
var actionsAnchorIcons = _a.actionsAnchorIcons, actionsAnchorLinks = _a.actionsAnchorLinks, actionsAnchorTitle = _a.actionsAnchorTitle, externalButtonChild = _a.externalButtonChild, saveButtonProps = _a.saveButtonProps, shareButtonProps = _a.shareButtonProps, isApplied = _a.isApplied;
|
|
1921
1923
|
var actionsLinkList = actionsAnchorIcons === null || actionsAnchorIcons === void 0 ? void 0 : actionsAnchorIcons.map(function (_, index) { return ({
|
|
1922
1924
|
icon: actionsAnchorIcons === null || actionsAnchorIcons === void 0 ? void 0 : actionsAnchorIcons[index],
|
|
1923
1925
|
url: actionsAnchorLinks === null || actionsAnchorLinks === void 0 ? void 0 : actionsAnchorLinks[index],
|
|
@@ -1932,10 +1934,10 @@ var Component$28 = function (_a) {
|
|
|
1932
1934
|
};
|
|
1933
1935
|
var filteredActionsLinkList = actionsLinkList === null || actionsLinkList === void 0 ? void 0 : actionsLinkList.filter(function (item) { return item.url !== null && item.url !== undefined; });
|
|
1934
1936
|
return (React.createElement("div", { className: styles$1V['magneto-ui-job-actions'] },
|
|
1935
|
-
React.createElement("div", { id: styles$1V['magneto-ui__external-child'] }, externalButtonChild),
|
|
1937
|
+
!isApplied && React.createElement("div", { id: styles$1V['magneto-ui__external-child'] }, externalButtonChild),
|
|
1936
1938
|
React.createElement("div", { className: styles$1V['magneto-ui-job-actions__buttons-wrapper'] },
|
|
1937
|
-
React.createElement(Tooltip, { title: saveButtonProps.buttonTitle || 'Guardar', position: "bottom", visible: isMobile },
|
|
1938
|
-
React.createElement(SaveButton, __assign({}, saveButtonProps))),
|
|
1939
|
+
!isApplied && (React.createElement(Tooltip, { title: saveButtonProps.buttonTitle || 'Guardar', position: "bottom", visible: isMobile },
|
|
1940
|
+
React.createElement(SaveButton, __assign({}, saveButtonProps)))),
|
|
1939
1941
|
React.createElement(SharePopover, __assign({}, shareButtonProps)), filteredActionsLinkList === null || filteredActionsLinkList === void 0 ? void 0 :
|
|
1940
1942
|
filteredActionsLinkList.map(function (_a) {
|
|
1941
1943
|
var url = _a.url, title = _a.title, icon = _a.icon;
|
|
@@ -1951,7 +1953,7 @@ var JobActions = Component$28;
|
|
|
1951
1953
|
var styles$1T = {"magneto-ui-job-apply-card":"mg_job_apply_card_magneto-ui-job-apply-card_qw6j6","magneto-ui-job-apply-card__wrapper":"mg_job_apply_card_magneto-ui-job-apply-card_wrapper_qw6j6","magneto-ui-job-apply-card__header":"mg_job_apply_card_magneto-ui-job-apply-card_header_qw6j6","magneto-ui-job-apply-card__requirements":"mg_job_apply_card_magneto-ui-job-apply-card_requirements_qw6j6","magneto-ui__external-child":"mg_job_apply_card_magneto-ui_external-child_qw6j6"};
|
|
1952
1954
|
|
|
1953
1955
|
var Component$27 = function (_a) {
|
|
1954
|
-
var offerApplyHeader = _a.offerApplyHeader, offerApplyElements = _a.offerApplyElements, externalChild = _a.externalChild;
|
|
1956
|
+
var offerApplyHeader = _a.offerApplyHeader, offerApplyElements = _a.offerApplyElements, externalChild = _a.externalChild, isApplied = _a.isApplied;
|
|
1955
1957
|
return (React.createElement("div", { className: styles$1T['magneto-ui-job-apply-card'] },
|
|
1956
1958
|
React.createElement("div", { className: styles$1T['magneto-ui-job-apply-card__wrapper'] },
|
|
1957
1959
|
React.createElement("div", { className: styles$1T['magneto-ui-job-apply-card__header'] },
|
|
@@ -1968,7 +1970,7 @@ var Component$27 = function (_a) {
|
|
|
1968
1970
|
React.createElement("p", null, offerApplyLabel),
|
|
1969
1971
|
React.createElement("p", null, offerApplyInfo)));
|
|
1970
1972
|
})),
|
|
1971
|
-
React.createElement("div", { id: styles$1T['magneto-ui__external-child'] }, externalChild))));
|
|
1973
|
+
!isApplied && React.createElement("div", { id: styles$1T['magneto-ui__external-child'] }, externalChild))));
|
|
1972
1974
|
};
|
|
1973
1975
|
/**
|
|
1974
1976
|
* UI Molecule Component for Job Apply Card
|
|
@@ -2057,13 +2059,15 @@ var JobCard = function (_a) {
|
|
|
2057
2059
|
return React.createElement(React.Fragment, null, cardResponsive);
|
|
2058
2060
|
};
|
|
2059
2061
|
|
|
2060
|
-
var styles$1S = {"magneto-ui-job-company-header":"mg_job_company_header_magneto-ui-job-company-
|
|
2062
|
+
var styles$1S = {"magneto-ui-job-company-header":"mg_job_company_header_magneto-ui-job-company-header_5apvk","magneto-ui-job-company-header__data-actions":"mg_job_company_header_magneto-ui-job-company-header_data-actions_5apvk"};
|
|
2061
2063
|
|
|
2062
2064
|
var Component$26 = function (_a) {
|
|
2063
|
-
var jobCompanyLogoProps = _a.jobCompanyLogoProps, jobHeaderProps = _a.jobHeaderProps;
|
|
2065
|
+
var jobCompanyLogoProps = _a.jobCompanyLogoProps, jobHeaderProps = _a.jobHeaderProps, jobActionsProps = _a.jobActionsProps, isApplied = _a.isApplied;
|
|
2064
2066
|
return (React.createElement("div", { className: styles$1S['magneto-ui-job-company-header'] },
|
|
2065
2067
|
React.createElement(JobCompanyLogo, __assign({}, jobCompanyLogoProps)),
|
|
2066
|
-
React.createElement(
|
|
2068
|
+
React.createElement("div", { className: styles$1S['magneto-ui-job-company-header__data-actions'] },
|
|
2069
|
+
React.createElement(JobHeader, __assign({}, jobHeaderProps)),
|
|
2070
|
+
isApplied && jobActionsProps && (React.createElement(JobActions, __assign({ isApplied: isApplied, actionsAnchorIcons: anchorIconList }, jobActionsProps))))));
|
|
2067
2071
|
};
|
|
2068
2072
|
/**
|
|
2069
2073
|
* UI Molecule component for Company Job Header
|
|
@@ -3288,7 +3292,7 @@ var Component$1C = function (_a) {
|
|
|
3288
3292
|
*/
|
|
3289
3293
|
var UserMenuWrapperAnalyst = Component$1C;
|
|
3290
3294
|
|
|
3291
|
-
var styles$1m = {"alert-job":"mg_alert_job_status_alert-
|
|
3295
|
+
var styles$1m = {"alert-job":"mg_alert_job_status_alert-job_1lsa1","alert-job__search-item":"mg_alert_job_status_alert-job_search-item_1lsa1","normal":"mg_alert_job_status_normal_1lsa1","warning":"mg_alert_job_status_warning_1lsa1"};
|
|
3292
3296
|
|
|
3293
3297
|
var styles$1l = {"alert-job__content":"mg_alert_job_status_container_alert-job_content_g6vk0"};
|
|
3294
3298
|
|
|
@@ -3301,16 +3305,21 @@ var AlertJobStatusContainer = function (_a) {
|
|
|
3301
3305
|
var styles$1k = {"alert-job__icon":"mg_alert_job_status_icon_alert-job_icon_1d1sg"};
|
|
3302
3306
|
|
|
3303
3307
|
var cx$A = classNames.bind(styles$1k);
|
|
3308
|
+
var alertIcons = {
|
|
3309
|
+
success: Checked2,
|
|
3310
|
+
warning: Warning3D
|
|
3311
|
+
};
|
|
3304
3312
|
var AlertJobStatusIcon = function (_a) {
|
|
3305
|
-
var src = _a.src, _b = _a.size, size = _b === void 0 ? 34 : _b, alt = _a.alt, className = _a.className;
|
|
3313
|
+
var src = _a.src, _b = _a.size, size = _b === void 0 ? 34 : _b, alt = _a.alt, className = _a.className, _c = _a.type, type = _c === void 0 ? 'warning' : _c;
|
|
3306
3314
|
var customWidth = size ? { width: size + 'px' } : {};
|
|
3307
|
-
|
|
3315
|
+
var iconByType = useMemo(function () { return alertIcons[type]; }, [type]);
|
|
3316
|
+
return (React.createElement("img", { style: customWidth, className: cx$A('alert-job__icon', className), src: src !== null && src !== void 0 ? src : iconByType, alt: alt !== null && alt !== void 0 ? alt : "icon-item", loading: "lazy" }));
|
|
3308
3317
|
};
|
|
3309
3318
|
|
|
3310
3319
|
var cx$z = classNames.bind(styles$1m);
|
|
3311
3320
|
var Component$1B = function (_a) {
|
|
3312
|
-
var children = _a.children, className = _a.className;
|
|
3313
|
-
return React.createElement("div", { className: cx$z('alert-job', className) }, children);
|
|
3321
|
+
var children = _a.children, className = _a.className, type = _a.type;
|
|
3322
|
+
return React.createElement("div", { className: cx$z('alert-job', className, type) }, children);
|
|
3314
3323
|
};
|
|
3315
3324
|
var AlertJobStatus = Object.assign(Component$1B, {
|
|
3316
3325
|
Container: AlertJobStatusContainer,
|
|
@@ -5430,7 +5439,7 @@ var SimilarJobs = function (_a) {
|
|
|
5430
5439
|
};
|
|
5431
5440
|
|
|
5432
5441
|
var Component$T = function (_a) {
|
|
5433
|
-
var jobCompanyLogoProps = _a.jobCompanyLogoProps, jobActionsProps = _a.jobActionsProps, jobDetailsProps = _a.jobDetailsProps, jobDetailCardProps = _a.jobDetailCardProps, jobSkillsCardProps = _a.jobSkillsCardProps, jobApplyCardProps = _a.jobApplyCardProps, jobFooterCardProps = _a.jobFooterCardProps, jobDetailAction = _a.jobDetailAction, modalPendingInfoComponent = _a.modalPendingInfoComponent, isLoading = _a.isLoading, selectedJobId = _a.selectedJobId, similarJobsProps = _a.similarJobsProps, jobVideo = _a.jobVideo, loadVideo = _a.loadVideo, setLoadVideo = _a.setLoadVideo, cities = _a.cities, isRemote = _a.isRemote, textRemote = _a.textRemote, fraudCardJobProps = _a.fraudCardJobProps;
|
|
5442
|
+
var jobCompanyLogoProps = _a.jobCompanyLogoProps, jobActionsProps = _a.jobActionsProps, jobDetailsProps = _a.jobDetailsProps, jobDetailCardProps = _a.jobDetailCardProps, jobSkillsCardProps = _a.jobSkillsCardProps, jobApplyCardProps = _a.jobApplyCardProps, jobFooterCardProps = _a.jobFooterCardProps, jobDetailAction = _a.jobDetailAction, modalPendingInfoComponent = _a.modalPendingInfoComponent, isLoading = _a.isLoading, selectedJobId = _a.selectedJobId, similarJobsProps = _a.similarJobsProps, jobVideo = _a.jobVideo, loadVideo = _a.loadVideo, setLoadVideo = _a.setLoadVideo, cities = _a.cities, isRemote = _a.isRemote, textRemote = _a.textRemote, fraudCardJobProps = _a.fraudCardJobProps, alertJobStatusProps = _a.alertJobStatusProps, isApplied = _a.isApplied;
|
|
5434
5443
|
var jobDetailsRef = useRef(null);
|
|
5435
5444
|
useEffect(function () {
|
|
5436
5445
|
if (jobDetailsRef.current) {
|
|
@@ -5442,14 +5451,14 @@ var Component$T = function (_a) {
|
|
|
5442
5451
|
return (React.createElement(Fragment, null,
|
|
5443
5452
|
jobDetailAction ? (jobDetailAction) : (React.createElement("section", { className: styles$J.JobDetailsDrawerComponent },
|
|
5444
5453
|
React.createElement("div", { className: styles$J['JobHeaderCardWrapper'] },
|
|
5445
|
-
React.createElement(JobCompanyHeader, __assign({}, jobCompanyLogoProps)),
|
|
5446
|
-
React.createElement(JobActions, __assign({ actionsAnchorIcons: anchorIconList }, jobActionsProps))),
|
|
5454
|
+
React.createElement(JobCompanyHeader, __assign({}, jobCompanyLogoProps, { isApplied: isApplied, jobActionsProps: jobActionsProps })),
|
|
5455
|
+
isApplied ? (React.createElement(AlertJobStatus, __assign({}, alertJobStatusProps))) : (React.createElement(JobActions, __assign({ actionsAnchorIcons: anchorIconList }, jobActionsProps)))),
|
|
5447
5456
|
React.createElement("div", { className: styles$J['JobBodyCardWrapper'], ref: jobDetailsRef },
|
|
5448
5457
|
jobDetailsProps && (React.createElement(JobDetails, { altList: altList, iconList: iconDetailList, offerDetailsList: jobDetailsProps, cities: cities, isRemote: isRemote, textRemote: textRemote })),
|
|
5449
5458
|
jobVideo && React.createElement(JobVideo, __assign({}, jobVideo, { loadVideo: loadVideo, setLoadVideo: setLoadVideo })),
|
|
5450
5459
|
React.createElement(JobDetailCard, __assign({}, jobDetailCardProps)),
|
|
5451
5460
|
React.createElement(JobSkillsCard, __assign({}, jobSkillsCardProps)),
|
|
5452
|
-
React.createElement(FraudCardJob, __assign({}, fraudCardJobProps)),
|
|
5461
|
+
fraudCardJobProps && React.createElement(FraudCardJob, __assign({}, fraudCardJobProps)),
|
|
5453
5462
|
React.createElement(JobApplyCard, __assign({}, jobApplyCardProps)),
|
|
5454
5463
|
React.createElement(JobFooterCard, __assign({ iconList: iconFooterList }, jobFooterCardProps)),
|
|
5455
5464
|
similarJobsProps ? React.createElement(SimilarJobs, __assign({}, similarJobsProps)) : null))),
|
|
@@ -5874,19 +5883,19 @@ var MobileDrawerMenu = Component$N;
|
|
|
5874
5883
|
var styles$A = {"MobileJobDetailsActionsBarComponent":"mg_mobile_job_details_actions_bar_MobileJobDetailsActionsBarComponent_84fe5","DrawerButtonWrapper":"mg_mobile_job_details_actions_bar_DrawerButtonWrapper_84fe5","magneto-ui__external-child":"mg_mobile_job_details_actions_bar_magneto-ui_external-child_84fe5","showContainer":"mg_mobile_job_details_actions_bar_showContainer_84fe5","hideContainer":"mg_mobile_job_details_actions_bar_hideContainer_84fe5"};
|
|
5875
5884
|
|
|
5876
5885
|
var Component$M = function (_a) {
|
|
5877
|
-
var externalButtonChild = _a.externalButtonChild, actionsProps = _a.actionsProps, onClose = _a.onClose;
|
|
5886
|
+
var externalButtonChild = _a.externalButtonChild, actionsProps = _a.actionsProps, onClose = _a.onClose, isApplied = _a.isApplied;
|
|
5878
5887
|
var _b = useState(false), toggleMobileDrawer = _b[0], setToggleMobileDrawer = _b[1];
|
|
5879
5888
|
var onOpenClick = function () {
|
|
5880
5889
|
setToggleMobileDrawer(!toggleMobileDrawer);
|
|
5881
5890
|
};
|
|
5882
5891
|
var showButtonContainer = onClose ? styles$A['showContainer'] : styles$A['hideContainer'];
|
|
5883
5892
|
return (React.createElement("div", { className: "".concat(styles$A.MobileJobDetailsActionsBarComponent, " ").concat(showButtonContainer) },
|
|
5884
|
-
React.createElement("div", { id: styles$A['magneto-ui__external-child'] }, externalButtonChild),
|
|
5893
|
+
React.createElement("div", { id: styles$A['magneto-ui__external-child'] }, !isApplied && externalButtonChild),
|
|
5885
5894
|
React.createElement("div", { className: styles$A['DrawerButtonWrapper'] },
|
|
5886
5895
|
React.createElement("button", { type: "button", onClick: onOpenClick },
|
|
5887
5896
|
React.createElement(IconItem, { icon: More, hover: false }))),
|
|
5888
5897
|
React.createElement(MobileDrawer, { isOpen: toggleMobileDrawer, onClose: function () { return setToggleMobileDrawer(!toggleMobileDrawer); } },
|
|
5889
|
-
React.createElement(Actions, __assign({ ActionsAnchorIcons: anchorIconList }, actionsProps)))));
|
|
5898
|
+
React.createElement(Actions, __assign({ ActionsAnchorIcons: anchorIconList }, actionsProps, { isApplied: isApplied })))));
|
|
5890
5899
|
};
|
|
5891
5900
|
/**
|
|
5892
5901
|
* UI Organism Component for Mobile Job Details Drawer
|
|
@@ -5990,7 +5999,7 @@ var Swipe = function (_a) {
|
|
|
5990
5999
|
};
|
|
5991
6000
|
|
|
5992
6001
|
var Component$K = function (_a) {
|
|
5993
|
-
var jobCompanyLogoProps = _a.jobCompanyLogoProps, jobDetailsHeaderText = _a.jobDetailsHeaderText, jobDetailsProps = _a.jobDetailsProps, jobDetailCardProps = _a.jobDetailCardProps, jobSkillsCardProps = _a.jobSkillsCardProps, jobApplyCardProps = _a.jobApplyCardProps, jobFooterCardProps = _a.jobFooterCardProps, mobileJobDetailsBarProps = _a.mobileJobDetailsBarProps, jobDetailAction = _a.jobDetailAction, modalPendingInfoComponent = _a.modalPendingInfoComponent, _b = _a.isOpen, isOpen = _b === void 0 ? true : _b, isLoading = _a.isLoading, onClose = _a.onClose, similarJobsProps = _a.similarJobsProps, jobVideo = _a.jobVideo, loadVideo = _a.loadVideo, setLoadVideo = _a.setLoadVideo, swipeProps = _a.swipeProps, cities = _a.cities, isRemote = _a.isRemote, textRemote = _a.textRemote, fraudCardJobProps = _a.fraudCardJobProps;
|
|
6002
|
+
var jobCompanyLogoProps = _a.jobCompanyLogoProps, jobDetailsHeaderText = _a.jobDetailsHeaderText, jobDetailsProps = _a.jobDetailsProps, jobDetailCardProps = _a.jobDetailCardProps, jobSkillsCardProps = _a.jobSkillsCardProps, jobApplyCardProps = _a.jobApplyCardProps, jobFooterCardProps = _a.jobFooterCardProps, mobileJobDetailsBarProps = _a.mobileJobDetailsBarProps, jobDetailAction = _a.jobDetailAction, modalPendingInfoComponent = _a.modalPendingInfoComponent, _b = _a.isOpen, isOpen = _b === void 0 ? true : _b, isLoading = _a.isLoading, onClose = _a.onClose, similarJobsProps = _a.similarJobsProps, jobVideo = _a.jobVideo, loadVideo = _a.loadVideo, setLoadVideo = _a.setLoadVideo, swipeProps = _a.swipeProps, cities = _a.cities, isRemote = _a.isRemote, textRemote = _a.textRemote, fraudCardJobProps = _a.fraudCardJobProps, isApplied = _a.isApplied, alertJobStatusProps = _a.alertJobStatusProps;
|
|
5994
6003
|
var handleClose = useCallback(function () {
|
|
5995
6004
|
if (onClose) {
|
|
5996
6005
|
onClose();
|
|
@@ -6000,12 +6009,13 @@ var Component$K = function (_a) {
|
|
|
6000
6009
|
return jobDetailAction ? (jobDetailAction) : isLoading ? (React.createElement(MobileJobDetailsDrawerSkeleton, null)) : (React.createElement(Fragment, null,
|
|
6001
6010
|
React.createElement(MobileJobDetailsHeader, { returnText: jobDetailsHeaderText, onClick: handleClose }),
|
|
6002
6011
|
React.createElement(JobCompanyHeader, __assign({}, jobCompanyLogoProps)),
|
|
6012
|
+
isApplied && React.createElement(AlertJobStatus, __assign({}, alertJobStatusProps)),
|
|
6003
6013
|
jobDetailsProps && (React.createElement(JobDetails, { iconList: iconDetailList, offerDetailsList: jobDetailsProps, cities: cities, isRemote: isRemote, textRemote: textRemote })),
|
|
6004
6014
|
jobVideo && React.createElement(JobVideo, __assign({}, jobVideo, { loadVideo: loadVideo, setLoadVideo: setLoadVideo })),
|
|
6005
6015
|
React.createElement(JobDetailCard, __assign({}, jobDetailCardProps)),
|
|
6006
6016
|
jobSkillsCardProps && React.createElement(JobSkillsCard, __assign({}, jobSkillsCardProps)),
|
|
6007
|
-
React.createElement(FraudCardJob, __assign({}, fraudCardJobProps)),
|
|
6008
|
-
React.createElement(JobApplyCard, __assign({}, jobApplyCardProps)),
|
|
6017
|
+
fraudCardJobProps && React.createElement(FraudCardJob, __assign({}, fraudCardJobProps)),
|
|
6018
|
+
React.createElement(JobApplyCard, __assign({}, jobApplyCardProps, { isApplied: isApplied })),
|
|
6009
6019
|
React.createElement(JobFooterCard, __assign({ iconList: iconFooterList }, jobFooterCardProps)),
|
|
6010
6020
|
similarJobsProps ? React.createElement(SimilarJobs, __assign({}, similarJobsProps)) : null));
|
|
6011
6021
|
}, [
|
|
@@ -6026,7 +6036,9 @@ var Component$K = function (_a) {
|
|
|
6026
6036
|
fraudCardJobProps,
|
|
6027
6037
|
jobApplyCardProps,
|
|
6028
6038
|
jobFooterCardProps,
|
|
6029
|
-
similarJobsProps
|
|
6039
|
+
similarJobsProps,
|
|
6040
|
+
alertJobStatusProps,
|
|
6041
|
+
isApplied
|
|
6030
6042
|
]);
|
|
6031
6043
|
var content = useMemo(function () {
|
|
6032
6044
|
return swipeProps ? (React.createElement(Swipe, __assign({}, swipeProps, { openModal: isOpen && swipeProps.openModal }), renderContent)) : (renderContent);
|
|
@@ -6034,7 +6046,7 @@ var Component$K = function (_a) {
|
|
|
6034
6046
|
return (React.createElement(Fragment, null,
|
|
6035
6047
|
React.createElement(Drawer$1, { isOpen: isOpen, isFull: true, onClose: handleClose, direction: "right", customPadding: 0, hideButton: true, isMobile: true },
|
|
6036
6048
|
content,
|
|
6037
|
-
!jobDetailAction && React.createElement(MobileJobDetailsActionsBar, __assign({}, mobileJobDetailsBarProps, { onClose: isOpen }))),
|
|
6049
|
+
!jobDetailAction && (React.createElement(MobileJobDetailsActionsBar, __assign({}, mobileJobDetailsBarProps, { onClose: isOpen, isApplied: isApplied })))),
|
|
6038
6050
|
modalPendingInfoComponent));
|
|
6039
6051
|
};
|
|
6040
6052
|
/**
|