magneto365.ui 2.65.9 → 2.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/css/magneto.ui.lib.min.css +1 -1
- package/dist/cjs/index.js +167 -148
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/UI/atoms/BarChart/BarChart.interface.d.ts +4 -0
- package/dist/cjs/types/components/UI/molecules/TimelineEvent/TimelineEvent.interface.d.ts +8 -3
- package/dist/cjs/types/components/UI/organism/Timeline/Timeline.interface.d.ts +6 -2
- package/dist/cjs/types/constants/timelineEvent.constants.d.ts +7 -0
- package/dist/esm/css/magneto.ui.lib.min.css +1 -1
- package/dist/esm/index.js +168 -149
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/UI/atoms/BarChart/BarChart.interface.d.ts +4 -0
- package/dist/esm/types/components/UI/molecules/TimelineEvent/TimelineEvent.interface.d.ts +8 -3
- package/dist/esm/types/components/UI/organism/Timeline/Timeline.interface.d.ts +6 -2
- package/dist/esm/types/constants/timelineEvent.constants.d.ts +7 -0
- package/dist/index.d.ts +19 -6
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -286,7 +286,7 @@ var classNames = {
|
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
288
|
|
|
289
|
-
var cx$
|
|
289
|
+
var cx$1d = classNames.bind(styles$2Y);
|
|
290
290
|
var Component$37 = function (_a) {
|
|
291
291
|
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, isRotate = _a.isRotate;
|
|
292
292
|
var _d = useState(false), imageError = _d[0], setImageError = _d[1];
|
|
@@ -294,11 +294,11 @@ var Component$37 = function (_a) {
|
|
|
294
294
|
setImageError(true);
|
|
295
295
|
};
|
|
296
296
|
var iconSrc = useMemo(function () { return (!imageError ? icon !== null && icon !== void 0 ? icon : undefined : fallbackIcon); }, [fallbackIcon, imageError, icon]);
|
|
297
|
-
var isHover = hover ? cx$
|
|
297
|
+
var isHover = hover ? cx$1d('magneto-ui-hover') : '';
|
|
298
298
|
var customStyle = size ? { width: size + 'px' } : {};
|
|
299
299
|
if (!iconSrc && !showDefaultFallback)
|
|
300
300
|
return null;
|
|
301
|
-
return (React.createElement(Fragment, null, icon && (React.createElement("img", { "data-name": "icon", style: customStyle, className: cx$
|
|
301
|
+
return (React.createElement(Fragment, null, icon && (React.createElement("img", { "data-name": "icon", style: customStyle, className: cx$1d('magneto-ui-icon', { 'magneto-ui-rotate': isRotate }, isHover, className), src: iconSrc, alt: alt !== null && alt !== void 0 ? alt : "".concat(icon, " icon item"), loading: "lazy", width: '25px', onError: handleError }))));
|
|
302
302
|
};
|
|
303
303
|
/**
|
|
304
304
|
* Atom UI component of Icon for general purpose
|
|
@@ -659,7 +659,7 @@ var Component$35 = function (_a) {
|
|
|
659
659
|
};
|
|
660
660
|
var Badge = Component$35;
|
|
661
661
|
|
|
662
|
-
var styles$2V = {"magneto-ui-chart-bar":"mg_bar_chart_magneto-ui-chart-
|
|
662
|
+
var styles$2V = {"magneto-ui-chart-bar":"mg_bar_chart_magneto-ui-chart-bar_1jzzq","magneto-ui-chart-bar__point":"mg_bar_chart_magneto-ui-chart-bar_point_1jzzq","magneto-ui-chart-bar__popover":"mg_bar_chart_magneto-ui-chart-bar_popover_1jzzq","popover-left":"mg_bar_chart_popover-left_1jzzq","popover-right":"mg_bar_chart_popover-right_1jzzq"};
|
|
663
663
|
|
|
664
664
|
var numberToCurrency = function (currency, withSymbol) {
|
|
665
665
|
if (withSymbol === void 0) { withSymbol = true; }
|
|
@@ -676,7 +676,7 @@ var EPositions;
|
|
|
676
676
|
})(EPositions || (EPositions = {}));
|
|
677
677
|
|
|
678
678
|
var Component$34 = function (_a) {
|
|
679
|
-
var range = _a.bin, percentage = _a.heightPercentage, jobText = _a.jobText, _b = _a.maxHeight, maxHeight = _b === void 0 ? 400 : _b, _c = _a.maxPercentage, maxPercentage = _c === void 0 ? 1 : _c;
|
|
679
|
+
var range = _a.bin, percentage = _a.heightPercentage, jobText = _a.jobText, point = _a.point, _b = _a.maxHeight, maxHeight = _b === void 0 ? 400 : _b, _c = _a.maxPercentage, maxPercentage = _c === void 0 ? 1 : _c;
|
|
680
680
|
var barRef = useRef(null);
|
|
681
681
|
var _d = useState(false), isHover = _d[0], setIsHover = _d[1];
|
|
682
682
|
var _e = useMemo(function () { return range; }, [range]), minRange = _e[0], maxRange = _e[1];
|
|
@@ -703,7 +703,9 @@ var Component$34 = function (_a) {
|
|
|
703
703
|
}, [isHover, jobText, maxRange, minRange, percentage, popoverPosition]);
|
|
704
704
|
return (React.createElement("div", { style: {
|
|
705
705
|
height: Math.max((percentage / maxPercentage) * maxHeight, 1)
|
|
706
|
-
}, ref: barRef, className: styles$2V['magneto-ui-chart-bar'], onMouseEnter: function () { return setIsHover(true); }, onMouseLeave: function () { return setIsHover(false); } },
|
|
706
|
+
}, ref: barRef, className: styles$2V['magneto-ui-chart-bar'], onMouseEnter: function () { return setIsHover(true); }, onMouseLeave: function () { return setIsHover(false); } },
|
|
707
|
+
React.createElement("div", { className: styles$2V['magneto-ui-chart-bar__point'], style: { backgroundColor: point } }),
|
|
708
|
+
popoverContent));
|
|
707
709
|
};
|
|
708
710
|
var BarChart = Component$34;
|
|
709
711
|
|
|
@@ -1642,16 +1644,16 @@ var ButtonLink = Component$30;
|
|
|
1642
1644
|
|
|
1643
1645
|
var styles$2Q = {"checkbox":"mg_checkbox_checkbox_1w9e7","checkbox--inline":"mg_checkbox_checkbox--inline_1w9e7","checkbox--block":"mg_checkbox_checkbox--block_1w9e7","checkbox--background":"mg_checkbox_checkbox--background_1w9e7","checkbox--checked":"mg_checkbox_checkbox--checked_1w9e7","custom-checked":"mg_checkbox_custom-checked_1w9e7","checkbox__box":"mg_checkbox_checkbox_box_1w9e7","checkbox__box--checked":"mg_checkbox_checkbox_box--checked_1w9e7"};
|
|
1644
1646
|
|
|
1645
|
-
var cx$
|
|
1647
|
+
var cx$1c = classNames.bind(styles$2Q);
|
|
1646
1648
|
var defaultCheck = function (_a) {
|
|
1647
1649
|
var type = _a.type, checked = _a.checked;
|
|
1648
1650
|
if (type === 'background')
|
|
1649
1651
|
return;
|
|
1650
|
-
return (React.createElement("div", { "aria-checked": checked, role: "checkbox", className: cx$
|
|
1652
|
+
return (React.createElement("div", { "aria-checked": checked, role: "checkbox", className: cx$1c('checkbox__box', { 'checkbox__box--checked': checked }) }, checked ? React.createElement(React.Fragment, null, "\u2713") : null));
|
|
1651
1653
|
};
|
|
1652
1654
|
var Component$2$ = function (_a) {
|
|
1653
1655
|
var id = _a.id, checked = _a.checked, _b = _a.onChange, onChange = _b === void 0 ? stubTrue : _b, children = _a.children, _c = _a.type, type = _c === void 0 ? 'box' : _c, className = _a.className, _d = _a.display, display = _d === void 0 ? 'inline' : _d, _e = _a.renderCheck, renderCheck = _e === void 0 ? defaultCheck : _e, rest = __rest(_a, ["id", "checked", "onChange", "children", "type", "className", "display", "renderCheck"]);
|
|
1654
|
-
return (React.createElement("label", { className: cx$
|
|
1656
|
+
return (React.createElement("label", { className: cx$1c('checkbox', "checkbox--".concat(display), className, {
|
|
1655
1657
|
'checkbox--checked': checked,
|
|
1656
1658
|
'checkbox--background': type === 'background'
|
|
1657
1659
|
}), "data-name": "checkbox-container", htmlFor: id },
|
|
@@ -1696,17 +1698,17 @@ var context$2 = /*#__PURE__*/Object.freeze({
|
|
|
1696
1698
|
|
|
1697
1699
|
var styles$2P = {"magneto-ui-collapse-body":"mg_collapse_body_magneto-ui-collapse-body_1sj1m","magneto-ui-collapse-body--visible":"mg_collapse_body_magneto-ui-collapse-body--visible_1sj1m","magneto-ui-collapse-body__container":"mg_collapse_body_magneto-ui-collapse-body_container_1sj1m","magneto-ui-collapse-body__container--visible":"mg_collapse_body_magneto-ui-collapse-body_container--visible_1sj1m","magneto-ui-collapse-body__content":"mg_collapse_body_magneto-ui-collapse-body_content_1sj1m","magneto-ui-collapse-body__content--visible":"mg_collapse_body_magneto-ui-collapse-body_content--visible_1sj1m"};
|
|
1698
1700
|
|
|
1699
|
-
var cx$
|
|
1701
|
+
var cx$1b = classNames.bind(styles$2P);
|
|
1700
1702
|
var Component$2_ = function (_a) {
|
|
1701
1703
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
|
1702
1704
|
var open = useCollapse().open;
|
|
1703
|
-
return (React.createElement("div", __assign({}, props, { className: cx$
|
|
1705
|
+
return (React.createElement("div", __assign({}, props, { className: cx$1b('magneto-ui-collapse-body', {
|
|
1704
1706
|
'magneto-ui-collapse-body--visible': open
|
|
1705
1707
|
}) }),
|
|
1706
|
-
React.createElement("div", { className: cx$
|
|
1708
|
+
React.createElement("div", { className: cx$1b('magneto-ui-collapse-body__container', {
|
|
1707
1709
|
'magneto-ui-collapse-body__container--visible': open
|
|
1708
1710
|
}) },
|
|
1709
|
-
React.createElement("div", { className: cx$
|
|
1711
|
+
React.createElement("div", { className: cx$1b('magneto-ui-collapse-body__content', {
|
|
1710
1712
|
'magneto-ui-collapse-body__content--visible': open
|
|
1711
1713
|
}, className) }, children))));
|
|
1712
1714
|
};
|
|
@@ -1717,10 +1719,10 @@ var CollapseBody = Component$2_;
|
|
|
1717
1719
|
|
|
1718
1720
|
var styles$2O = {"magneto-ui-collapse-header":"mg_collapse_header_magneto-ui-collapse-header_1wc3x"};
|
|
1719
1721
|
|
|
1720
|
-
var cx$
|
|
1722
|
+
var cx$1a = classNames.bind(styles$2O);
|
|
1721
1723
|
var Component$2Z = function (_a) {
|
|
1722
1724
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
|
1723
|
-
return (React.createElement("header", __assign({ className: cx$
|
|
1725
|
+
return (React.createElement("header", __assign({ className: cx$1a('magneto-ui-collapse-header', className) }, props), children));
|
|
1724
1726
|
};
|
|
1725
1727
|
/**
|
|
1726
1728
|
* Atom UI component child of Collapse
|
|
@@ -1729,7 +1731,7 @@ var CollapseHeader = Component$2Z;
|
|
|
1729
1731
|
|
|
1730
1732
|
var styles$2N = {"magneto-ui-collapse-toggler":"mg_collapse_toggler_magneto-ui-collapse-toggler_1ngmx"};
|
|
1731
1733
|
|
|
1732
|
-
var cx$
|
|
1734
|
+
var cx$19 = classNames.bind(styles$2N);
|
|
1733
1735
|
var Component$2Y = function (_a) {
|
|
1734
1736
|
var children = _a.children, className = _a.className, onClick = _a.onClick, props = __rest(_a, ["children", "className", "onClick"]);
|
|
1735
1737
|
var _b = useCollapse(), open = _b.open, onChangeOpen = _b.onChangeOpen;
|
|
@@ -1738,7 +1740,7 @@ var Component$2Y = function (_a) {
|
|
|
1738
1740
|
onClick(evt);
|
|
1739
1741
|
onChangeOpen(!open);
|
|
1740
1742
|
}, [open, onChangeOpen, onClick]);
|
|
1741
|
-
return (React.createElement("button", __assign({}, props, { onClick: handleOnClick, className: cx$
|
|
1743
|
+
return (React.createElement("button", __assign({}, props, { onClick: handleOnClick, className: cx$19('magneto-ui-collapse-toggler', className) }), children));
|
|
1742
1744
|
};
|
|
1743
1745
|
/**
|
|
1744
1746
|
* Atom UI component child of Collapse
|
|
@@ -2045,10 +2047,10 @@ var Image = function (_a) {
|
|
|
2045
2047
|
|
|
2046
2048
|
var style$14 = {"magneto-ui-input-file-button":"mg_input_file_button_magneto-ui-input-file-button_18zx0"};
|
|
2047
2049
|
|
|
2048
|
-
var cx$
|
|
2050
|
+
var cx$18 = classNames.bind(style$14);
|
|
2049
2051
|
var Component$2P = function (_a) {
|
|
2050
2052
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
|
2051
|
-
return (React.createElement("button", __assign({ className: cx$
|
|
2053
|
+
return (React.createElement("button", __assign({ className: cx$18('magneto-ui-input-file-button', className) }, props), children));
|
|
2052
2054
|
};
|
|
2053
2055
|
/**
|
|
2054
2056
|
* Atom UI child component of Input File
|
|
@@ -2057,10 +2059,10 @@ var InputFileButton = Component$2P;
|
|
|
2057
2059
|
|
|
2058
2060
|
var style$13 = {"magneto-ui-input-file-container":"mg_input_file_container_magneto-ui-input-file-container_1b7ef"};
|
|
2059
2061
|
|
|
2060
|
-
var cx$
|
|
2062
|
+
var cx$17 = classNames.bind(style$13);
|
|
2061
2063
|
var Component$2O = function (_a) {
|
|
2062
2064
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
|
2063
|
-
return (React.createElement("div", __assign({ className: cx$
|
|
2065
|
+
return (React.createElement("div", __assign({ className: cx$17('magneto-ui-input-file-container', className) }, props), children));
|
|
2064
2066
|
};
|
|
2065
2067
|
/**
|
|
2066
2068
|
* Atom UI component of Input File
|
|
@@ -2069,7 +2071,7 @@ var InputFileContainer = Component$2O;
|
|
|
2069
2071
|
|
|
2070
2072
|
var style$12 = {"magneto-ui-input-file":"mg_input_file_magneto-ui-input-file_18kpr"};
|
|
2071
2073
|
|
|
2072
|
-
var cx$
|
|
2074
|
+
var cx$16 = classNames.bind(style$12);
|
|
2073
2075
|
var Component$2N = function (_a) {
|
|
2074
2076
|
var children = _a.children, className = _a.className, onChange = _a.onChange, props = __rest(_a, ["children", "className", "onChange"]);
|
|
2075
2077
|
var inputFileRef = useRef(null);
|
|
@@ -2093,9 +2095,9 @@ var Component$2N = function (_a) {
|
|
|
2093
2095
|
var handleDragOver = function (event) {
|
|
2094
2096
|
event.preventDefault();
|
|
2095
2097
|
};
|
|
2096
|
-
return (React.createElement("div", { className: cx$
|
|
2098
|
+
return (React.createElement("div", { className: cx$16(className), onClick: handleFileClick, onDrop: handleFileDrop, onDragOver: handleDragOver },
|
|
2097
2099
|
children,
|
|
2098
|
-
React.createElement("input", __assign({ className: cx$
|
|
2100
|
+
React.createElement("input", __assign({ className: cx$16('magneto-ui-input-file'), onChange: handleFileChange, ref: inputFileRef, type: "file" }, props))));
|
|
2099
2101
|
};
|
|
2100
2102
|
/**
|
|
2101
2103
|
* Atom UI component of Input File
|
|
@@ -2533,13 +2535,13 @@ var Radio = Component$2x;
|
|
|
2533
2535
|
|
|
2534
2536
|
var styles$2s = {"magneto-ui-rating-badge__container":"mg_rating_badge_magneto-ui-rating-badge_container_1b19u","magneto-ui-rating-badge__icon":"mg_rating_badge_magneto-ui-rating-badge_icon_1b19u","magneto-ui-rating-badge__score":"mg_rating_badge_magneto-ui-rating-badge_score_1b19u"};
|
|
2535
2537
|
|
|
2536
|
-
var cx$
|
|
2538
|
+
var cx$15 = classNames.bind(styles$2s);
|
|
2537
2539
|
var Component$2w = function (_a) {
|
|
2538
2540
|
var score = _a.score;
|
|
2539
|
-
return (React.createElement("div", { className: cx$
|
|
2540
|
-
React.createElement("div", { className: cx$
|
|
2541
|
-
React.createElement("img", { src: StarBoldYellow, alt: StarBoldYellow, className: cx$
|
|
2542
|
-
React.createElement("span", { className: cx$
|
|
2541
|
+
return (React.createElement("div", { className: cx$15('magneto-ui-rating-badge') },
|
|
2542
|
+
React.createElement("div", { className: cx$15('magneto-ui-rating-badge__container') },
|
|
2543
|
+
React.createElement("img", { src: StarBoldYellow, alt: StarBoldYellow, className: cx$15('magneto-ui-rating-badge__icon') }),
|
|
2544
|
+
React.createElement("span", { className: cx$15('magneto-ui-rating-badge__score') }, score))));
|
|
2543
2545
|
};
|
|
2544
2546
|
/**
|
|
2545
2547
|
* Atom UI component of Rating Badge
|
|
@@ -2708,7 +2710,7 @@ var ToggleButton = Component$2s;
|
|
|
2708
2710
|
|
|
2709
2711
|
var styles$2m = {"magneto-ui-typography":"mg_typography_magneto-ui-typography_tpbip","magneto-ui-typography--size-xs":"mg_typography_magneto-ui-typography--size-xs_tpbip","magneto-ui-typography--size-sm":"mg_typography_magneto-ui-typography--size-sm_tpbip","magneto-ui-typography--size-md":"mg_typography_magneto-ui-typography--size-md_tpbip","magneto-ui-typography--size-lg":"mg_typography_magneto-ui-typography--size-lg_tpbip","magneto-ui-typography--size-xl":"mg_typography_magneto-ui-typography--size-xl_tpbip","magneto-ui-typography--size-xl-2":"mg_typography_magneto-ui-typography--size-xl-2_tpbip","magneto-ui-typography--size-xl-3":"mg_typography_magneto-ui-typography--size-xl-3_tpbip","magneto-ui-typography--size-xl-4":"mg_typography_magneto-ui-typography--size-xl-4_tpbip","magneto-ui-typography--size-xl-5":"mg_typography_magneto-ui-typography--size-xl-5_tpbip","magneto-ui-typography--size-xl-6":"mg_typography_magneto-ui-typography--size-xl-6_tpbip","magneto-ui-typography--size-xl-7":"mg_typography_magneto-ui-typography--size-xl-7_tpbip","magneto-ui-typography--weight-thin":"mg_typography_magneto-ui-typography--weight-thin_tpbip","magneto-ui-typography--weight-extra-light":"mg_typography_magneto-ui-typography--weight-extra-light_tpbip","magneto-ui-typography--weight-light":"mg_typography_magneto-ui-typography--weight-light_tpbip","magneto-ui-typography--weight-normal":"mg_typography_magneto-ui-typography--weight-normal_tpbip","magneto-ui-typography--weight-medium":"mg_typography_magneto-ui-typography--weight-medium_tpbip","magneto-ui-typography--weight-semi-bold":"mg_typography_magneto-ui-typography--weight-semi-bold_tpbip","magneto-ui-typography--weight-bold":"mg_typography_magneto-ui-typography--weight-bold_tpbip","magneto-ui-typography--weight-extra-bold":"mg_typography_magneto-ui-typography--weight-extra-bold_tpbip","magneto-ui-typography--weight-black":"mg_typography_magneto-ui-typography--weight-black_tpbip","magneto-ui-typography--color-gray":"mg_typography_magneto-ui-typography--color-gray_tpbip","magneto-ui-typography--color-white":"mg_typography_magneto-ui-typography--color-white_tpbip","magneto-ui-typography--color-black":"mg_typography_magneto-ui-typography--color-black_tpbip","magneto-ui-typography--color-green":"mg_typography_magneto-ui-typography--color-green_tpbip","magneto-ui-typography--color-blue":"mg_typography_magneto-ui-typography--color-blue_tpbip","magneto-ui-typography--code":"mg_typography_magneto-ui-typography--code_tpbip","magneto-ui-typography--delete":"mg_typography_magneto-ui-typography--delete_tpbip","magneto-ui-typography--italic":"mg_typography_magneto-ui-typography--italic_tpbip","magneto-ui-typography--keyboard":"mg_typography_magneto-ui-typography--keyboard_tpbip","magneto-ui-typography--mark":"mg_typography_magneto-ui-typography--mark_tpbip","magneto-ui-typography--strong":"mg_typography_magneto-ui-typography--strong_tpbip","magneto-ui-typography--underline":"mg_typography_magneto-ui-typography--underline_tpbip","magneto-ui-typography--ellipsis":"mg_typography_magneto-ui-typography--ellipsis_tpbip","magneto-ui-typography--ellipsis-multiline":"mg_typography_magneto-ui-typography--ellipsis-multiline_tpbip"};
|
|
2710
2712
|
|
|
2711
|
-
var cx$
|
|
2713
|
+
var cx$14 = classNames.bind(styles$2m);
|
|
2712
2714
|
var typographyStyles = function (_a) {
|
|
2713
2715
|
var _b;
|
|
2714
2716
|
var className = _a.className, color = _a.color, ellipsis = _a.ellipsis, size = _a.size, style = _a.style, weight = _a.weight;
|
|
@@ -2719,7 +2721,7 @@ var typographyStyles = function (_a) {
|
|
|
2719
2721
|
_b['magneto-ui-typography--ellipsis'] = ellipsis === true,
|
|
2720
2722
|
_b['magneto-ui-typography--ellipsis-multiline'] = typeof ellipsis === 'object' && typeof ellipsis.rows === 'number',
|
|
2721
2723
|
_b);
|
|
2722
|
-
var finalClassName = cx$
|
|
2724
|
+
var finalClassName = cx$14('magneto-ui-typography', customizedClassName, className);
|
|
2723
2725
|
var finalStyle = __assign(__assign(__assign({}, (typeof size === 'number' && { '--size': "".concat(size, "px") })), (typeof weight === 'number' && { '--weight': weight })), (typeof ellipsis === 'object' && ellipsis.rows && { '--ellipsis-lines': ellipsis.rows }));
|
|
2724
2726
|
return {
|
|
2725
2727
|
className: finalClassName,
|
|
@@ -2737,11 +2739,11 @@ var applyWrappers = function (children, props) {
|
|
|
2737
2739
|
props.underline ? { tag: 'u', className: 'magneto-ui-typography--underline' } : null
|
|
2738
2740
|
].filter(Boolean);
|
|
2739
2741
|
if (wrappers.length === 1) {
|
|
2740
|
-
return createElement(wrappers[0].tag, { className: cx$
|
|
2742
|
+
return createElement(wrappers[0].tag, { className: cx$14(wrappers[0].className) }, children);
|
|
2741
2743
|
}
|
|
2742
2744
|
return wrappers.reduce(function (acc, _a) {
|
|
2743
2745
|
var tag = _a.tag, className = _a.className;
|
|
2744
|
-
return createElement(tag, { className: cx$
|
|
2746
|
+
return createElement(tag, { className: cx$14(className) }, acc);
|
|
2745
2747
|
}, children);
|
|
2746
2748
|
};
|
|
2747
2749
|
var OMITTED_PROPS = [
|
|
@@ -2976,44 +2978,44 @@ var Alert = Component$2l;
|
|
|
2976
2978
|
|
|
2977
2979
|
var styles$2j = {"alert-modal":"mg_alert_job_modal_alert-modal_oyuqf","alert-modal__mobile":"mg_alert_job_modal_alert-modal_mobile_oyuqf","alert-modal__header":"mg_alert_job_modal_alert-modal_header_oyuqf","alert-modal__body":"mg_alert_job_modal_alert-modal_body_oyuqf","alert-modal__footer":"mg_alert_job_modal_alert-modal_footer_oyuqf","alert-modal__icon":"mg_alert_job_modal_alert-modal_icon_oyuqf","alert-modal__title":"mg_alert_job_modal_alert-modal_title_oyuqf","alert-modal__checkbox":"mg_alert_job_modal_alert-modal_checkbox_oyuqf","alert-modal__button":"mg_alert_job_modal_alert-modal_button_oyuqf"};
|
|
2978
2980
|
|
|
2979
|
-
var cx$
|
|
2981
|
+
var cx$13 = classNames.bind(styles$2j);
|
|
2980
2982
|
var AlertJobModalIcon = function (_a) {
|
|
2981
2983
|
var src = _a.src, _b = _a.size, size = _b === void 0 ? 50 : _b, alt = _a.alt, className = _a.className;
|
|
2982
2984
|
var customWidth = size ? { width: size + 'px' } : {};
|
|
2983
|
-
return (React.createElement("img", { style: customWidth, className: cx$
|
|
2985
|
+
return (React.createElement("img", { style: customWidth, className: cx$13('alert-job__icon', className), src: src !== null && src !== void 0 ? src : Urgent, alt: alt !== null && alt !== void 0 ? alt : "icon-item", loading: "lazy" }));
|
|
2984
2986
|
};
|
|
2985
2987
|
|
|
2986
|
-
var cx$
|
|
2988
|
+
var cx$12 = classNames.bind(styles$2j);
|
|
2987
2989
|
var AlertJobModalHeader = function (_a) {
|
|
2988
2990
|
var className = _a.className, children = _a.children;
|
|
2989
|
-
return React.createElement("div", { className: cx$
|
|
2991
|
+
return React.createElement("div", { className: cx$12('alert-modal__header', className) }, children);
|
|
2990
2992
|
};
|
|
2991
2993
|
|
|
2992
|
-
var cx$
|
|
2994
|
+
var cx$11 = classNames.bind(styles$2j);
|
|
2993
2995
|
var AlertJobModalTitle = function (_a) {
|
|
2994
2996
|
var title = _a.title, subtitle = _a.subtitle, className = _a.className, children = _a.children;
|
|
2995
|
-
return (React.createElement("div", { className: cx$
|
|
2997
|
+
return (React.createElement("div", { className: cx$11('alert-modal__title', className) },
|
|
2996
2998
|
React.createElement("p", null, subtitle),
|
|
2997
2999
|
React.createElement("p", null, "\u201C".concat(title, "\u201D")),
|
|
2998
3000
|
children));
|
|
2999
3001
|
};
|
|
3000
3002
|
|
|
3001
|
-
var cx
|
|
3003
|
+
var cx$10 = classNames.bind(styles$2j);
|
|
3002
3004
|
var AlertJobModalBody = function (_a) {
|
|
3003
3005
|
var className = _a.className, children = _a.children;
|
|
3004
|
-
return React.createElement("div", { className: cx
|
|
3006
|
+
return React.createElement("div", { className: cx$10('alert-modal__body', className) }, children);
|
|
3005
3007
|
};
|
|
3006
3008
|
|
|
3007
|
-
var cx
|
|
3009
|
+
var cx$$ = classNames.bind(styles$2j);
|
|
3008
3010
|
var AlertJobModalFooter = function (_a) {
|
|
3009
3011
|
var className = _a.className, children = _a.children;
|
|
3010
|
-
return React.createElement("div", { className: cx
|
|
3012
|
+
return React.createElement("div", { className: cx$$('alert-modal__footer', className) }, children);
|
|
3011
3013
|
};
|
|
3012
3014
|
|
|
3013
|
-
var cx$
|
|
3015
|
+
var cx$_ = classNames.bind(styles$2j);
|
|
3014
3016
|
var AlertJobModalButton = function (_a) {
|
|
3015
3017
|
var className = _a.className, children = _a.children, _b = _a.icon, icon = _b === void 0 ? ArrowRightWhite : _b, _c = _a.sizeIcon, sizeIcon = _c === void 0 ? 14 : _c, buttonProps = __rest(_a, ["className", "children", "icon", "sizeIcon"]);
|
|
3016
|
-
return (React.createElement("button", __assign({ className: cx$
|
|
3018
|
+
return (React.createElement("button", __assign({ className: cx$_('alert-modal__button', className) }, buttonProps),
|
|
3017
3019
|
React.createElement("p", null, children),
|
|
3018
3020
|
React.createElement(IconItem, { alt: "arrow-icon", hover: false, icon: icon, size: sizeIcon })));
|
|
3019
3021
|
};
|
|
@@ -3040,7 +3042,7 @@ var DrawerPortal = function (_a) {
|
|
|
3040
3042
|
|
|
3041
3043
|
var style$W = {"magneto-ui-mobile-drawer":"mg_mobile_drawer_magneto-ui-mobile-drawer_1e2s0","magneto-ui-close-button":"mg_mobile_drawer_magneto-ui-close-button_1e2s0","magneto-ui-container":"mg_mobile_drawer_magneto-ui-container_1e2s0","background-drawer":"mg_mobile_drawer_background-drawer_1e2s0","fadeIn":"mg_mobile_drawer_fadeIn_1e2s0","show":"mg_mobile_drawer_show_1e2s0","hidden":"mg_mobile_drawer_hidden_1e2s0"};
|
|
3042
3044
|
|
|
3043
|
-
var cx$
|
|
3045
|
+
var cx$Z = classNames.bind(style$W);
|
|
3044
3046
|
var Component$2k = function (_a) {
|
|
3045
3047
|
var onClose = _a.onClose, isOpen = _a.isOpen, children = _a.children, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.blockBackgroundClose, blockBackgroundClose = _c === void 0 ? false : _c, _d = _a.backgroundClassName, backgroundClassName = _d === void 0 ? '' : _d;
|
|
3046
3048
|
var _e = useState(false), showContent = _e[0], setShowContent = _e[1];
|
|
@@ -3067,12 +3069,12 @@ var Component$2k = function (_a) {
|
|
|
3067
3069
|
};
|
|
3068
3070
|
}, [isOpen]);
|
|
3069
3071
|
return (React.createElement(React.Fragment, null, renderPortal && (React.createElement(DrawerPortal, null,
|
|
3070
|
-
React.createElement("div", { className: cx$
|
|
3071
|
-
React.createElement("aside", { className: cx$
|
|
3072
|
-
React.createElement("button", { "data-name": "close-drawer", title: "close-modal", className: cx$
|
|
3072
|
+
React.createElement("div", { className: cx$Z('magneto-ui-mobile-drawer') },
|
|
3073
|
+
React.createElement("aside", { className: cx$Z(showMenu, className) },
|
|
3074
|
+
React.createElement("button", { "data-name": "close-drawer", title: "close-modal", className: cx$Z('magneto-ui-close-button'), onClick: onClose },
|
|
3073
3075
|
React.createElement(IconItem, { icon: Add, hover: false })),
|
|
3074
|
-
React.createElement("div", { className: cx$
|
|
3075
|
-
isOpen && (React.createElement("span", { className: cx$
|
|
3076
|
+
React.createElement("div", { className: cx$Z('magneto-ui-container') }, children)),
|
|
3077
|
+
isOpen && (React.createElement("span", { className: cx$Z('background-drawer', backgroundClassName), onClick: blockBackgroundClose ? function () { return null; } : onClose })))))));
|
|
3076
3078
|
};
|
|
3077
3079
|
/**
|
|
3078
3080
|
* Molecule UI component for Mobile Drawer
|
|
@@ -3139,10 +3141,10 @@ var Component$2j = function (_a) {
|
|
|
3139
3141
|
};
|
|
3140
3142
|
var ModalResponsive = Component$2j;
|
|
3141
3143
|
|
|
3142
|
-
var cx$
|
|
3144
|
+
var cx$Y = classNames.bind(styles$2j);
|
|
3143
3145
|
var Component$2i = function (_a) {
|
|
3144
3146
|
var children = _a.children, className = _a.className, mobileClassName = _a.mobileClassName, open = _a.open, onClose = _a.onClose;
|
|
3145
|
-
return (React.createElement(ModalResponsive, { open: open, onClose: onClose, modalClassName: cx$
|
|
3147
|
+
return (React.createElement(ModalResponsive, { open: open, onClose: onClose, modalClassName: cx$Y('alert-modal', className), mobileDrawerClassName: cx$Y('alert-modal__mobile', mobileClassName) }, children));
|
|
3146
3148
|
};
|
|
3147
3149
|
var AlertJobModal = Object.assign(Component$2i, {
|
|
3148
3150
|
Header: AlertJobModalHeader,
|
|
@@ -3157,15 +3159,15 @@ var styles$2h = {"alert-job":"mg_alert_job_status_alert-job_1qnyy","normal":"mg_
|
|
|
3157
3159
|
|
|
3158
3160
|
var styles$2g = {"alert-job__content":"mg_alert_job_status_container_alert-job_content_g6vk0"};
|
|
3159
3161
|
|
|
3160
|
-
var cx$
|
|
3162
|
+
var cx$X = classNames.bind(styles$2g);
|
|
3161
3163
|
var AlertJobStatusContainer = function (_a) {
|
|
3162
3164
|
var className = _a.className, children = _a.children;
|
|
3163
|
-
return React.createElement("div", { className: cx$
|
|
3165
|
+
return React.createElement("div", { className: cx$X('alert-job__content', className) }, children);
|
|
3164
3166
|
};
|
|
3165
3167
|
|
|
3166
3168
|
var styles$2f = {"alert-job__icon":"mg_alert_job_status_icon_alert-job_icon_1d1sg"};
|
|
3167
3169
|
|
|
3168
|
-
var cx$
|
|
3170
|
+
var cx$W = classNames.bind(styles$2f);
|
|
3169
3171
|
var alertIcons = {
|
|
3170
3172
|
success: Checked2,
|
|
3171
3173
|
warning: Warning3D
|
|
@@ -3174,23 +3176,23 @@ var AlertJobStatusIcon = function (_a) {
|
|
|
3174
3176
|
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;
|
|
3175
3177
|
var customWidth = size ? { width: size + 'px' } : {};
|
|
3176
3178
|
var iconByType = useMemo(function () { return alertIcons[type]; }, [type]);
|
|
3177
|
-
return (React.createElement("img", { style: customWidth, className: cx$
|
|
3179
|
+
return (React.createElement("img", { style: customWidth, className: cx$W('alert-job__icon', className), src: src !== null && src !== void 0 ? src : iconByType, alt: alt !== null && alt !== void 0 ? alt : "icon-item", loading: "lazy" }));
|
|
3178
3180
|
};
|
|
3179
3181
|
|
|
3180
3182
|
var styles$2e = {"alert-modal__button":"mg_alert_job_status_button_alert-modal_button_d8bsk"};
|
|
3181
3183
|
|
|
3182
|
-
var cx$
|
|
3184
|
+
var cx$V = classNames.bind(styles$2e);
|
|
3183
3185
|
var AlertJobStatusButton = function (_a) {
|
|
3184
3186
|
var className = _a.className, children = _a.children, _b = _a.icon, icon = _b === void 0 ? ArrowRightWhite : _b, _c = _a.sizeIcon, sizeIcon = _c === void 0 ? 14 : _c, buttonProps = __rest(_a, ["className", "children", "icon", "sizeIcon"]);
|
|
3185
|
-
return (React.createElement("button", __assign({ className: cx$
|
|
3187
|
+
return (React.createElement("button", __assign({ className: cx$V('alert-modal__button', className) }, buttonProps),
|
|
3186
3188
|
React.createElement("p", null, children),
|
|
3187
3189
|
React.createElement(IconItem, { alt: "arrow-icon", hover: false, icon: icon, size: sizeIcon })));
|
|
3188
3190
|
};
|
|
3189
3191
|
|
|
3190
|
-
var cx$
|
|
3192
|
+
var cx$U = classNames.bind(styles$2h);
|
|
3191
3193
|
var Component$2h = function (_a) {
|
|
3192
3194
|
var children = _a.children, className = _a.className, type = _a.type;
|
|
3193
|
-
return React.createElement("div", { className: cx$
|
|
3195
|
+
return React.createElement("div", { className: cx$U('alert-job', className, type) }, children);
|
|
3194
3196
|
};
|
|
3195
3197
|
var AlertJobStatus = Object.assign(Component$2h, {
|
|
3196
3198
|
Container: AlertJobStatusContainer,
|
|
@@ -3205,8 +3207,17 @@ var Component$2g = function (_a) {
|
|
|
3205
3207
|
var maxHeight = _a.maxHeight, data = _a.data, mean = _a.mean, texts = _a.texts;
|
|
3206
3208
|
var minValue = useMemo(function () { return data[0].bin[0]; }, [data]);
|
|
3207
3209
|
var maxValue = useMemo(function () { return data[data.length - 1].bin[1]; }, [data]);
|
|
3210
|
+
var _b = useMemo(function () {
|
|
3211
|
+
var getHeightPercentage = function (_a) {
|
|
3212
|
+
var heightPercentage = _a.heightPercentage;
|
|
3213
|
+
return heightPercentage;
|
|
3214
|
+
};
|
|
3215
|
+
var shorterBar = Math.min.apply(Math, data.map(getHeightPercentage));
|
|
3216
|
+
var talestBar = Math.max.apply(Math, data.map(getHeightPercentage));
|
|
3217
|
+
return { talestBar: talestBar, shorterBar: shorterBar };
|
|
3218
|
+
}, [data]), talestBar = _b.talestBar, shorterBar = _b.shorterBar;
|
|
3208
3219
|
return (React.createElement("div", { className: styles$2d['magneto-ui-chart-bars'] },
|
|
3209
|
-
React.createElement("div", { className: styles$2d['magneto-ui-chart-bars__chart'] }, data.map(function (bar, key) { return (React.createElement(BarChart, __assign({ key: key }, bar, { jobText: texts.jobs, maxHeight: maxHeight }))); })),
|
|
3220
|
+
React.createElement("div", { className: styles$2d['magneto-ui-chart-bars__chart'] }, data.map(function (bar, key) { return (React.createElement(BarChart, __assign({ key: key }, bar, { jobText: texts.jobs, maxHeight: maxHeight, point: talestBar == bar.heightPercentage || shorterBar == bar.heightPercentage ? '#1a324c' : undefined }))); })),
|
|
3210
3221
|
React.createElement("div", { className: styles$2d['magneto-ui-chart-bars__minmax'] },
|
|
3211
3222
|
React.createElement("p", null,
|
|
3212
3223
|
" ",
|
|
@@ -3461,13 +3472,13 @@ var styles$26 = {"magneto-ui-candidate-profile":"mg_candidate_profile_magneto-ui
|
|
|
3461
3472
|
|
|
3462
3473
|
var styles$25 = {"magneto-ui-candidate-profile-avatar":"mg_candidate_profile_avatar_magneto-ui-candidate-profile-avatar_1849j","magneto-ui-candidate-profile-avatar__picture":"mg_candidate_profile_avatar_magneto-ui-candidate-profile-avatar_picture_1849j","magneto-ui-candidate-profile-avatar__score":"mg_candidate_profile_avatar_magneto-ui-candidate-profile-avatar_score_1849j"};
|
|
3463
3474
|
|
|
3464
|
-
var cx$
|
|
3475
|
+
var cx$T = classNames.bind(styles$25);
|
|
3465
3476
|
var Component$29 = function (_a) {
|
|
3466
3477
|
var avatar = _a.avatar, score = _a.score, props = __rest(_a, ["avatar", "score"]);
|
|
3467
|
-
return (React.createElement("div", __assign({ className: cx$
|
|
3468
|
-
React.createElement("picture", { className: cx$
|
|
3478
|
+
return (React.createElement("div", __assign({ className: cx$T('magneto-ui-candidate-profile-avatar') }, props),
|
|
3479
|
+
React.createElement("picture", { className: cx$T('magneto-ui-candidate-profile-avatar__picture') },
|
|
3469
3480
|
React.createElement(Avatar, __assign({}, avatar))),
|
|
3470
|
-
score && (React.createElement("div", { className: cx$
|
|
3481
|
+
score && (React.createElement("div", { className: cx$T('magneto-ui-candidate-profile-avatar__score') },
|
|
3471
3482
|
React.createElement(RatingBadge, { score: score })))));
|
|
3472
3483
|
};
|
|
3473
3484
|
/**
|
|
@@ -3477,11 +3488,11 @@ var CandidateProfileAvatar = Component$29;
|
|
|
3477
3488
|
|
|
3478
3489
|
var styles$24 = {"magneto-ui-candidate-profile-body":"mg_candidate_profile_body_magneto-ui-candidate-profile-body_z5hdu","magneto-ui-candidate-profile-body--open":"mg_candidate_profile_body_magneto-ui-candidate-profile-body--open_z5hdu"};
|
|
3479
3490
|
|
|
3480
|
-
var cx$
|
|
3491
|
+
var cx$S = classNames.bind(styles$24);
|
|
3481
3492
|
var Component$28 = function (_a) {
|
|
3482
3493
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
3483
3494
|
var open = Collapse.useCollapse().open;
|
|
3484
|
-
return (React.createElement(Collapse.Body, __assign({ className: cx$
|
|
3495
|
+
return (React.createElement(Collapse.Body, __assign({ className: cx$S('magneto-ui-candidate-profile-body', {
|
|
3485
3496
|
'magneto-ui-candidate-profile-body--open': open
|
|
3486
3497
|
}) }, props), children));
|
|
3487
3498
|
};
|
|
@@ -3492,11 +3503,11 @@ var CandidateProfileBody = Component$28;
|
|
|
3492
3503
|
|
|
3493
3504
|
var styles$23 = {"magneto-ui-candidate-profile-header":"mg_candidate_profile_header_magneto-ui-candidate-profile-header_1x5m8","magneto-ui-candidate-profile-header--open":"mg_candidate_profile_header_magneto-ui-candidate-profile-header--open_1x5m8"};
|
|
3494
3505
|
|
|
3495
|
-
var cx$
|
|
3506
|
+
var cx$R = classNames.bind(styles$23);
|
|
3496
3507
|
var Component$27 = function (_a) {
|
|
3497
3508
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
|
3498
3509
|
var open = Collapse.useCollapse().open;
|
|
3499
|
-
return (React.createElement(Collapse.Header, __assign({ className: cx$
|
|
3510
|
+
return (React.createElement(Collapse.Header, __assign({ className: cx$R('magneto-ui-candidate-profile-header', className, {
|
|
3500
3511
|
'magneto-ui-candidate-profile-header--open': open
|
|
3501
3512
|
}) }, props), children));
|
|
3502
3513
|
};
|
|
@@ -3507,7 +3518,7 @@ var CandidateProfileHeader = Component$27;
|
|
|
3507
3518
|
|
|
3508
3519
|
var styles$22 = {"magneto-ui-candidate-profile-toggler":"mg_candidate_profile_toggler_magneto-ui-candidate-profile-toggler_r3x9t","magneto-ui-candidate-profile-toggler--open":"mg_candidate_profile_toggler_magneto-ui-candidate-profile-toggler--open_r3x9t"};
|
|
3509
3520
|
|
|
3510
|
-
var cx$
|
|
3521
|
+
var cx$Q = classNames.bind(styles$22);
|
|
3511
3522
|
var Component$26 = function (_a) {
|
|
3512
3523
|
var className = _a.className, onClick = _a.onClick, props = __rest(_a, ["className", "onClick"]);
|
|
3513
3524
|
var _b = Collapse.useCollapse(), open = _b.open, onChangeOpen = _b.onChangeOpen;
|
|
@@ -3515,7 +3526,7 @@ var Component$26 = function (_a) {
|
|
|
3515
3526
|
onClick === null || onClick === void 0 ? void 0 : onClick(evt);
|
|
3516
3527
|
onChangeOpen(!open);
|
|
3517
3528
|
}, [open, onChangeOpen, onClick]);
|
|
3518
|
-
return (React.createElement(Collapse.Toggler, __assign({}, props, { className: cx$
|
|
3529
|
+
return (React.createElement(Collapse.Toggler, __assign({}, props, { className: cx$Q('magneto-ui-candidate-profile-toggler', className, {
|
|
3519
3530
|
'magneto-ui-candidate-profile-toggler--open': open
|
|
3520
3531
|
}), onClick: handleOnClick }),
|
|
3521
3532
|
React.createElement(IconItem, { icon: ArrowDownGreen, hover: false })));
|
|
@@ -3533,11 +3544,11 @@ var children = /*#__PURE__*/Object.freeze({
|
|
|
3533
3544
|
Toggler: CandidateProfileToggler
|
|
3534
3545
|
});
|
|
3535
3546
|
|
|
3536
|
-
var cx$
|
|
3547
|
+
var cx$P = classNames.bind(styles$26);
|
|
3537
3548
|
var Component$25 = function (_a) {
|
|
3538
3549
|
var children = _a.children, className = _a.className, _b = _a.defaultOpen, defaultOpen = _b === void 0 ? true : _b, onChangeOpen = _a.onChangeOpen, open = _a.open, props = __rest(_a, ["children", "className", "defaultOpen", "onChangeOpen", "open"]);
|
|
3539
3550
|
return (React.createElement(Collapse.Provider, { defaultOpen: defaultOpen, open: open, onChangeOpen: onChangeOpen },
|
|
3540
|
-
React.createElement("article", __assign({ className: cx$
|
|
3551
|
+
React.createElement("article", __assign({ className: cx$P('magneto-ui-candidate-profile', className) }, props), children)));
|
|
3541
3552
|
};
|
|
3542
3553
|
/**
|
|
3543
3554
|
* Molecule UI component of candidate profile
|
|
@@ -4277,7 +4288,7 @@ var HeaderTabs = Component$1P;
|
|
|
4277
4288
|
|
|
4278
4289
|
var styles$1K = {"magneto-ui-horizontal-menu":"mg_horizontal_menu_magneto-ui-horizontal-menu_1m6q0","magneto-ui-horizontal-menu__back":"mg_horizontal_menu_magneto-ui-horizontal-menu_back_1m6q0","magneto-ui-horizontal-menu__nav":"mg_horizontal_menu_magneto-ui-horizontal-menu_nav_1m6q0","magneto-ui-horizontal-menu__list":"mg_horizontal_menu_magneto-ui-horizontal-menu_list_1m6q0","magneto-ui-horizontal-menu__button":"mg_horizontal_menu_magneto-ui-horizontal-menu_button_1m6q0","magneto-ui-horizontal-menu__button--active":"mg_horizontal_menu_magneto-ui-horizontal-menu_button--active_1m6q0"};
|
|
4279
4290
|
|
|
4280
|
-
var cx$
|
|
4291
|
+
var cx$O = classNames.bind(styles$1K);
|
|
4281
4292
|
var Component$1O = function (_a) {
|
|
4282
4293
|
var className = _a.className, options = _a.options, onChange = _a.onChange, onClick = _a.onClick;
|
|
4283
4294
|
var _b = useState(0), selectedItem = _b[0], setSelectedItem = _b[1];
|
|
@@ -4288,13 +4299,13 @@ var Component$1O = function (_a) {
|
|
|
4288
4299
|
}, [selectedItem, onChange]);
|
|
4289
4300
|
if (!options || !Array.isArray(options))
|
|
4290
4301
|
return null;
|
|
4291
|
-
return (React.createElement("header", { className: cx$
|
|
4292
|
-
React.createElement("button", { className: cx$
|
|
4302
|
+
return (React.createElement("header", { className: cx$O('magneto-ui-horizontal-menu', className) },
|
|
4303
|
+
React.createElement("button", { className: cx$O('magneto-ui-horizontal-menu__back'), onClick: function () { return onClick === null || onClick === void 0 ? void 0 : onClick(); } },
|
|
4293
4304
|
React.createElement(IconItem, { icon: ArrowLeft2, size: 20 })),
|
|
4294
|
-
React.createElement("nav", { className: cx$
|
|
4295
|
-
React.createElement("ul", { className: cx$
|
|
4305
|
+
React.createElement("nav", { className: cx$O('magneto-ui-horizontal-menu__nav') },
|
|
4306
|
+
React.createElement("ul", { className: cx$O('magneto-ui-horizontal-menu__list') }, options.map(function (_a, key) {
|
|
4296
4307
|
var icon = _a.icon, title = _a.title;
|
|
4297
|
-
return (React.createElement("li", { key: key, className: cx$
|
|
4308
|
+
return (React.createElement("li", { key: key, className: cx$O('magneto-ui-horizontal-menu__button', {
|
|
4298
4309
|
'magneto-ui-horizontal-menu__button--active': selectedItem === key
|
|
4299
4310
|
}) },
|
|
4300
4311
|
React.createElement(Button, { suffixIcon: icon, buttonText: title, onClick: function () { return setSelectedItem(key); } })));
|
|
@@ -4505,7 +4516,7 @@ var JobApplyCard = Component$1L;
|
|
|
4505
4516
|
|
|
4506
4517
|
var styles$1E = {"option":"mg_vacant_option_mobile_option_10cgk","option--link":"mg_vacant_option_mobile_option--link_10cgk","option--button":"mg_vacant_option_mobile_option--button_10cgk","icon--big":"mg_vacant_option_mobile_icon--big_10cgk"};
|
|
4507
4518
|
|
|
4508
|
-
var cx$
|
|
4519
|
+
var cx$N = classNames.bind(styles$1E);
|
|
4509
4520
|
var VacantOptionMobile = function (_a) {
|
|
4510
4521
|
var option = _a.option, onClick = _a.onClick, onMenu = _a.onMenu;
|
|
4511
4522
|
var handleClick = function () {
|
|
@@ -4522,13 +4533,13 @@ var VacantOptionMobile = function (_a) {
|
|
|
4522
4533
|
? ShareIcons[option.icon].icon
|
|
4523
4534
|
: option.icon;
|
|
4524
4535
|
if (option.type === 'link') {
|
|
4525
|
-
return (React.createElement("a", { href: option.href, target: "_blank", rel: "noopener noreferrer", className: cx$
|
|
4536
|
+
return (React.createElement("a", { href: option.href, target: "_blank", rel: "noopener noreferrer", className: cx$N('option', 'option--link', option.className) },
|
|
4526
4537
|
option.icon ? React.createElement(IconItem, { size: 18, icon: icon }) : null,
|
|
4527
4538
|
" ",
|
|
4528
4539
|
option.label));
|
|
4529
4540
|
}
|
|
4530
4541
|
if (option.type === 'button' || option.type === 'menu') {
|
|
4531
|
-
return (React.createElement("button", { className: cx$
|
|
4542
|
+
return (React.createElement("button", { className: cx$N('option', 'option--button', option.className), onClick: handleClick, type: "button" },
|
|
4532
4543
|
option.icon ? React.createElement(IconItem, { size: 18, icon: icon }) : null,
|
|
4533
4544
|
" ",
|
|
4534
4545
|
option.label));
|
|
@@ -4538,7 +4549,7 @@ var VacantOptionMobile = function (_a) {
|
|
|
4538
4549
|
|
|
4539
4550
|
var styles$1D = {"button":"mg_job_card_option_drawer_button_1b6xo","button-back":"mg_job_card_option_drawer_button-back_1b6xo","drawer":"mg_job_card_option_drawer_drawer_1b6xo","drawer__title":"mg_job_card_option_drawer_drawer_title_1b6xo","drawer__company":"mg_job_card_option_drawer_drawer_company_1b6xo","drawer__header":"mg_job_card_option_drawer_drawer_header_1b6xo"};
|
|
4540
4551
|
|
|
4541
|
-
var cx$
|
|
4552
|
+
var cx$M = classNames.bind(styles$1D);
|
|
4542
4553
|
var JobCardOptionDrawer = function (_a) {
|
|
4543
4554
|
var title = _a.title, company = _a.company, menu = _a.menu, backText = _a.backText;
|
|
4544
4555
|
var _b = useState(false), isOpen = _b[0], setOpen = _b[1];
|
|
@@ -4563,17 +4574,17 @@ var JobCardOptionDrawer = function (_a) {
|
|
|
4563
4574
|
};
|
|
4564
4575
|
}, [handleMenu, menu]);
|
|
4565
4576
|
return (React.createElement(React.Fragment, null,
|
|
4566
|
-
React.createElement("button", { onClick: toggle, className: cx$
|
|
4577
|
+
React.createElement("button", { onClick: toggle, className: cx$M('button'), type: "button" },
|
|
4567
4578
|
React.createElement(IconItem, { icon: More, size: 18 })),
|
|
4568
|
-
React.createElement(MobileDrawer, { className: cx$
|
|
4569
|
-
React.createElement("header", { className: cx$
|
|
4579
|
+
React.createElement(MobileDrawer, { className: cx$M('drawer'), isOpen: isOpen, onClose: toggle },
|
|
4580
|
+
React.createElement("header", { className: cx$M('drawer__header') },
|
|
4570
4581
|
showBack ? (React.createElement("section", null,
|
|
4571
|
-
React.createElement("button", { type: "button", className: cx$
|
|
4582
|
+
React.createElement("button", { type: "button", className: cx$M('button-back'), onClick: function () { return handleMenu(menu, false); } },
|
|
4572
4583
|
React.createElement(IconItem, { icon: ArrowLeft2, size: 20 }),
|
|
4573
4584
|
" ",
|
|
4574
4585
|
backText))) : null,
|
|
4575
|
-
React.createElement("h4", { className: cx$
|
|
4576
|
-
React.createElement("h5", { className: cx$
|
|
4586
|
+
React.createElement("h4", { className: cx$M('drawer__title') }, title),
|
|
4587
|
+
React.createElement("h5", { className: cx$M('drawer__company') }, company)),
|
|
4577
4588
|
React.createElement("div", null, options.map(function (option, index) { return (React.createElement(VacantOptionMobile, { key: index + option.label, option: option, onMenu: handleMenu, onClick: function () {
|
|
4578
4589
|
toggle();
|
|
4579
4590
|
handleMenu(menu, false);
|
|
@@ -4582,7 +4593,7 @@ var JobCardOptionDrawer = function (_a) {
|
|
|
4582
4593
|
|
|
4583
4594
|
var styles$1C = {"option":"mg_vacant_option_option_14jrn","option--link":"mg_vacant_option_option--link_14jrn","option--menu":"mg_vacant_option_option--menu_14jrn","option--menu-open":"mg_vacant_option_option--menu-open_14jrn","option__menu-list":"mg_vacant_option_option_menu-list_14jrn","option--button":"mg_vacant_option_option--button_14jrn","icon--big":"mg_vacant_option_icon--big_14jrn"};
|
|
4584
4595
|
|
|
4585
|
-
var cx$
|
|
4596
|
+
var cx$L = classNames.bind(styles$1C);
|
|
4586
4597
|
var VacantOption = function (_a) {
|
|
4587
4598
|
var option = _a.option, onClick = _a.onClick;
|
|
4588
4599
|
var _b = useState(false), open = _b[0], setOpen = _b[1];
|
|
@@ -4597,16 +4608,16 @@ var VacantOption = function (_a) {
|
|
|
4597
4608
|
? ShareIcons[option.icon].icon
|
|
4598
4609
|
: option.icon;
|
|
4599
4610
|
if (option.type === 'menu') {
|
|
4600
|
-
return (React.createElement(MenuDropdown, { title: option.label, opened: open, onClick: setOpen, prefixIcon: { icon: icon, size: 18 }, suffixIcon: { icon: ArrowDown2 }, className: cx$
|
|
4611
|
+
return (React.createElement(MenuDropdown, { title: option.label, opened: open, onClick: setOpen, prefixIcon: { icon: icon, size: 18 }, suffixIcon: { icon: ArrowDown2 }, className: cx$L('option', 'option--menu', { 'option--menu-open': open }, option.className), listClassName: cx$L('option__menu-list') }, option.children.map(function (child) { return (React.createElement(VacantOption, { onClick: handleClick, key: child.label, option: child })); })));
|
|
4601
4612
|
}
|
|
4602
4613
|
if (option.type === 'link') {
|
|
4603
|
-
return (React.createElement("a", { href: option.href, target: "_blank", rel: "noopener noreferrer", className: cx$
|
|
4614
|
+
return (React.createElement("a", { href: option.href, target: "_blank", rel: "noopener noreferrer", className: cx$L('option', 'option--link', option.className) },
|
|
4604
4615
|
option.icon ? React.createElement(IconItem, { size: 18, icon: icon }) : null,
|
|
4605
4616
|
" ",
|
|
4606
4617
|
option.label));
|
|
4607
4618
|
}
|
|
4608
4619
|
if (option.type === 'button') {
|
|
4609
|
-
return (React.createElement("button", { className: cx$
|
|
4620
|
+
return (React.createElement("button", { className: cx$L('option', 'option--button', option.className), onClick: handleClick, type: "button" },
|
|
4610
4621
|
option.icon ? React.createElement(IconItem, { size: 18, icon: icon }) : null,
|
|
4611
4622
|
" ",
|
|
4612
4623
|
option.label));
|
|
@@ -4616,7 +4627,7 @@ var VacantOption = function (_a) {
|
|
|
4616
4627
|
|
|
4617
4628
|
var styles$1B = {"popover--open":"mg_job_card_option_popover--open_12kph","popover":"mg_job_card_option_popover_12kph","button":"mg_job_card_option_button_12kph"};
|
|
4618
4629
|
|
|
4619
|
-
var cx$
|
|
4630
|
+
var cx$K = classNames.bind(styles$1B);
|
|
4620
4631
|
var JobCardOption = function (_a) {
|
|
4621
4632
|
var _b = _a.clickOut, clickOut = _b === void 0 ? false : _b, _c = _a.setClickOut, setClickOut = _c === void 0 ? stubUndefined : _c, menu = _a.menu;
|
|
4622
4633
|
var ref = useRef(null);
|
|
@@ -4632,8 +4643,8 @@ var JobCardOption = function (_a) {
|
|
|
4632
4643
|
(_a = window === null || window === void 0 ? void 0 : window.removeEventListener) === null || _a === void 0 ? void 0 : _a.call(window, 'blur', onBlurWindow);
|
|
4633
4644
|
};
|
|
4634
4645
|
}, [setClickOut]);
|
|
4635
|
-
return (React.createElement(Popover, { className: cx$
|
|
4636
|
-
React.createElement("button", { type: "button", className: cx$
|
|
4646
|
+
return (React.createElement(Popover, { className: cx$K('popover', { 'popover--open': clickOut }), content: React.createElement("div", { onBlur: toggle, ref: ref }, menu.map(function (option) { return (React.createElement(VacantOption, { key: option.label, onClick: toggle, option: option })); })), show: clickOut, widthBase: 35, positionX: "left", positionY: "bottom" },
|
|
4647
|
+
React.createElement("button", { type: "button", className: cx$K('button'), onClick: function () {
|
|
4637
4648
|
setClickOut(function (prev) {
|
|
4638
4649
|
var _a;
|
|
4639
4650
|
if (!prev) {
|
|
@@ -4663,7 +4674,7 @@ var useWithElement = function (ref) {
|
|
|
4663
4674
|
return width;
|
|
4664
4675
|
};
|
|
4665
4676
|
|
|
4666
|
-
var cx$
|
|
4677
|
+
var cx$J = classNames.bind(style$M);
|
|
4667
4678
|
var getJobSubtitle = function (companyName) {
|
|
4668
4679
|
var args = [];
|
|
4669
4680
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
@@ -4684,28 +4695,28 @@ var JobCardDesktop = function (_a) {
|
|
|
4684
4695
|
}
|
|
4685
4696
|
return cities === null || cities === void 0 ? void 0 : cities.join(', ');
|
|
4686
4697
|
}, [cities]);
|
|
4687
|
-
return (React.createElement("div", { className: cx$
|
|
4688
|
-
React.createElement("article", { onClick: showDetail, className: cx$
|
|
4689
|
-
!isCompanyPage && (React.createElement("div", { className: cx$
|
|
4698
|
+
return (React.createElement("div", { className: cx$J("".concat(classMUI, "-card-jobs__container"), jobOpen && "".concat(classMUI, "-card-jobs--job-open")) },
|
|
4699
|
+
React.createElement("article", { onClick: showDetail, className: cx$J("".concat(classMUI, "-card-jobs"), urgent && "".concat(classMUI, "-card-jobs--urgent")) },
|
|
4700
|
+
!isCompanyPage && (React.createElement("div", { className: cx$J("".concat(classMUI, "-card-jobs__brand")) },
|
|
4690
4701
|
React.createElement("div", null,
|
|
4691
|
-
React.createElement("img", { className: cx$
|
|
4692
|
-
React.createElement("div", { className: cx$
|
|
4693
|
-
React.createElement("section", { className: cx$
|
|
4694
|
-
React.createElement("span", { className: cx$
|
|
4695
|
-
React.createElement("section", { ref: optionsRef, className: cx$
|
|
4696
|
-
React.createElement("h2", { className: cx$
|
|
4697
|
-
React.createElement("a", { href: "".concat(dynamicUrl, "/").concat(jobSlug), title: title, target: "_blank", rel: "noreferrer", onClick: function (e) { return e.preventDefault(); }, className: cx$
|
|
4698
|
-
React.createElement("h3", { className: cx$
|
|
4699
|
-
React.createElement("p", { className: cx$
|
|
4700
|
-
React.createElement("p", { className: cx$
|
|
4701
|
-
React.createElement("div", { style: { width: width || 300 }, className: cx$
|
|
4702
|
-
React.createElement("div", { className: cx$
|
|
4703
|
-
React.createElement(IconItem, { className: cx$
|
|
4702
|
+
React.createElement("img", { className: cx$J("".concat(classMUI, "-card-jobs__brand-img")), alt: companySlug ? companySlug : 'company-slug', src: companyLogo ? companyLogo : NoLogo, loading: "lazy", width: '67px', height: '67px' })))),
|
|
4703
|
+
React.createElement("div", { className: cx$J("".concat(classMUI, "-card-jobs__data")) },
|
|
4704
|
+
React.createElement("section", { className: cx$J("".concat(classMUI, "-card-jobs__header")) },
|
|
4705
|
+
React.createElement("span", { className: cx$J("".concat(classMUI, "-card-jobs__text"), "".concat(classMUI, "-card-jobs__published")) }, formatPublishDate),
|
|
4706
|
+
React.createElement("section", { ref: optionsRef, className: cx$J("".concat(classMUI, "-card-jobs__options"), 'opciones') })),
|
|
4707
|
+
React.createElement("h2", { className: cx$J("".concat(classMUI, "-card-jobs__text"), "".concat(classMUI, "-card-jobs__text--big"), "".concat(classMUI, "-card-jobs__text--bold")) },
|
|
4708
|
+
React.createElement("a", { href: "".concat(dynamicUrl, "/").concat(jobSlug), title: title, target: "_blank", rel: "noreferrer", onClick: function (e) { return e.preventDefault(); }, className: cx$J("".concat(classMUI, "-card-jobs__a")) }, title)),
|
|
4709
|
+
React.createElement("h3", { className: cx$J("".concat(classMUI, "-card-jobs__text")) }, getJobSubtitle(companyName, contractType)),
|
|
4710
|
+
React.createElement("p", { className: cx$J("".concat(classMUI, "-card-jobs__text")) }, salary),
|
|
4711
|
+
React.createElement("p", { className: cx$J("".concat(classMUI, "-card-jobs__text")) }, citiesformatted))),
|
|
4712
|
+
React.createElement("div", { style: { width: width || 300 }, className: cx$J("".concat(classMUI, "-card-jobs__render-right")) },
|
|
4713
|
+
React.createElement("div", { className: cx$J("".concat(classMUI, "-card-jobs__white-space")), onClick: function () { return showDetail === null || showDetail === void 0 ? void 0 : showDetail(); } }, urgent ? (React.createElement("span", { className: cx$J("".concat(classMUI, "-card-jobs__urgent"), "".concat(classMUI, "-card-jobs__text--small")) },
|
|
4714
|
+
React.createElement(IconItem, { className: cx$J("".concat(classMUI, "-card-jobs__urgent-icon")), icon: Urgent, size: 14 }),
|
|
4704
4715
|
" ",
|
|
4705
4716
|
urgent)) : null),
|
|
4706
4717
|
renderRight ? renderRight() : null,
|
|
4707
|
-
React.createElement("button", { className: cx$
|
|
4708
|
-
React.createElement(IconItem, { icon: ArrowLeft2, size: 16, className: cx$
|
|
4718
|
+
React.createElement("button", { className: cx$J("".concat(classMUI, "-card-jobs__button")), onClick: function () { return showDetail === null || showDetail === void 0 ? void 0 : showDetail(); } },
|
|
4719
|
+
React.createElement(IconItem, { icon: ArrowLeft2, size: 16, className: cx$J("".concat(classMUI, "-card-jobs__arrow")) })))));
|
|
4709
4720
|
};
|
|
4710
4721
|
|
|
4711
4722
|
var JobCard = function (_a) {
|
|
@@ -5456,7 +5467,7 @@ var QUALIFICATION = [
|
|
|
5456
5467
|
|
|
5457
5468
|
var styles$1l = {"magneto-ui-qualification":"mg_qualification_magneto-ui-qualification_a2ncq","magneto-ui-qualification__star":"mg_qualification_magneto-ui-qualification_star_a2ncq"};
|
|
5458
5469
|
|
|
5459
|
-
var cx$
|
|
5470
|
+
var cx$I = classNames.bind(styles$1l);
|
|
5460
5471
|
var Component$1y = function (_a) {
|
|
5461
5472
|
var _b = _a.rating, rating = _b === void 0 ? -1 : _b, onClick = _a.onClick;
|
|
5462
5473
|
var _c = useState(-1), qualification = _c[0], setQualification = _c[1];
|
|
@@ -5470,9 +5481,9 @@ var Component$1y = function (_a) {
|
|
|
5470
5481
|
setQualification(Math.round(rating) - 1);
|
|
5471
5482
|
}
|
|
5472
5483
|
}, [rating]);
|
|
5473
|
-
return (React.createElement("ul", { className: cx$
|
|
5484
|
+
return (React.createElement("ul", { className: cx$I('magneto-ui-qualification') }, QUALIFICATION.map(function (_a, index) {
|
|
5474
5485
|
var alt = _a.alt, icon = _a.icon, iconHover = _a.iconHover, iconSelect = _a.iconSelect;
|
|
5475
|
-
return (React.createElement("li", { className: cx$
|
|
5486
|
+
return (React.createElement("li", { className: cx$I('magneto-ui-qualification__star'), onMouseEnter: function () { return setHover(index); }, onMouseLeave: function () { return setHover(-1); }, onClick: function () { return onClickQualification(index); }, key: "qualification-star-".concat(index) },
|
|
5476
5487
|
React.createElement("img", { alt: alt, src: index <= Number(qualification) ? iconSelect : index <= Number(hover) ? iconHover : icon })));
|
|
5477
5488
|
})));
|
|
5478
5489
|
};
|
|
@@ -5602,27 +5613,27 @@ var styles$1g = {"similar-card":"mg_similar_card_similar-card_8mo62","similar-ca
|
|
|
5602
5613
|
|
|
5603
5614
|
var styles$1f = {"similar-card-logo":"mg_similar_card_logo_similar-card-logo_1adpr"};
|
|
5604
5615
|
|
|
5605
|
-
var cx$
|
|
5616
|
+
var cx$H = classNames.bind(styles$1f);
|
|
5606
5617
|
var Component$1t = function (_a) {
|
|
5607
5618
|
var className = _a.className, src = _a.src, alt = _a.alt, _b = _a.hideLogo, hideLogo = _b === void 0 ? false : _b;
|
|
5608
5619
|
if (hideLogo)
|
|
5609
5620
|
return null;
|
|
5610
|
-
return (React.createElement("img", { className: cx$
|
|
5621
|
+
return (React.createElement("img", { className: cx$H("similar-card-logo", className), src: src || NoLogo, alt: (alt === null || alt === void 0 ? void 0 : alt.toLowerCase()) || 'company-logo' }));
|
|
5611
5622
|
};
|
|
5612
5623
|
var SimilarCardLogo = Component$1t;
|
|
5613
5624
|
|
|
5614
|
-
var cx$
|
|
5625
|
+
var cx$G = classNames.bind(styles$1g);
|
|
5615
5626
|
var Component$1s = function (_a) {
|
|
5616
5627
|
var className = _a.className, src = _a.src, alt = _a.alt, _b = _a.showIconMobile, showIconMobile = _b === void 0 ? false : _b;
|
|
5617
5628
|
return (React.createElement(React.Fragment, null,
|
|
5618
|
-
React.createElement(IconItem, { className: cx$
|
|
5629
|
+
React.createElement(IconItem, { className: cx$G('similar-card__arrow', { 'similar-card__arrow-mobile': !showIconMobile }, className), icon: src || ArrowRight2, alt: (alt === null || alt === void 0 ? void 0 : alt.toLowerCase()) || 'card-icon' })));
|
|
5619
5630
|
};
|
|
5620
5631
|
var SimilarCardIcon = Component$1s;
|
|
5621
5632
|
|
|
5622
|
-
var cx$
|
|
5633
|
+
var cx$F = classNames.bind(styles$1g);
|
|
5623
5634
|
var Component$1r = function (_a) {
|
|
5624
5635
|
var children = _a.children, _b = _a.title, title = _b === void 0 ? 'jobLink' : _b, _c = _a.jobUrlSlug, jobUrlSlug = _c === void 0 ? '#' : _c, className = _a.className;
|
|
5625
|
-
return (React.createElement("a", { className: cx$
|
|
5636
|
+
return (React.createElement("a", { className: cx$F("similar-card", className), href: jobUrlSlug, title: title }, children));
|
|
5626
5637
|
};
|
|
5627
5638
|
var SimilarCard = Object.assign(Component$1r, {
|
|
5628
5639
|
Text: TextCustom,
|
|
@@ -5705,25 +5716,35 @@ var TextArea = function (_a) {
|
|
|
5705
5716
|
hasCounter && React.createElement(ComparativeCounter, { current: inputValue === null || inputValue === void 0 ? void 0 : inputValue.length, max: maxCounterValue }))));
|
|
5706
5717
|
};
|
|
5707
5718
|
|
|
5708
|
-
var
|
|
5719
|
+
var TimeLineItemStatus;
|
|
5720
|
+
(function (TimeLineItemStatus) {
|
|
5721
|
+
TimeLineItemStatus["CHECKED"] = "checked";
|
|
5722
|
+
TimeLineItemStatus["CURRENT"] = "current";
|
|
5723
|
+
TimeLineItemStatus["BLOCKED"] = "blocked";
|
|
5724
|
+
TimeLineItemStatus["UNLOCKED"] = "unlocked";
|
|
5725
|
+
})(TimeLineItemStatus || (TimeLineItemStatus = {}));
|
|
5709
5726
|
|
|
5710
|
-
var
|
|
5727
|
+
var style$y = {"magneto-ui-timeline-event":"mg_timeline_event_magneto-ui-timeline-event_1mvbj","magneto-ui-timeline-event__icon":"mg_timeline_event_magneto-ui-timeline-event_icon_1mvbj","magneto-ui-timeline-event__icon-bar":"mg_timeline_event_magneto-ui-timeline-event_icon-bar_1mvbj","magneto-ui-timeline-event__icon-bar--checked":"mg_timeline_event_magneto-ui-timeline-event_icon-bar--checked_1mvbj","magneto-ui-timeline-event__icon-bar--current":"mg_timeline_event_magneto-ui-timeline-event_icon-bar--current_1mvbj","magneto-ui-timeline-event__icon-bar--blocked":"mg_timeline_event_magneto-ui-timeline-event_icon-bar--blocked_1mvbj","magneto-ui-timeline-event__icon-bar--unlocked":"mg_timeline_event_magneto-ui-timeline-event_icon-bar--unlocked_1mvbj","magneto-ui-timeline-event__icon-icon":"mg_timeline_event_magneto-ui-timeline-event_icon-icon_1mvbj","magneto-ui-timeline-event__icon-icon--unlocked":"mg_timeline_event_magneto-ui-timeline-event_icon-icon--unlocked_1mvbj","magneto-ui-timeline-event__text":"mg_timeline_event_magneto-ui-timeline-event_text_1mvbj","magneto-ui-timeline-event__text-title":"mg_timeline_event_magneto-ui-timeline-event_text-title_1mvbj","magneto-ui-timeline-event__text-title--blocked":"mg_timeline_event_magneto-ui-timeline-event_text-title--blocked_1mvbj","magneto-ui-timeline-event__text-title--unlocked":"mg_timeline_event_magneto-ui-timeline-event_text-title--unlocked_1mvbj","magneto-ui-timeline-event__text-subtitle":"mg_timeline_event_magneto-ui-timeline-event_text-subtitle_1mvbj","magneto-ui-timeline-event__text-subtitle--current":"mg_timeline_event_magneto-ui-timeline-event_text-subtitle--current_1mvbj","magneto-ui-timeline-event__text-subtitle--blocked":"mg_timeline_event_magneto-ui-timeline-event_text-subtitle--blocked_1mvbj","magneto-ui-timeline-event__text-subtitle--unlocked":"mg_timeline_event_magneto-ui-timeline-event_text-subtitle--unlocked_1mvbj"};
|
|
5728
|
+
|
|
5729
|
+
var BASE_CLASS = "".concat(classMUI, "-timeline-event");
|
|
5730
|
+
var TIMELINE_ICONS = {
|
|
5711
5731
|
checked: Checked,
|
|
5712
5732
|
current: Clock,
|
|
5733
|
+
unlocked: Clock,
|
|
5713
5734
|
blocked: Lock
|
|
5714
5735
|
};
|
|
5736
|
+
|
|
5737
|
+
var cx$E = classNames.bind(style$y);
|
|
5715
5738
|
var Component$1q = function (_a) {
|
|
5716
5739
|
var title = _a.title, subtitle = _a.subtitle, status = _a.status, _b = _a.index, index = _b === void 0 ? 0 : _b, _c = _a.onClick, onClick = _c === void 0 ? function () { return ({}); } : _c;
|
|
5717
|
-
var iconByType = useMemo(function () { return
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
React.createElement(
|
|
5724
|
-
|
|
5725
|
-
React.createElement("p", { className: "".concat(style$y["".concat(classMUI, "-timeline-event__text--title")], " ").concat(titleStyle) }, title),
|
|
5726
|
-
React.createElement("p", { className: "".concat(style$y["".concat(classMUI, "-timeline-event__text--subtitle")], " ").concat(subtitleStyle) }, subtitle))));
|
|
5740
|
+
var iconByType = useMemo(function () { return TIMELINE_ICONS[status]; }, [status]);
|
|
5741
|
+
return (React.createElement("button", { type: "button", onClick: function () { return onClick(status, index); }, className: style$y[BASE_CLASS] },
|
|
5742
|
+
React.createElement("div", { className: cx$E("".concat(BASE_CLASS, "__icon")) },
|
|
5743
|
+
React.createElement("div", { className: cx$E("".concat(BASE_CLASS, "__icon-bar"), "".concat(BASE_CLASS, "__icon-bar--").concat(status)) }),
|
|
5744
|
+
React.createElement(IconItem, { className: cx$E("".concat(BASE_CLASS, "__icon-icon"), "".concat(BASE_CLASS, "__icon-icon--").concat(status)), icon: iconByType, alt: status })),
|
|
5745
|
+
React.createElement("div", { className: cx$E("".concat(BASE_CLASS, "__text")) },
|
|
5746
|
+
React.createElement("p", { className: cx$E("".concat(BASE_CLASS, "__text-title"), "".concat(BASE_CLASS, "__text-title--").concat(status)) }, title),
|
|
5747
|
+
React.createElement("p", { className: cx$E("".concat(BASE_CLASS, "__text-subtitle"), "".concat(BASE_CLASS, "__text-subtitle--").concat(status)) }, subtitle))));
|
|
5727
5748
|
};
|
|
5728
5749
|
var TimelineEvent = Component$1q;
|
|
5729
5750
|
|
|
@@ -6807,13 +6828,13 @@ var MagnetoSocialMedia = function (_a) {
|
|
|
6807
6828
|
}))));
|
|
6808
6829
|
};
|
|
6809
6830
|
|
|
6810
|
-
var style$o = {"mega-menu-cards":"mg_mega_menu_cards_mega-menu-
|
|
6831
|
+
var style$o = {"mega-menu-cards":"mg_mega_menu_cards_mega-menu-cards_2819j","mega-menu-cards__filter":"mg_mega_menu_cards_mega-menu-cards_filter_2819j","mega-menu-cards__title":"mg_mega_menu_cards_mega-menu-cards_title_2819j","mega-menu-cards__action":"mg_mega_menu_cards_mega-menu-cards_action_2819j","mega-menu-cards__action--grey":"mg_mega_menu_cards_mega-menu-cards_action--grey_2819j"};
|
|
6811
6832
|
|
|
6812
6833
|
var MegaMenuCards = function (_a) {
|
|
6813
6834
|
var _b;
|
|
6814
6835
|
var jobs = _a.jobs, action = _a.action, title = _a.title, actionTitle = _a.actionTitle, className = _a.className, filterProps = _a.filterProps, _c = _a.maxCards, maxCards = _c === void 0 ? 39 : _c;
|
|
6815
6836
|
var renderTitle = useMediaQuery(title && (React.createElement("div", { className: "".concat(style$o["mega-menu-cards__title"]) },
|
|
6816
|
-
React.createElement("
|
|
6837
|
+
React.createElement("p", null, title),
|
|
6817
6838
|
actionTitle && (React.createElement(ButtonLink, { href: actionTitle.url, buttonText: actionTitle.label, onClick: actionTitle.onClick, prefixIcon: ArrowRight2, iconSize: 14, className: "".concat(style$o["mega-menu-cards__action--grey"]) })))), {
|
|
6818
6839
|
md: title && actionTitle && (React.createElement(ButtonLink, { href: actionTitle.url, buttonText: actionTitle.label, onClick: actionTitle.onClick, prefixIcon: ArrowRight2, iconSize: 14, className: "".concat(style$o["mega-menu-cards__action--grey"]) }))
|
|
6819
6840
|
});
|
|
@@ -8690,22 +8711,20 @@ var Select2 = withClickOut(Component$o);
|
|
|
8690
8711
|
|
|
8691
8712
|
var style$8 = {"magneto-ui-timeline":"mg_timeline_magneto-ui-timeline_lr29v"};
|
|
8692
8713
|
|
|
8693
|
-
var STATUS = {
|
|
8694
|
-
CHECKED: 'checked',
|
|
8695
|
-
CURRENT: 'current',
|
|
8696
|
-
BLOCKED: 'blocked'
|
|
8697
|
-
};
|
|
8698
8714
|
var Component$n = function (_a) {
|
|
8699
|
-
var steps = _a.steps, currentStep = _a.currentStep, _b = _a.onClick, onClick = _b === void 0 ? function () { return ({}); } : _b;
|
|
8715
|
+
var steps = _a.steps, currentStep = _a.currentStep, _b = _a.onClick, onClick = _b === void 0 ? function () { return ({}); } : _b, isNotBlocked = _a.isNotBlocked;
|
|
8700
8716
|
currentStep = Math.max(currentStep, 1);
|
|
8701
8717
|
var getStatus = function (index) {
|
|
8702
8718
|
if (index + 1 < currentStep) {
|
|
8703
|
-
return
|
|
8719
|
+
return TimeLineItemStatus.CHECKED;
|
|
8704
8720
|
}
|
|
8705
8721
|
if (index + 1 === currentStep) {
|
|
8706
|
-
return
|
|
8722
|
+
return TimeLineItemStatus.CURRENT;
|
|
8723
|
+
}
|
|
8724
|
+
if (isNotBlocked) {
|
|
8725
|
+
return TimeLineItemStatus.UNLOCKED;
|
|
8707
8726
|
}
|
|
8708
|
-
return
|
|
8727
|
+
return TimeLineItemStatus.BLOCKED;
|
|
8709
8728
|
};
|
|
8710
8729
|
return (React.createElement("div", { className: style$8["".concat(classMUI, "-timeline")] }, steps.map(function (_a, index) {
|
|
8711
8730
|
var subtitle = _a.subtitle, title = _a.title;
|
|
@@ -9737,5 +9756,5 @@ var Component = function (_a) {
|
|
|
9737
9756
|
};
|
|
9738
9757
|
var SuggestedJobsPage = Component;
|
|
9739
9758
|
|
|
9740
|
-
export { Actions, Alert, AlertJobModal, AlertJobStatus, AlertJobStatusContainer, AlertJobStatusIcon, AlertsPanel, AlphabetFilter, AnalystTemplate, ApplicationButton, ApplicationSubtitle, ApplicationSummary, ApplicationText, ApplicationTitle, Avatar, Badge, BarChart, BarLoader, BarsChart, BrandMenu, BrandsContainer, BrandsMenuMobile, BrandsMenuPopover$1 as BrandsMenuPopover, Breadcrumb, Breadcrumbs, Button, ButtonLink, CandidateNav, CandidateProfile, CandidateProfileTemplate, CategoryGrid, CategoryMenuCard_component as CategoryMenuCard, Checkbox, CitiesDetailDrawer, Collapse, ComparativeCounter, CreateAccountCTA, DateDropdown, DateInput, DatePicker, DatePickerResponsiveComponent, Divider, DotsLoader, Drawer$1 as Drawer, DrawerMenu, EExpandableInfoSize, EExpandableInfoVariant, ERadioType, ETypographyFontColor, ETypographyFontSize, ETypographyFontWeight, EmptyResult as EmptyResults, ExpandableInfo, FilterActions, FilterCard, FilterContainerMenu, FilterHeader, FilterMenuItem, FilterSearchItem, FlatLoader, Footer, FooterMenuLinks, FraudCardJob, FrequentSearch, HeaderAnalyst, HeaderDrawerCompany, HeaderDrawerTabs, HeaderTab, HeaderTabs, HorizontalMenu, IconItem, Image, Input, InputFile, InputPlus, InputSearch, JobActions, JobApplyCard, JobCard, JobCardDesktop, JobCardMobile, JobCompanyHeader, JobCompanyLogo, JobDetailCard, JobDetailContainer, JobDetails, JobDetailsDrawer, JobFooterCard, JobHeader, JobSkillsCard, JobSuggestedDrawer, JobSuggestedHeader, JobSuggestedSimilarJobs, JobVideo, JobsPage, Link, ListIconLink, ListMenuIcons, ListMenuItems, ListMenuText, ListSortMenu, Loading, LoginHeader, LoginJobsHeader, LoginJobsTemplate, LoginTemplate, LogoComponent, LogoutHeader, LogoutJobsHeader, LogoutJobsTemplate, LogoutTemplate, MagnetoResolution, MagnetoSocialMedia, ContextAppProvider as MagnetoUIProvider, MainButton, MegaMenu, MegaMenuCard, MegaMenuCards, MegaMenuDrawer, MegaMenuDrawerItem, MegaMenuEmpty, MegaMenuJobsTabs, MegaMenuPopover, MegaMenuSideCards, MegaMenuTab, MenuDropdown, MenuIcon, MenuItem, MenuSearch, Message, MobileDatePicker, MobileDrawer, MobileDrawerMenu, MobileJobDetailsDrawer, MobileJobDetailsHeader, MobileSearchbar, MobileSortMenu, Modal$1 as Modal, ModalAnalyst, ModalResponsive, MultiRangeSlider, MultipleSelectionEntry, NavMenuAnalyst, NavMenuAnalystRegionModal, NavMenuDrawerAnalyst, Notification, OneSelectionEntry, Pagination, Paragraph, Popover, ProcessesCard, Qualification, Radio, RatingBadge, RightsReservedText, SaveButton, ScoreLevel, ScoreLevelStatic, SearchButton, SearchItem, Searchbar, Select, Select2, ShareButton, SharePopover, SideFilter, SimilarCard, SimilarCardIcon, SimilarCardLogo, SimilarJobs, SimilarJobsCard, Skill, SortBar, SortMenu$1 as SortMenu, SuggestedJobsPage, Switch, Tab, TabButton, Tags as Tag, TextArea, TextCustom, Timeline, TimelineEvent, ToggleButton, ToggleButtonList, Tooltip, Typography, UserMenu, UserMenuAnalyst, UserMenuButtonAnalyst, UserMenuWrapperAnalyst, UserTermCheck, UserTermContent, UserTermHighlight, UserTermSubTitle, UserTermSubmit, UserTermText, UserTermTitle, UserTermUList, UserTerms, VacantPositions, useMediaQuery, withClickOut, withMegaMenuSideCards };
|
|
9759
|
+
export { Actions, Alert, AlertJobModal, AlertJobStatus, AlertJobStatusContainer, AlertJobStatusIcon, AlertsPanel, AlphabetFilter, AnalystTemplate, ApplicationButton, ApplicationSubtitle, ApplicationSummary, ApplicationText, ApplicationTitle, Avatar, Badge, BarChart, BarLoader, BarsChart, BrandMenu, BrandsContainer, BrandsMenuMobile, BrandsMenuPopover$1 as BrandsMenuPopover, Breadcrumb, Breadcrumbs, Button, ButtonLink, CandidateNav, CandidateProfile, CandidateProfileTemplate, CategoryGrid, CategoryMenuCard_component as CategoryMenuCard, Checkbox, CitiesDetailDrawer, Collapse, ComparativeCounter, CreateAccountCTA, DateDropdown, DateInput, DatePicker, DatePickerResponsiveComponent, Divider, DotsLoader, Drawer$1 as Drawer, DrawerMenu, EExpandableInfoSize, EExpandableInfoVariant, ERadioType, ETypographyFontColor, ETypographyFontSize, ETypographyFontWeight, EmptyResult as EmptyResults, ExpandableInfo, FilterActions, FilterCard, FilterContainerMenu, FilterHeader, FilterMenuItem, FilterSearchItem, FlatLoader, Footer, FooterMenuLinks, FraudCardJob, FrequentSearch, HeaderAnalyst, HeaderDrawerCompany, HeaderDrawerTabs, HeaderTab, HeaderTabs, HorizontalMenu, IconItem, Image, Input, InputFile, InputPlus, InputSearch, JobActions, JobApplyCard, JobCard, JobCardDesktop, JobCardMobile, JobCompanyHeader, JobCompanyLogo, JobDetailCard, JobDetailContainer, JobDetails, JobDetailsDrawer, JobFooterCard, JobHeader, JobSkillsCard, JobSuggestedDrawer, JobSuggestedHeader, JobSuggestedSimilarJobs, JobVideo, JobsPage, Link, ListIconLink, ListMenuIcons, ListMenuItems, ListMenuText, ListSortMenu, Loading, LoginHeader, LoginJobsHeader, LoginJobsTemplate, LoginTemplate, LogoComponent, LogoutHeader, LogoutJobsHeader, LogoutJobsTemplate, LogoutTemplate, MagnetoResolution, MagnetoSocialMedia, ContextAppProvider as MagnetoUIProvider, MainButton, MegaMenu, MegaMenuCard, MegaMenuCards, MegaMenuDrawer, MegaMenuDrawerItem, MegaMenuEmpty, MegaMenuJobsTabs, MegaMenuPopover, MegaMenuSideCards, MegaMenuTab, MenuDropdown, MenuIcon, MenuItem, MenuSearch, Message, MobileDatePicker, MobileDrawer, MobileDrawerMenu, MobileJobDetailsDrawer, MobileJobDetailsHeader, MobileSearchbar, MobileSortMenu, Modal$1 as Modal, ModalAnalyst, ModalResponsive, MultiRangeSlider, MultipleSelectionEntry, NavMenuAnalyst, NavMenuAnalystRegionModal, NavMenuDrawerAnalyst, Notification, OneSelectionEntry, Pagination, Paragraph, Popover, ProcessesCard, Qualification, Radio, RatingBadge, RightsReservedText, SaveButton, ScoreLevel, ScoreLevelStatic, SearchButton, SearchItem, Searchbar, Select, Select2, ShareButton, SharePopover, SideFilter, SimilarCard, SimilarCardIcon, SimilarCardLogo, SimilarJobs, SimilarJobsCard, Skill, SortBar, SortMenu$1 as SortMenu, SuggestedJobsPage, Switch, Tab, TabButton, Tags as Tag, TextArea, TextCustom, TimeLineItemStatus, Timeline, TimelineEvent, ToggleButton, ToggleButtonList, Tooltip, Typography, UserMenu, UserMenuAnalyst, UserMenuButtonAnalyst, UserMenuWrapperAnalyst, UserTermCheck, UserTermContent, UserTermHighlight, UserTermSubTitle, UserTermSubmit, UserTermText, UserTermTitle, UserTermUList, UserTerms, VacantPositions, useMediaQuery, withClickOut, withMegaMenuSideCards };
|
|
9741
9760
|
//# sourceMappingURL=index.js.map
|