magneto365.ui 2.47.0 → 2.48.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/216605c9a4ba8eeb.svg +3 -0
- package/dist/assets/53122d74f38b05ed.svg +3 -0
- package/dist/assets/8949e8e4bfb2ef16.svg +3 -0
- package/dist/assets/b7c5dd6900f044db.svg +3 -0
- package/dist/cjs/css/magneto.ui.lib.min.css +1 -1
- package/dist/cjs/index.js +201 -164
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/UI/molecules/Message/Message.component.d.ts +7 -4
- package/dist/cjs/types/components/UI/molecules/Message/Message.interface.d.ts +27 -5
- package/dist/cjs/types/components/UI/molecules/Message/constants/message.constant.d.ts +3 -2
- package/dist/cjs/types/components/UI/molecules/Message/index.d.ts +1 -1
- package/dist/cjs/types/components/UI/molecules/MobileDrawer/MobileDrawer.component.d.ts +2 -2
- package/dist/cjs/types/components/UI/molecules/MobileDrawer/MobileDrawer.interface.d.ts +1 -1
- package/dist/cjs/types/components/UI/molecules/SearchButton/SearchButton.component.d.ts +4 -1
- package/dist/cjs/types/components/UI/organism/MobileDrawer/MobileDrawerMenu.interface.d.ts +2 -2
- package/dist/cjs/types/constants/icons.constants.d.ts +4 -0
- package/dist/cjs/types/constants/stories/vacancies.constants.d.ts +1 -1
- package/dist/esm/css/magneto.ui.lib.min.css +1 -1
- package/dist/esm/index.js +202 -164
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/UI/molecules/Message/Message.component.d.ts +7 -4
- package/dist/esm/types/components/UI/molecules/Message/Message.interface.d.ts +27 -5
- package/dist/esm/types/components/UI/molecules/Message/constants/message.constant.d.ts +3 -2
- package/dist/esm/types/components/UI/molecules/Message/index.d.ts +1 -1
- package/dist/esm/types/components/UI/molecules/MobileDrawer/MobileDrawer.component.d.ts +2 -2
- package/dist/esm/types/components/UI/molecules/MobileDrawer/MobileDrawer.interface.d.ts +1 -1
- package/dist/esm/types/components/UI/molecules/SearchButton/SearchButton.component.d.ts +4 -1
- package/dist/esm/types/components/UI/organism/MobileDrawer/MobileDrawerMenu.interface.d.ts +2 -2
- package/dist/esm/types/constants/icons.constants.d.ts +4 -0
- package/dist/esm/types/constants/stories/vacancies.constants.d.ts +1 -1
- package/dist/index.d.ts +38 -13
- 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$Y = {"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$1$ = 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$1_ = function (_a) {
|
|
|
257
257
|
/**
|
|
258
258
|
* Atom UI component of Icon for general purpose
|
|
259
259
|
*/
|
|
260
|
-
var IconItem = Component$
|
|
260
|
+
var IconItem = Component$1$;
|
|
261
261
|
|
|
262
262
|
var styles$1X = {"avatarComponent":"mg_avatar_avatarComponent_1upgt","magneto-ui-default-avatar":"mg_avatar_magneto-ui-default-avatar_1upgt"};
|
|
263
263
|
|
|
@@ -323,6 +323,8 @@ var Close = "https://static.magneto365.com/lib/assets/2cb852fd568fb219.svg";
|
|
|
323
323
|
|
|
324
324
|
var CloseCircle = "https://static.magneto365.com/lib/assets/8cfd4406b512a517.svg";
|
|
325
325
|
|
|
326
|
+
var CloseCircleRedBold = "https://static.magneto365.com/lib/assets/216605c9a4ba8eeb.svg";
|
|
327
|
+
|
|
326
328
|
var CoinBlackOutline = "https://static.magneto365.com/lib/assets/360b8d098be3a53b.svg";
|
|
327
329
|
|
|
328
330
|
var Danger = "https://static.magneto365.com/lib/assets/9a7bd42035ea607a.svg";
|
|
@@ -381,6 +383,8 @@ var ImageWhiteOutline = "https://static.magneto365.com/lib/assets/2d1479bc672d97
|
|
|
381
383
|
|
|
382
384
|
var Info = "https://static.magneto365.com/lib/assets/ae6472919de3f2cd.svg";
|
|
383
385
|
|
|
386
|
+
var InfoCircleBlueBold = "https://static.magneto365.com/lib/assets/53122d74f38b05ed.svg";
|
|
387
|
+
|
|
384
388
|
var Instagram = "https://static.magneto365.com/lib/assets/2f6e7422de96c0e8.svg";
|
|
385
389
|
|
|
386
390
|
var InstagramSolid = "https://static.magneto365.com/lib/assets/b0d4cd86c4b553f3.svg";
|
|
@@ -473,6 +477,8 @@ var TaskBlueBold = "https://static.magneto365.com/lib/assets/546c3401e6c1ab39.sv
|
|
|
473
477
|
|
|
474
478
|
var TaskWhiteOutline = "https://static.magneto365.com/lib/assets/e8987356bcb0eb69.svg";
|
|
475
479
|
|
|
480
|
+
var TickCircleGreenBold = "https://static.magneto365.com/lib/assets/b7c5dd6900f044db.svg";
|
|
481
|
+
|
|
476
482
|
var Tiktok = "https://static.magneto365.com/lib/assets/f3e3f11bce735190.svg";
|
|
477
483
|
|
|
478
484
|
var TiktokSolid = "https://static.magneto365.com/lib/assets/6fb8b692c5ce240a.svg";
|
|
@@ -495,6 +501,8 @@ var UserSearchWhiteOutline = "https://static.magneto365.com/lib/assets/eb30208cb
|
|
|
495
501
|
|
|
496
502
|
var Warning = "https://static.magneto365.com/lib/assets/bfab45bdc4d8d900.svg";
|
|
497
503
|
|
|
504
|
+
var WarningYellowBold = "https://static.magneto365.com/lib/assets/8949e8e4bfb2ef16.svg";
|
|
505
|
+
|
|
498
506
|
var WhatsAppColor = "https://static.magneto365.com/lib/assets/75c50160036c6fdf.svg";
|
|
499
507
|
|
|
500
508
|
var WhatsAppDark = "https://static.magneto365.com/lib/assets/7fda674d8825bc06.svg";
|
|
@@ -505,7 +513,7 @@ var Youtube = "https://static.magneto365.com/lib/assets/f78dbede1bdf3dd0.svg";
|
|
|
505
513
|
|
|
506
514
|
var YoutubeSolid = "https://static.magneto365.com/lib/assets/cdcc07646d43bd9d.svg";
|
|
507
515
|
|
|
508
|
-
var Component$
|
|
516
|
+
var Component$1_ = function (_a) {
|
|
509
517
|
var userImage = _a.userImage, fallbackImage = _a.fallbackImage, onClick = _a.onClick;
|
|
510
518
|
var _b = useState(false), imageError = _b[0], setImageError = _b[1];
|
|
511
519
|
var handleError = function () {
|
|
@@ -519,7 +527,7 @@ var Component$1Z = function (_a) {
|
|
|
519
527
|
/**
|
|
520
528
|
* UI Atom component of Avatar
|
|
521
529
|
*/
|
|
522
|
-
var Avatar = Component$
|
|
530
|
+
var Avatar = Component$1_;
|
|
523
531
|
|
|
524
532
|
var BAR_LOADER_PREFIX = '--bar-loader';
|
|
525
533
|
|
|
@@ -658,7 +666,7 @@ var ShareIcons = {
|
|
|
658
666
|
}
|
|
659
667
|
};
|
|
660
668
|
|
|
661
|
-
var Component$
|
|
669
|
+
var Component$1Z = function (_a) {
|
|
662
670
|
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;
|
|
663
671
|
var _b = useState(), component = _b[0], setComponent = _b[1];
|
|
664
672
|
var actionsLinkList = ActionsAnchorIcons === null || ActionsAnchorIcons === void 0 ? void 0 : ActionsAnchorIcons.map(function (_, index) { return ({
|
|
@@ -710,7 +718,7 @@ var ShareLinksAction = function (_a) {
|
|
|
710
718
|
/**
|
|
711
719
|
* UI Molecule componet of Actions
|
|
712
720
|
*/
|
|
713
|
-
var Actions = Object.assign(Component$
|
|
721
|
+
var Actions = Object.assign(Component$1Z, { ShareLinks: ShareLinksAction });
|
|
714
722
|
|
|
715
723
|
var style$X = {"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"};
|
|
716
724
|
|
|
@@ -736,7 +744,7 @@ var alertIcons = {
|
|
|
736
744
|
warning: Warning,
|
|
737
745
|
error: Error
|
|
738
746
|
};
|
|
739
|
-
var Component$
|
|
747
|
+
var Component$1Y = function (_a) {
|
|
740
748
|
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;
|
|
741
749
|
var borderStyle = border ? style$X["".concat(classMUI, "-").concat(type, "--with-border")] : '';
|
|
742
750
|
var typeStyle = style$X["".concat(classMUI, "-").concat(type)];
|
|
@@ -748,7 +756,7 @@ var Component$1X = function (_a) {
|
|
|
748
756
|
React.createElement(IconItem, { icon: Close, alt: type }))),
|
|
749
757
|
extraButton));
|
|
750
758
|
};
|
|
751
|
-
var Alert = Component$
|
|
759
|
+
var Alert = Component$1Y;
|
|
752
760
|
|
|
753
761
|
var style$V = {"magneto-ui-brands__header--row":"mg_brands_container_magneto-ui-brands_header--row_1pjqh","magneto-ui-brands-container":"mg_brands_container_magneto-ui-brands-container_1pjqh","magneto-ui-brands-container__brands":"mg_brands_container_magneto-ui-brands-container_brands_1pjqh","magneto-ui-brands-container__brands--brand":"mg_brands_container_magneto-ui-brands-container_brands--brand_1pjqh"};
|
|
754
762
|
|
|
@@ -788,9 +796,55 @@ var DrawerPortal = function (_a) {
|
|
|
788
796
|
return mounted && portalNode.current ? ReactDOM.createPortal(children, portalNode.current) : null;
|
|
789
797
|
};
|
|
790
798
|
|
|
791
|
-
var style$U = {"magneto-ui-mobile-drawer":"mg_mobile_drawer_magneto-ui-mobile-
|
|
799
|
+
var style$U = {"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"};
|
|
792
800
|
|
|
793
|
-
|
|
801
|
+
function formatNumber(num) {
|
|
802
|
+
if (typeof num !== 'number')
|
|
803
|
+
return num;
|
|
804
|
+
return new Intl.NumberFormat().format(num);
|
|
805
|
+
}
|
|
806
|
+
var notNumberRegex = new RegExp('\\D*', 'g');
|
|
807
|
+
|
|
808
|
+
var isDate = function (value) {
|
|
809
|
+
return value instanceof Date && !isNaN(value.valueOf());
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
var stubTrue = function () { return true; };
|
|
813
|
+
var stubUndefined = function () { return undefined; };
|
|
814
|
+
|
|
815
|
+
var classNames = {
|
|
816
|
+
bind: function (stylesObj) {
|
|
817
|
+
return function () {
|
|
818
|
+
var params = [];
|
|
819
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
820
|
+
params[_i] = arguments[_i];
|
|
821
|
+
}
|
|
822
|
+
return params
|
|
823
|
+
// avoid nullish
|
|
824
|
+
.filter(function (param) { return param != null; })
|
|
825
|
+
.map(function (cls) {
|
|
826
|
+
var _a;
|
|
827
|
+
if (typeof cls === 'string')
|
|
828
|
+
return (_a = stylesObj[cls]) !== null && _a !== void 0 ? _a : cls;
|
|
829
|
+
return Object.entries(cls)
|
|
830
|
+
.filter(function (_a) {
|
|
831
|
+
var value = _a[1];
|
|
832
|
+
return value;
|
|
833
|
+
})
|
|
834
|
+
.map(function (_a) {
|
|
835
|
+
var _b;
|
|
836
|
+
var key = _a[0];
|
|
837
|
+
return (_b = stylesObj[key]) !== null && _b !== void 0 ? _b : key;
|
|
838
|
+
})
|
|
839
|
+
.join(' ');
|
|
840
|
+
})
|
|
841
|
+
.join(' ');
|
|
842
|
+
};
|
|
843
|
+
}
|
|
844
|
+
};
|
|
845
|
+
|
|
846
|
+
var cx$6 = classNames.bind(style$U);
|
|
847
|
+
var Component$1X = function (_a) {
|
|
794
848
|
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;
|
|
795
849
|
var _d = useState(false), showContent = _d[0], setShowContent = _d[1];
|
|
796
850
|
var _e = useState(isOpen), renderPortal = _e[0], setRenderPortal = _e[1];
|
|
@@ -816,17 +870,17 @@ var Component$1W = function (_a) {
|
|
|
816
870
|
};
|
|
817
871
|
}, [isOpen]);
|
|
818
872
|
return (React.createElement(React.Fragment, null, renderPortal && (React.createElement(DrawerPortal, null,
|
|
819
|
-
React.createElement("div", { className:
|
|
873
|
+
React.createElement("div", { className: cx$6('magneto-ui-mobile-drawer', className) },
|
|
820
874
|
React.createElement("aside", { className: style$U[showMenu] },
|
|
821
|
-
React.createElement("button", { title: "
|
|
875
|
+
React.createElement("button", { title: "close-modal", className: cx$6('magneto-ui-close-button'), onClick: onClose },
|
|
822
876
|
React.createElement(IconItem, { icon: Add, hover: false })),
|
|
823
|
-
React.createElement("div", { className:
|
|
824
|
-
isOpen && (React.createElement("span", { className:
|
|
877
|
+
React.createElement("div", { className: cx$6('magneto-ui-container') }, children)),
|
|
878
|
+
isOpen && (React.createElement("span", { className: cx$6('background-drawer'), onClick: blockBackgroundClose ? function () { return null; } : onClose })))))));
|
|
825
879
|
};
|
|
826
880
|
/**
|
|
827
881
|
* Molecule UI component for Mobile Drawer
|
|
828
882
|
*/
|
|
829
|
-
var MobileDrawer = Component$
|
|
883
|
+
var MobileDrawer = Component$1X;
|
|
830
884
|
|
|
831
885
|
var style$T = {"magneto-ui-brand-button":"mg_brand_button_magneto-ui-brand-button_145qe","magneto-ui-brand-button__company-logo":"mg_brand_button_magneto-ui-brand-button_company-logo_145qe","magneto-ui-brand-button__company-logo--img":"mg_brand_button_magneto-ui-brand-button_company-logo--img_145qe","magneto-ui-brand-button__icon":"mg_brand_button_magneto-ui-brand-button_icon_145qe","rotate":"mg_brand_button_rotate_145qe"};
|
|
832
886
|
|
|
@@ -884,7 +938,7 @@ var BrandsMenuPopover$1 = withClickOut(BrandsMenuPopover);
|
|
|
884
938
|
|
|
885
939
|
var styles$1U = {"BreadcrumbsComponent":"mg_breadcrumbs_BreadcrumbsComponent_13csm"};
|
|
886
940
|
|
|
887
|
-
var Component$
|
|
941
|
+
var Component$1W = function (_a) {
|
|
888
942
|
var homeUrl = _a.homeUrl, breadcrumbProps = _a.breadcrumbProps, _b = _a.iconProps, iconProps = _b === void 0 ? iconPropsBreadCrumb : _b;
|
|
889
943
|
return (React.createElement("div", { className: styles$1U.BreadcrumbsComponent },
|
|
890
944
|
React.createElement("a", { href: homeUrl },
|
|
@@ -894,7 +948,7 @@ var Component$1V = function (_a) {
|
|
|
894
948
|
/**
|
|
895
949
|
* Molecule UI component for breadcrums information
|
|
896
950
|
*/
|
|
897
|
-
var Breadcrumbs = Component$
|
|
951
|
+
var Breadcrumbs = Component$1W;
|
|
898
952
|
|
|
899
953
|
var styles$1T = {"magneto-ui-cities-detail-drawer":"mg_cities_detail_drawer_magneto-ui-cities-detail-drawer_16b6c","magneto-ui-cities-detail-drawer__item-detail-icon":"mg_cities_detail_drawer_magneto-ui-cities-detail-drawer_item-detail-icon_16b6c","magneto-ui-cities-detail-drawer__item-detail-text":"mg_cities_detail_drawer_magneto-ui-cities-detail-drawer_item-detail-text_16b6c","magneto-ui-cities-detail-drawer__item-detail-text-remote":"mg_cities_detail_drawer_magneto-ui-cities-detail-drawer_item-detail-text-remote_16b6c","magneto-ui-cities-detail-drawer__item-detail-text-link":"mg_cities_detail_drawer_magneto-ui-cities-detail-drawer_item-detail-text-link_16b6c"};
|
|
900
954
|
|
|
@@ -916,7 +970,7 @@ var CitiesDetailDrawer = function (_a) {
|
|
|
916
970
|
|
|
917
971
|
var styles$1S = {"magneto-ui--date-dropdown__icon":"mg_date_dropdown_magneto-ui--date-dropdown_icon_1xs1p","magneto-ui--date-dropdown__wrapper":"mg_date_dropdown_magneto-ui--date-dropdown_wrapper_1xs1p","magneto-ui--date-dropdown__select":"mg_date_dropdown_magneto-ui--date-dropdown_select_1xs1p","magneto-ui--date-dropdown__option":"mg_date_dropdown_magneto-ui--date-dropdown_option_1xs1p"};
|
|
918
972
|
|
|
919
|
-
var Component$
|
|
973
|
+
var Component$1V = function (_a) {
|
|
920
974
|
var placeholderLabel = _a.placeholderLabel, dateOptions = _a.dateOptions, _b = _a.selectedOption, selectedOption = _b === void 0 ? '' : _b, onOptionChanged = _a.onOptionChanged, _c = _a.disabled, disabled = _c === void 0 ? false : _c;
|
|
921
975
|
var disabledArrow = useMemo(function () {
|
|
922
976
|
if (disabled)
|
|
@@ -932,14 +986,14 @@ var Component$1U = function (_a) {
|
|
|
932
986
|
})),
|
|
933
987
|
React.createElement("span", { className: styles$1S['magneto-ui--date-dropdown__icon'] }, disabledArrow)));
|
|
934
988
|
};
|
|
935
|
-
var DateDropdown = Component$
|
|
989
|
+
var DateDropdown = Component$1V;
|
|
936
990
|
|
|
937
991
|
var styles$1R = {"magneto-ui--date-picker__wrapper":"mg_date_picker_magneto-ui--date-picker_wrapper_12pj2"};
|
|
938
992
|
|
|
939
993
|
var defaultValue$1 = function (value) {
|
|
940
994
|
return value ? parseDate(value) : { initialMonth: '', initialYear: '' };
|
|
941
995
|
};
|
|
942
|
-
var Component$
|
|
996
|
+
var Component$1U = function (_a) {
|
|
943
997
|
var monthOptionsLabels = _a.monthOptionsLabels, monthPlaceholder = _a.monthPlaceholder, yearPlaceholder = _a.yearPlaceholder, value = _a.value, disabled = _a.disabled, onChange = _a.onChange, futureYears = _a.futureYears, pastYears = _a.pastYears;
|
|
944
998
|
var _b = useState(defaultValue$1(value).initialMonth), selectedMonth = _b[0], setSelectedMonth = _b[1];
|
|
945
999
|
var _c = useState(defaultValue$1(value).initialYear), selectedYear = _c[0], setSelectedYear = _c[1];
|
|
@@ -977,12 +1031,12 @@ var Component$1T = function (_a) {
|
|
|
977
1031
|
React.createElement(DateDropdown, { placeholderLabel: monthPlaceholder, dateOptions: monthOptionsList, selectedOption: selectedMonth, onOptionChanged: handleMonthChange, disabled: disabled }),
|
|
978
1032
|
React.createElement(DateDropdown, { placeholderLabel: yearPlaceholder, dateOptions: yearOptionsList, selectedOption: selectedYear, onOptionChanged: handleYearChange, disabled: disabled })));
|
|
979
1033
|
};
|
|
980
|
-
var DatePicker = Component$
|
|
1034
|
+
var DatePicker = Component$1U;
|
|
981
1035
|
|
|
982
1036
|
var style$S = {"magneto-ui-drawer":"mg_drawer_magneto-ui-drawer_1hxen","magneto-ui-close-button":"mg_drawer_magneto-ui-close-button_1hxen","background-drawer":"mg_drawer_background-drawer_1hxen","fadeIn":"mg_drawer_fadeIn_1hxen","show-left":"mg_drawer_show-left_1hxen","hidden-left":"mg_drawer_hidden-left_1hxen","show-right":"mg_drawer_show-right_1hxen","hidden-right":"mg_drawer_hidden-right_1hxen","full-drawer":"mg_drawer_full-drawer_1hxen"};
|
|
983
1037
|
|
|
984
1038
|
var DEFAULT_PADDING = 20;
|
|
985
|
-
var Component$
|
|
1039
|
+
var Component$1T = function (_a) {
|
|
986
1040
|
var _b = _a.className, className = _b === void 0 ? '' : _b, isOpen = _a.isOpen, _c = _a.direction, direction = _c === void 0 ? 'left' : _c, isFull = _a.isFull, customPadding = _a.customPadding, drawerWidth = _a.drawerWidth, isMobile = _a.isMobile, hideButton = _a.hideButton, children = _a.children, onClose = _a.onClose, _d = _a.blockBackgroundClose, blockBackgroundClose = _d === void 0 ? false : _d;
|
|
987
1041
|
var fullDrawer = isFull ? "full-drawer" : '';
|
|
988
1042
|
var paddingValue = customPadding !== undefined ? "".concat(customPadding, "px") : "".concat(DEFAULT_PADDING, "px");
|
|
@@ -1028,7 +1082,7 @@ var Component$1S = function (_a) {
|
|
|
1028
1082
|
/**
|
|
1029
1083
|
* Molecule UI component for Drawer
|
|
1030
1084
|
*/
|
|
1031
|
-
var Drawer = Component$
|
|
1085
|
+
var Drawer = Component$1T;
|
|
1032
1086
|
|
|
1033
1087
|
var style$R = {"magneto-ui-empty-result":"mg_empty_results_magneto-ui-empty-result_1g4q8","fadeIn":"mg_empty_results_fadeIn_1g4q8","magneto-ui-empty-result__img-container":"mg_empty_results_magneto-ui-empty-result_img-container_1g4q8","magneto-ui-empty-result__img-container--img":"mg_empty_results_magneto-ui-empty-result_img-container--img_1g4q8","magneto-ui-empty-result__info":"mg_empty_results_magneto-ui-empty-result_info_1g4q8","magneto-ui-empty-result__info--search":"mg_empty_results_magneto-ui-empty-result_info--search_1g4q8","magneto-ui-empty-result__tags":"mg_empty_results_magneto-ui-empty-result_tags_1g4q8"};
|
|
1034
1088
|
|
|
@@ -1093,7 +1147,7 @@ var EXPANDABLE_INFO_ACTION_ICONS = {
|
|
|
1093
1147
|
|
|
1094
1148
|
var styles$1Q = {"magneto-ui-expandable-info-action__button":"mg_expandable_info_action_magneto-ui-expandable-info-action_button_11ax1","magneto-ui-expandable-info-action__button--dark-blue":"mg_expandable_info_action_magneto-ui-expandable-info-action_button--dark-blue_11ax1","magneto-ui-expandable-info-action__button--light-blue":"mg_expandable_info_action_magneto-ui-expandable-info-action_button--light-blue_11ax1","magneto-ui-expandable-info-action__button--white":"mg_expandable_info_action_magneto-ui-expandable-info-action_button--white_11ax1","magneto-ui-expandable-info-action__button--green":"mg_expandable_info_action_magneto-ui-expandable-info-action_button--green_11ax1","magneto-ui-expandable-info-action__title":"mg_expandable_info_action_magneto-ui-expandable-info-action_title_11ax1"};
|
|
1095
1149
|
|
|
1096
|
-
var Component$
|
|
1150
|
+
var Component$1S = function (_a) {
|
|
1097
1151
|
var className = _a.className, loading = _a.loading, onAction = _a.onAction, prefixIcon = _a.prefixIcon, suffixIcon = _a.suffixIcon, title = _a.title, _b = _a.variant, variant = _b === void 0 ? 'blue' : _b;
|
|
1098
1152
|
var isUrl = useMemo(function () { return onAction && typeof onAction === 'string'; }, [onAction]);
|
|
1099
1153
|
var Component = useMemo(function () { return (isUrl ? 'a' : 'button'); }, [isUrl]);
|
|
@@ -1131,11 +1185,11 @@ var Component$1R = function (_a) {
|
|
|
1131
1185
|
/**
|
|
1132
1186
|
* Molecule UI child component of expandable info
|
|
1133
1187
|
*/
|
|
1134
|
-
var ExpandableInfoAction = Component$
|
|
1188
|
+
var ExpandableInfoAction = Component$1S;
|
|
1135
1189
|
|
|
1136
1190
|
var styles$1P = {"magneto-ui-expandable-info-details__container":"mg_expandable_info_details_magneto-ui-expandable-info-details_container_1l94q","magneto-ui-expandable-info-details__section":"mg_expandable_info_details_magneto-ui-expandable-info-details_section_1l94q","magneto-ui-expandable-info-details__section--multiple":"mg_expandable_info_details_magneto-ui-expandable-info-details_section--multiple_1l94q","magneto-ui-expandable-info-details__sub-section":"mg_expandable_info_details_magneto-ui-expandable-info-details_sub-section_1l94q","magneto-ui-expandable-info-details__sub-section--initial":"mg_expandable_info_details_magneto-ui-expandable-info-details_sub-section--initial_1l94q","magneto-ui-expandable-info-details__item":"mg_expandable_info_details_magneto-ui-expandable-info-details_item_1l94q","magneto-ui-expandable-info-details__item--first":"mg_expandable_info_details_magneto-ui-expandable-info-details_item--first_1l94q","magneto-ui-expandable-info-details__text":"mg_expandable_info_details_magneto-ui-expandable-info-details_text_1l94q","magneto-ui-expandable-info-details__text--bold":"mg_expandable_info_details_magneto-ui-expandable-info-details_text--bold_1l94q","magneto-ui-expandable-info-details__footer":"mg_expandable_info_details_magneto-ui-expandable-info-details_footer_1l94q","magneto-ui-expandable-info-details__action":"mg_expandable_info_details_magneto-ui-expandable-info-details_action_1l94q"};
|
|
1137
1191
|
|
|
1138
|
-
var Component$
|
|
1192
|
+
var Component$1R = function (_a) {
|
|
1139
1193
|
var sections = _a.sections, footer = _a.footer;
|
|
1140
1194
|
var sectionStyles = useCallback(function (multiple) {
|
|
1141
1195
|
return CNM.get({
|
|
@@ -1182,7 +1236,7 @@ var Component$1Q = function (_a) {
|
|
|
1182
1236
|
/**
|
|
1183
1237
|
* Molecule UI child component of expandable info
|
|
1184
1238
|
*/
|
|
1185
|
-
var ExpandableInfoDetails = Component$
|
|
1239
|
+
var ExpandableInfoDetails = Component$1R;
|
|
1186
1240
|
|
|
1187
1241
|
var EExpandableInfoVariant;
|
|
1188
1242
|
(function (EExpandableInfoVariant) {
|
|
@@ -1205,7 +1259,7 @@ var EXPANDABLE_INFO_MESSAGE_ICONS = {
|
|
|
1205
1259
|
|
|
1206
1260
|
var styles$1O = {"magneto-ui-expandable-info-message__container":"mg_expandable_info_message_magneto-ui-expandable-info-message_container_oubsq","magneto-ui-expandable-info-message__text":"mg_expandable_info_message_magneto-ui-expandable-info-message_text_oubsq","magneto-ui-expandable-info-message__text--blue":"mg_expandable_info_message_magneto-ui-expandable-info-message_text--blue_oubsq","magneto-ui-expandable-info-message__text--white":"mg_expandable_info_message_magneto-ui-expandable-info-message_text--white_oubsq"};
|
|
1207
1261
|
|
|
1208
|
-
var Component$
|
|
1262
|
+
var Component$1Q = function (_a) {
|
|
1209
1263
|
var className = _a.className, title = _a.title, prefixIcon = _a.prefixIcon, variant = _a.variant;
|
|
1210
1264
|
var icon = useCallback(function (icon) {
|
|
1211
1265
|
if (icon) {
|
|
@@ -1229,11 +1283,11 @@ var Component$1P = function (_a) {
|
|
|
1229
1283
|
/**
|
|
1230
1284
|
* Molecule UI child component of expandable info
|
|
1231
1285
|
*/
|
|
1232
|
-
var ExpandableInfoMessage = Component$
|
|
1286
|
+
var ExpandableInfoMessage = Component$1Q;
|
|
1233
1287
|
|
|
1234
1288
|
var styles$1N = {"magneto-ui-expandable-info-modal":"mg_expandable_info_modal_magneto-ui-expandable-info-modal_mka0n"};
|
|
1235
1289
|
|
|
1236
|
-
var Component$
|
|
1290
|
+
var Component$1P = function (_a) {
|
|
1237
1291
|
var toggler = _a.toggler, details = _a.details;
|
|
1238
1292
|
var _b = useState(false), visible = _b[0], setVisible = _b[1];
|
|
1239
1293
|
var handleOnToggle = useCallback(function () {
|
|
@@ -1247,7 +1301,7 @@ var Component$1O = function (_a) {
|
|
|
1247
1301
|
/**
|
|
1248
1302
|
* Molecule UI child component of expandable info
|
|
1249
1303
|
*/
|
|
1250
|
-
var ExpandableInfoModal = Component$
|
|
1304
|
+
var ExpandableInfoModal = Component$1P;
|
|
1251
1305
|
|
|
1252
1306
|
var styles$1M = {"magneto-ui-expandable-info-popover":"mg_expandable_info_popover_magneto-ui-expandable-info-popover_13xbj","magneto-ui-expandable-info-popover--small":"mg_expandable_info_popover_magneto-ui-expandable-info-popover--small_13xbj","magneto-ui-expandable-info-popover--large":"mg_expandable_info_popover_magneto-ui-expandable-info-popover--large_13xbj","magneto-ui-expandable-info-popover--white":"mg_expandable_info_popover_magneto-ui-expandable-info-popover--white_13xbj","magneto-ui-expandable-info-popover__arrow":"mg_expandable_info_popover_magneto-ui-expandable-info-popover_arrow_13xbj","magneto-ui-expandable-info-popover__arrow--small":"mg_expandable_info_popover_magneto-ui-expandable-info-popover_arrow--small_13xbj","magneto-ui-expandable-info-popover__arrow--large":"mg_expandable_info_popover_magneto-ui-expandable-info-popover_arrow--large_13xbj"};
|
|
1253
1307
|
|
|
@@ -1313,7 +1367,7 @@ var withMegaMenuContainer = function (WrappedComponent) {
|
|
|
1313
1367
|
return Component;
|
|
1314
1368
|
};
|
|
1315
1369
|
|
|
1316
|
-
var Component$
|
|
1370
|
+
var Component$1O = function (_a) {
|
|
1317
1371
|
var details = _a.details, toggler = _a.toggler, _b = _a.clickOut, clickOut = _b === void 0 ? false : _b, _c = _a.setClickOut, setClickOut = _c === void 0 ? function () { return ({}); } : _c;
|
|
1318
1372
|
return (React.createElement(Popover, { widthBase: 'auto', show: clickOut, positionX: "right", positionY: toggler.size === EExpandableInfoSize.LARGE ? 'top' : 'bottom', className: CNM.get({
|
|
1319
1373
|
styles: styles$1M,
|
|
@@ -1333,7 +1387,7 @@ var Component$1N = function (_a) {
|
|
|
1333
1387
|
/**
|
|
1334
1388
|
* Molecule UI child component of expandable info
|
|
1335
1389
|
*/
|
|
1336
|
-
var ExpandableInfoPopover = withClickOut(Component$
|
|
1390
|
+
var ExpandableInfoPopover = withClickOut(Component$1O);
|
|
1337
1391
|
|
|
1338
1392
|
var EXPANDABLE_INFO_TOGGLER_ICONS = {
|
|
1339
1393
|
coin: CoinBlackOutline
|
|
@@ -1341,7 +1395,7 @@ var EXPANDABLE_INFO_TOGGLER_ICONS = {
|
|
|
1341
1395
|
|
|
1342
1396
|
var styles$1I = {"magneto-ui-expandable-info-toggler__container":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container_uiv7v","magneto-ui-expandable-info-toggler__container--no-details":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container--no-details_uiv7v","magneto-ui-expandable-info-toggler__container--blue":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container--blue_uiv7v","magneto-ui-expandable-info-toggler__container--white":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container--white_uiv7v","magneto-ui-expandable-info-toggler__container--small":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_container--small_uiv7v","magneto-ui-expandable-info-toggler__text":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_text_uiv7v","magneto-ui-expandable-info-toggler__text--blue":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_text--blue_uiv7v","magneto-ui-expandable-info-toggler__text--white":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_text--white_uiv7v","magneto-ui-expandable-info-toggler__text--small":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_text--small_uiv7v","magneto-ui-expandable-info-toggler__summary":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_summary_uiv7v","magneto-ui-expandable-info-toggler__summary--small":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_summary--small_uiv7v","magneto-ui-expandable-info-toggler__summary--large":"mg_expandable_info_toggler_magneto-ui-expandable-info-toggler_summary--large_uiv7v"};
|
|
1343
1397
|
|
|
1344
|
-
var Component$
|
|
1398
|
+
var Component$1N = function (_a) {
|
|
1345
1399
|
var details = _a.details, onToggle = _a.onToggle, prefixIcon = _a.prefixIcon, size = _a.size, suffixIcon = _a.suffixIcon, summary = _a.summary, title = _a.title, _b = _a.variant, variant = _b === void 0 ? 'white' : _b;
|
|
1346
1400
|
var styleGenerator = useCallback(function (base) {
|
|
1347
1401
|
return CNM.get({
|
|
@@ -1390,11 +1444,11 @@ var Component$1M = function (_a) {
|
|
|
1390
1444
|
/**
|
|
1391
1445
|
* Molecule UI child component of expandable info
|
|
1392
1446
|
*/
|
|
1393
|
-
var ExpandableInfoToggler = Component$
|
|
1447
|
+
var ExpandableInfoToggler = Component$1N;
|
|
1394
1448
|
|
|
1395
1449
|
var styles$1H = {"magneto-ui-expandable-info":"mg_expandable_info_magneto-ui-expandable-info_bokzy","magneto-ui-expandable-info__container":"mg_expandable_info_magneto-ui-expandable-info_container_bokzy","magneto-ui-expandable-info__container--white":"mg_expandable_info_magneto-ui-expandable-info_container--white_bokzy","magneto-ui-expandable-info__container--blue":"mg_expandable_info_magneto-ui-expandable-info_container--blue_bokzy","magneto-ui-expandable-info__container--small":"mg_expandable_info_magneto-ui-expandable-info_container--small_bokzy","magneto-ui-expandable-info__container--floating":"mg_expandable_info_magneto-ui-expandable-info_container--floating_bokzy","magneto-ui-expandable-info__actions":"mg_expandable_info_magneto-ui-expandable-info_actions_bokzy"};
|
|
1396
1450
|
|
|
1397
|
-
var Component$
|
|
1451
|
+
var Component$1M = function (_a) {
|
|
1398
1452
|
var actions = _a.actions, details = _a.details, floating = _a.floating, message = _a.message, prefixIcon = _a.prefixIcon, _b = _a.size, size = _b === void 0 ? 'large' : _b, suffixIcon = _a.suffixIcon, summary = _a.summary, title = _a.title, _c = _a.variant, variant = _c === void 0 ? 'white' : _c;
|
|
1399
1453
|
var togglerProps = useMemo(function () { return ({
|
|
1400
1454
|
details: details,
|
|
@@ -1426,7 +1480,7 @@ var Component$1L = function (_a) {
|
|
|
1426
1480
|
/**
|
|
1427
1481
|
* Molecule UI component for expandable info
|
|
1428
1482
|
*/
|
|
1429
|
-
var ExpandableInfo = Component$
|
|
1483
|
+
var ExpandableInfo = Component$1M;
|
|
1430
1484
|
|
|
1431
1485
|
var style$P = {"magneto-ui-filter-container":"mg_filter_container_menu_magneto-ui-filter-container_r9inc"};
|
|
1432
1486
|
|
|
@@ -1435,51 +1489,6 @@ var FilterContainerMenu = function (_a) {
|
|
|
1435
1489
|
return React.createElement("div", { className: style$P["".concat(classMUI, "-filter-container")] }, children);
|
|
1436
1490
|
};
|
|
1437
1491
|
|
|
1438
|
-
function formatNumber(num) {
|
|
1439
|
-
if (typeof num !== 'number')
|
|
1440
|
-
return num;
|
|
1441
|
-
return new Intl.NumberFormat().format(num);
|
|
1442
|
-
}
|
|
1443
|
-
var notNumberRegex = new RegExp('\\D*', 'g');
|
|
1444
|
-
|
|
1445
|
-
var isDate = function (value) {
|
|
1446
|
-
return value instanceof Date && !isNaN(value.valueOf());
|
|
1447
|
-
};
|
|
1448
|
-
|
|
1449
|
-
var stubTrue = function () { return true; };
|
|
1450
|
-
var stubUndefined = function () { return undefined; };
|
|
1451
|
-
|
|
1452
|
-
var classNames = {
|
|
1453
|
-
bind: function (stylesObj) {
|
|
1454
|
-
return function () {
|
|
1455
|
-
var params = [];
|
|
1456
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1457
|
-
params[_i] = arguments[_i];
|
|
1458
|
-
}
|
|
1459
|
-
return params
|
|
1460
|
-
// avoid nullish
|
|
1461
|
-
.filter(function (param) { return param != null; })
|
|
1462
|
-
.map(function (cls) {
|
|
1463
|
-
var _a;
|
|
1464
|
-
if (typeof cls === 'string')
|
|
1465
|
-
return (_a = stylesObj[cls]) !== null && _a !== void 0 ? _a : cls;
|
|
1466
|
-
return Object.entries(cls)
|
|
1467
|
-
.filter(function (_a) {
|
|
1468
|
-
var value = _a[1];
|
|
1469
|
-
return value;
|
|
1470
|
-
})
|
|
1471
|
-
.map(function (_a) {
|
|
1472
|
-
var _b;
|
|
1473
|
-
var key = _a[0];
|
|
1474
|
-
return (_b = stylesObj[key]) !== null && _b !== void 0 ? _b : key;
|
|
1475
|
-
})
|
|
1476
|
-
.join(' ');
|
|
1477
|
-
})
|
|
1478
|
-
.join(' ');
|
|
1479
|
-
};
|
|
1480
|
-
}
|
|
1481
|
-
};
|
|
1482
|
-
|
|
1483
1492
|
var styles$1G = {"magneto-ui-filter-item":"mg_filter_menu_item_magneto-ui-filter-item_m5cdm","selected":"mg_filter_menu_item_selected_m5cdm","disabled":"mg_filter_menu_item_disabled_m5cdm","isSearched":"mg_filter_menu_item_isSearched_m5cdm","skeleton":"mg_filter_menu_item_skeleton_m5cdm","shimmer":"mg_filter_menu_item_shimmer_m5cdm"};
|
|
1484
1493
|
|
|
1485
1494
|
var FilterMenuItem = function (_a) {
|
|
@@ -1523,7 +1532,7 @@ var FilterSearchItem = function (_a) {
|
|
|
1523
1532
|
|
|
1524
1533
|
var styles$1E = {"magneto-ui-frequent-search":"mg_frequent_search_magneto-ui-frequent-search_46vb2","magneto-ui-frequent-search__heading":"mg_frequent_search_magneto-ui-frequent-search_heading_46vb2","magneto-ui-frequent-search__items":"mg_frequent_search_magneto-ui-frequent-search_items_46vb2","magneto-ui-frequent-search__buttons-container":"mg_frequent_search_magneto-ui-frequent-search_buttons-container_46vb2","magneto-ui-frequent-search__buttons-container--btn":"mg_frequent_search_magneto-ui-frequent-search_buttons-container--btn_46vb2"};
|
|
1525
1534
|
|
|
1526
|
-
var Component$
|
|
1535
|
+
var Component$1L = function (_a) {
|
|
1527
1536
|
var searchHeading = _a.searchHeading, searchList = _a.searchList, showLess = _a.showLess, showMore = _a.showMore, showFrequentSearch = _a.showFrequentSearch;
|
|
1528
1537
|
var _b = useState(true), showFullList = _b[0], setShowFullList = _b[1];
|
|
1529
1538
|
var searchListDinamyc = useMemo(function () {
|
|
@@ -1548,29 +1557,29 @@ var Component$1K = function (_a) {
|
|
|
1548
1557
|
/**
|
|
1549
1558
|
* UI Atom component of Frequent Search
|
|
1550
1559
|
*/
|
|
1551
|
-
var FrequentSearch = Component$
|
|
1560
|
+
var FrequentSearch = Component$1L;
|
|
1552
1561
|
|
|
1553
1562
|
var style$O = {"header-drawer-company":"mg_header_drawer_company_header-drawer-company_jtdka"};
|
|
1554
1563
|
|
|
1555
|
-
var Component$
|
|
1564
|
+
var Component$1K = function (_a) {
|
|
1556
1565
|
var logo = _a.logo, alt = _a.alt, logoCompany = _a.logoCompany, logoCompanyAlt = _a.logoCompanyAlt, flag = _a.flag, flagAlt = _a.flagAlt;
|
|
1557
1566
|
return (React.createElement("div", { className: style$O['header-drawer-company'] },
|
|
1558
1567
|
React.createElement(LogoComponent, { logo: logo, alt: alt }),
|
|
1559
1568
|
React.createElement(LogoComponent, { logo: logoCompany, alt: logoCompanyAlt }),
|
|
1560
1569
|
React.createElement("img", { src: flag, alt: flagAlt, loading: "lazy", width: '25px', height: '20px' })));
|
|
1561
1570
|
};
|
|
1562
|
-
var HeaderDrawerCompany = Component$
|
|
1571
|
+
var HeaderDrawerCompany = Component$1K;
|
|
1563
1572
|
|
|
1564
1573
|
var styles$1D = {"TabComponent":"mg_tab_TabComponent_zqqnn"};
|
|
1565
1574
|
|
|
1566
|
-
var Component$
|
|
1575
|
+
var Component$1J = function (_a) {
|
|
1567
1576
|
var children = _a.children;
|
|
1568
1577
|
return React.createElement("div", { className: styles$1D.TabComponent }, children);
|
|
1569
1578
|
};
|
|
1570
1579
|
/**
|
|
1571
1580
|
* Molecule UI for Tab
|
|
1572
1581
|
*/
|
|
1573
|
-
var Tab = Component$
|
|
1582
|
+
var Tab = Component$1J;
|
|
1574
1583
|
|
|
1575
1584
|
var styles$1C = {"TabButtonComponent":"mg_tab_button_TabButtonComponent_hysss"};
|
|
1576
1585
|
|
|
@@ -1587,7 +1596,7 @@ var toCSSVariables = function (input) {
|
|
|
1587
1596
|
return output;
|
|
1588
1597
|
};
|
|
1589
1598
|
|
|
1590
|
-
var Component$
|
|
1599
|
+
var Component$1I = function (_a) {
|
|
1591
1600
|
var tabButtonLink = _a.tabButtonLink, tabButtonLinkStyles = _a.tabButtonLinkStyles, tabButtonStyles = _a.tabButtonStyles;
|
|
1592
1601
|
var stylesValue = useMemo(function () { return toCSSVariables(tabButtonStyles); }, [tabButtonStyles]);
|
|
1593
1602
|
var boxShadow = (tabButtonStyles || {}).boxShadow;
|
|
@@ -1596,11 +1605,11 @@ var Component$1H = function (_a) {
|
|
|
1596
1605
|
/**
|
|
1597
1606
|
* Molecule UI component for Tab Button
|
|
1598
1607
|
*/
|
|
1599
|
-
var TabButton = Component$
|
|
1608
|
+
var TabButton = Component$1I;
|
|
1600
1609
|
|
|
1601
1610
|
var styles$1B = {"HeaderDrawerTabsComponent":"mg_header_drawer_tabs_HeaderDrawerTabsComponent_1wrvo"};
|
|
1602
1611
|
|
|
1603
|
-
var Component$
|
|
1612
|
+
var Component$1H = function (_a) {
|
|
1604
1613
|
var logoProps = _a.logoProps, leftTabLink = _a.leftTabLink, rightTabLink = _a.rightTabLink, leftTabStyle = _a.leftTabStyle, rightTabStyle = _a.rightTabStyle, homeUrl = _a.homeUrl;
|
|
1605
1614
|
return (React.createElement("div", { className: styles$1B.HeaderDrawerTabsComponent },
|
|
1606
1615
|
React.createElement("a", { href: homeUrl },
|
|
@@ -1609,11 +1618,11 @@ var Component$1G = function (_a) {
|
|
|
1609
1618
|
React.createElement(TabButton, { tabButtonLink: leftTabLink, tabButtonLinkStyles: leftTabStyle === null || leftTabStyle === void 0 ? void 0 : leftTabStyle.tabButtonLinkStyles, tabButtonStyles: leftTabStyle === null || leftTabStyle === void 0 ? void 0 : leftTabStyle.tabButtonStyles }),
|
|
1610
1619
|
React.createElement(TabButton, { tabButtonLink: rightTabLink, tabButtonLinkStyles: rightTabStyle === null || rightTabStyle === void 0 ? void 0 : rightTabStyle.tabButtonLinkStyles, tabButtonStyles: rightTabStyle === null || rightTabStyle === void 0 ? void 0 : rightTabStyle.tabButtonStyles }))));
|
|
1611
1620
|
};
|
|
1612
|
-
var HeaderDrawerTabs = Component$
|
|
1621
|
+
var HeaderDrawerTabs = Component$1H;
|
|
1613
1622
|
|
|
1614
1623
|
var styles$1A = {"HeaderTabsComponent":"mg_header_tabs_HeaderTabsComponent_yjqx4"};
|
|
1615
1624
|
|
|
1616
|
-
var Component$
|
|
1625
|
+
var Component$1G = function (_a) {
|
|
1617
1626
|
var _b = _a.headerTabList, headerTabList = _b === void 0 ? [] : _b, _c = _a.urlParam, urlParam = _c === void 0 ? '' : _c, addDivider = _a.addDivider;
|
|
1618
1627
|
return (React.createElement("div", { className: styles$1A.HeaderTabsComponent, "data-add-divider": addDivider }, headerTabList.map(function (_a, index) {
|
|
1619
1628
|
var headerTabProps = __rest(_a, []);
|
|
@@ -1626,7 +1635,7 @@ var Component$1F = function (_a) {
|
|
|
1626
1635
|
/**
|
|
1627
1636
|
* Molecule UI component for header tabs information`
|
|
1628
1637
|
*/
|
|
1629
|
-
var HeaderTabs = Component$
|
|
1638
|
+
var HeaderTabs = Component$1G;
|
|
1630
1639
|
|
|
1631
1640
|
var styles$1z = {"magneto-ui-input":"mg_input_magneto-ui-input_tifvx","magneto-ui-input--container":"mg_input_magneto-ui-input--container_tifvx","magneto-ui-input--container__input":"mg_input_magneto-ui-input--container_input_tifvx","magneto-ui-input--container__label":"mg_input_magneto-ui-input--container_label_tifvx","magneto-ui-input--container__icon":"mg_input_magneto-ui-input--container_icon_tifvx","magneto-ui-input--container__icon-action":"mg_input_magneto-ui-input--container_icon-action_tifvx","magneto-ui-input--container__error":"mg_input_magneto-ui-input--container_error_tifvx","magneto-ui-input__footer":"mg_input_magneto-ui-input_footer_tifvx","footer-without-error":"mg_input_footer-without-error_tifvx"};
|
|
1632
1641
|
|
|
@@ -1684,7 +1693,7 @@ var Input = function (_a) {
|
|
|
1684
1693
|
|
|
1685
1694
|
var styles$1y = {"magneto-ui-flat-loader":"mg_flat_loader_magneto-ui-flat-loader_q96bq","rotation":"mg_flat_loader_rotation_q96bq"};
|
|
1686
1695
|
|
|
1687
|
-
var Component$
|
|
1696
|
+
var Component$1F = function (_a) {
|
|
1688
1697
|
var color = _a.color, size = _a.size, secondColor = _a.secondColor;
|
|
1689
1698
|
var loadingSize = useMemo(function () {
|
|
1690
1699
|
if (size) {
|
|
@@ -1700,7 +1709,7 @@ var Component$1E = function (_a) {
|
|
|
1700
1709
|
}, [size]);
|
|
1701
1710
|
return (React.createElement("div", { style: __assign(__assign({}, loadingSize), { border: "2px solid ".concat(color || '#090467'), borderBottomColor: secondColor || 'white' }), className: styles$1y["".concat(classMUI, "-flat-loader")] }));
|
|
1702
1711
|
};
|
|
1703
|
-
var FlatLoader = Component$
|
|
1712
|
+
var FlatLoader = Component$1F;
|
|
1704
1713
|
|
|
1705
1714
|
var styles$1x = {"magneto-ui-input-plus":"mg_input_plus_magneto-ui-input-plus_1diki","magneto-ui-input-plus__plus-button":"mg_input_plus_magneto-ui-input-plus_plus-button_1diki","disabled":"mg_input_plus_disabled_1diki","disabled-img":"mg_input_plus_disabled-img_1diki"};
|
|
1706
1715
|
|
|
@@ -1755,7 +1764,7 @@ var styles$1w = {"magneto-ui-job-actions":"mg_job_actions_magneto-ui-job-actions
|
|
|
1755
1764
|
|
|
1756
1765
|
var style$N = {"popover":"mg_share_popover_popover_nlj0v","popover--hidden":"mg_share_popover_popover--hidden_nlj0v","popover__btn":"mg_share_popover_popover_btn_nlj0v","content":"mg_share_popover_content_nlj0v","content__link":"mg_share_popover_content_link_nlj0v"};
|
|
1757
1766
|
|
|
1758
|
-
var Component$
|
|
1767
|
+
var Component$1E = function (_a) {
|
|
1759
1768
|
var _b = _a.shareLinks, shareLinks = _b === void 0 ? [] : _b, _c = _a.btnProps, btnProps = _c === void 0 ? {} : _c, _d = _a.classNameContent, classNameContent = _d === void 0 ? '' : _d, _e = _a.classNameButton, classNameButton = _e === void 0 ? '' : _e, rest = __rest(_a, ["shareLinks", "btnProps", "classNameContent", "classNameButton"]);
|
|
1760
1769
|
var _f = useState(false), show = _f[0], setShow = _f[1];
|
|
1761
1770
|
return (React.createElement(Popover, { className: [style$N['popover'], !show ? style$N['popover--hidden'] : ''].join(' '), positionX: "right", positionY: "bottom", show: show, widthBase: 45, content: React.createElement("ul", { className: [style$N['content'], classNameContent].join(' ') },
|
|
@@ -1773,10 +1782,10 @@ var Component$1D = function (_a) {
|
|
|
1773
1782
|
React.createElement("button", __assign({}, btnProps, { className: [style$N['popover__btn'], classNameButton].join(' '), onClick: function () { return setShow(function (show) { return !show; }); }, onBlur: function () { return setShow(false); } }),
|
|
1774
1783
|
React.createElement(IconItem, { size: 20, icon: Share }))));
|
|
1775
1784
|
};
|
|
1776
|
-
Component$
|
|
1777
|
-
var SharePopover = Component$
|
|
1785
|
+
Component$1E.displayName = 'SharePopover';
|
|
1786
|
+
var SharePopover = Component$1E;
|
|
1778
1787
|
|
|
1779
|
-
var Component$
|
|
1788
|
+
var Component$1D = function (_a) {
|
|
1780
1789
|
var actionsAnchorIcons = _a.actionsAnchorIcons, actionsAnchorLinks = _a.actionsAnchorLinks, actionsAnchorTitle = _a.actionsAnchorTitle, externalButtonChild = _a.externalButtonChild, saveButtonProps = _a.saveButtonProps, shareButtonProps = _a.shareButtonProps;
|
|
1781
1790
|
var actionsLinkList = actionsAnchorIcons === null || actionsAnchorIcons === void 0 ? void 0 : actionsAnchorIcons.map(function (_, index) { return ({
|
|
1782
1791
|
icon: actionsAnchorIcons === null || actionsAnchorIcons === void 0 ? void 0 : actionsAnchorIcons[index],
|
|
@@ -1799,11 +1808,11 @@ var Component$1C = function (_a) {
|
|
|
1799
1808
|
/**
|
|
1800
1809
|
* UI Molecule Component for Jobs Actions
|
|
1801
1810
|
*/
|
|
1802
|
-
var JobActions = Component$
|
|
1811
|
+
var JobActions = Component$1D;
|
|
1803
1812
|
|
|
1804
1813
|
var styles$1v = {"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"};
|
|
1805
1814
|
|
|
1806
|
-
var Component$
|
|
1815
|
+
var Component$1C = function (_a) {
|
|
1807
1816
|
var offerApplyHeader = _a.offerApplyHeader, offerApplyElements = _a.offerApplyElements, externalChild = _a.externalChild;
|
|
1808
1817
|
return (React.createElement("div", { className: styles$1v['magneto-ui-job-apply-card'] },
|
|
1809
1818
|
React.createElement("div", { className: styles$1v['magneto-ui-job-apply-card__wrapper'] },
|
|
@@ -1826,7 +1835,7 @@ var Component$1B = function (_a) {
|
|
|
1826
1835
|
/**
|
|
1827
1836
|
* UI Molecule Component for Job Apply Card
|
|
1828
1837
|
*/
|
|
1829
|
-
var JobApplyCard = Component$
|
|
1838
|
+
var JobApplyCard = Component$1C;
|
|
1830
1839
|
|
|
1831
1840
|
var style$M = {"magneto-ui-card-jobs":"mg_job_card_desktop_magneto-ui-card-jobs_1u1yc","magneto-ui-card-jobs--arrow":"mg_job_card_desktop_magneto-ui-card-jobs--arrow_1u1yc","magneto-ui-card-jobs--data":"mg_job_card_desktop_magneto-ui-card-jobs--data_1u1yc","magneto-ui-card-jobs--row1":"mg_job_card_desktop_magneto-ui-card-jobs--row1_1u1yc","magneto-ui-card-jobs--row2":"mg_job_card_desktop_magneto-ui-card-jobs--row2_1u1yc","magneto-ui-card-jobs--row3":"mg_job_card_desktop_magneto-ui-card-jobs--row3_1u1yc","magneto-ui-card-jobs--row4":"mg_job_card_desktop_magneto-ui-card-jobs--row4_1u1yc","magneto-ui-card-jobs--row2__position":"mg_job_card_desktop_magneto-ui-card-jobs--row2_position_1u1yc","magneto-ui-card-jobs--row2__urgent":"mg_job_card_desktop_magneto-ui-card-jobs--row2_urgent_1u1yc","magneto-ui-card-jobs--row2__variant":"mg_job_card_desktop_magneto-ui-card-jobs--row2_variant_1u1yc","magneto-ui-card-jobs--row3__info1":"mg_job_card_desktop_magneto-ui-card-jobs--row3_info1_1u1yc","magneto-ui-card-jobs--row3__info2":"mg_job_card_desktop_magneto-ui-card-jobs--row3_info2_1u1yc","magneto-ui-card-jobs--brand":"mg_job_card_desktop_magneto-ui-card-jobs--brand_1u1yc","magneto-ui-card-jobs--brand__img":"mg_job_card_desktop_magneto-ui-card-jobs--brand_img_1u1yc","was-seen":"mg_job_card_desktop_was-seen_1u1yc","is-active":"mg_job_card_desktop_is-active_1u1yc"};
|
|
1832
1841
|
|
|
@@ -1912,7 +1921,7 @@ var JobCard = function (_a) {
|
|
|
1912
1921
|
|
|
1913
1922
|
var styles$1u = {"magneto-ui-job-company-header":"mg_job_company_header_magneto-ui-job-company-header_13130"};
|
|
1914
1923
|
|
|
1915
|
-
var Component$
|
|
1924
|
+
var Component$1B = function (_a) {
|
|
1916
1925
|
var jobCompanyLogoProps = _a.jobCompanyLogoProps, jobHeaderProps = _a.jobHeaderProps;
|
|
1917
1926
|
return (React.createElement("div", { className: styles$1u['magneto-ui-job-company-header'] },
|
|
1918
1927
|
React.createElement(JobCompanyLogo, __assign({}, jobCompanyLogoProps)),
|
|
@@ -1921,18 +1930,18 @@ var Component$1A = function (_a) {
|
|
|
1921
1930
|
/**
|
|
1922
1931
|
* UI Molecule component for Company Job Header
|
|
1923
1932
|
*/
|
|
1924
|
-
var JobCompanyHeader = Component$
|
|
1933
|
+
var JobCompanyHeader = Component$1B;
|
|
1925
1934
|
|
|
1926
1935
|
var styles$1t = {"magneto-ui-job-detail-card":"mg_job_detail_card_magneto-ui-job-detail-card_htydq"};
|
|
1927
1936
|
|
|
1928
|
-
var Component$
|
|
1937
|
+
var Component$1A = function (_a) {
|
|
1929
1938
|
var offerDescription = _a.offerDescription;
|
|
1930
1939
|
return (React.createElement("div", { className: styles$1t['magneto-ui-job-detail-card'] }, offerDescription !== null ? React.createElement("div", { dangerouslySetInnerHTML: { __html: offerDescription } }) : React.createElement(Fragment, null)));
|
|
1931
1940
|
};
|
|
1932
1941
|
/**
|
|
1933
1942
|
* UI Molecule Component for Job Detail Card Header
|
|
1934
1943
|
*/
|
|
1935
|
-
var JobDetailCard = Component$
|
|
1944
|
+
var JobDetailCard = Component$1A;
|
|
1936
1945
|
|
|
1937
1946
|
var style$K = {"magneto-ui-job-detail-container":"mg_job_detail_container_magneto-ui-job-detail-container_2904j","magneto-ui-job-detail-container--btn":"mg_job_detail_container_magneto-ui-job-detail-container--btn_2904j","is-open":"mg_job_detail_container_is-open_2904j"};
|
|
1938
1947
|
|
|
@@ -1949,7 +1958,7 @@ var JobDetailContainer = function (_a) {
|
|
|
1949
1958
|
|
|
1950
1959
|
var styles$1s = {"magneto-ui-job-details":"mg_job_details_magneto-ui-job-details_nkmig","magneto-ui-job-details__wrapper":"mg_job_details_magneto-ui-job-details_wrapper_nkmig","magneto-ui-job-details__item-detail":"mg_job_details_magneto-ui-job-details_item-detail_nkmig","magneto-ui-job-details__item-detail-icon":"mg_job_details_magneto-ui-job-details_item-detail-icon_nkmig","magneto-ui-job-details__item-detail-text":"mg_job_details_magneto-ui-job-details_item-detail-text_nkmig"};
|
|
1951
1960
|
|
|
1952
|
-
var Component$
|
|
1961
|
+
var Component$1z = function (_a) {
|
|
1953
1962
|
var offerDetailsList = _a.offerDetailsList, iconList = _a.iconList, altList = _a.altList, cities = _a.cities, textRemote = _a.textRemote, isRemote = _a.isRemote;
|
|
1954
1963
|
var jobDetailsList = offerDetailsList === null || offerDetailsList === void 0 ? void 0 : offerDetailsList.map(function (offerDetailText, index) { return ({
|
|
1955
1964
|
icon: iconList && iconList[index],
|
|
@@ -1974,12 +1983,12 @@ var Component$1y = function (_a) {
|
|
|
1974
1983
|
/**
|
|
1975
1984
|
* UI Molecule component for Job Detail
|
|
1976
1985
|
*/
|
|
1977
|
-
Component$
|
|
1978
|
-
var JobDetails = Component$
|
|
1986
|
+
Component$1z.displayName = 'JobDetails';
|
|
1987
|
+
var JobDetails = Component$1z;
|
|
1979
1988
|
|
|
1980
1989
|
var styles$1r = {"magneto-ui-job-footer-card":"mg_job_footer_card_magneto-ui-job-footer-card_xmrf6","magneto-ui-job-footer-card__icons":"mg_job_footer_card_magneto-ui-job-footer-card_icons_xmrf6","magneto-ui-job-footer-card__wrapper":"mg_job_footer_card_magneto-ui-job-footer-card_wrapper_xmrf6","magneto-ui__share-button":"mg_job_footer_card_magneto-ui_share-button_xmrf6"};
|
|
1981
1990
|
|
|
1982
|
-
var Component$
|
|
1991
|
+
var Component$1y = function (_a) {
|
|
1983
1992
|
var offerFooterHeader = _a.offerFooterHeader, offerCompanyLogo = _a.offerCompanyLogo, offerFooterList = _a.offerFooterList, iconList = _a.iconList, shareButtonProps = _a.shareButtonProps, companyImgAlt = _a.companyImgAlt;
|
|
1984
1993
|
var jobFooterList = offerFooterList === null || offerFooterList === void 0 ? void 0 : offerFooterList.map(function (_a, index) {
|
|
1985
1994
|
var href = _a.href, title = _a.title, ariaLabel = _a.ariaLabel;
|
|
@@ -2007,11 +2016,11 @@ var Component$1x = function (_a) {
|
|
|
2007
2016
|
/**
|
|
2008
2017
|
* UI Molecule component for Job Footer Card
|
|
2009
2018
|
*/
|
|
2010
|
-
var JobFooterCard = Component$
|
|
2019
|
+
var JobFooterCard = Component$1y;
|
|
2011
2020
|
|
|
2012
2021
|
var styles$1q = {"magneto-ui-skill":"mg_skill_magneto-ui-skill_1nwsu","magneto-ui-skill__wrapper":"mg_skill_magneto-ui-skill_wrapper_1nwsu","magneto-ui-skill__bar":"mg_skill_magneto-ui-skill_bar_1nwsu","one":"mg_skill_one_1nwsu","two":"mg_skill_two_1nwsu","three":"mg_skill_three_1nwsu","four":"mg_skill_four_1nwsu"};
|
|
2013
2022
|
|
|
2014
|
-
var Component$
|
|
2023
|
+
var Component$1x = function (_a) {
|
|
2015
2024
|
var name = _a.name, score = _a.score;
|
|
2016
2025
|
var _b = useState(false), animationApplied = _b[0], setAnimationApplied = _b[1];
|
|
2017
2026
|
var skillRef = useRef(null);
|
|
@@ -2053,11 +2062,11 @@ var Component$1w = function (_a) {
|
|
|
2053
2062
|
React.createElement("p", null, name),
|
|
2054
2063
|
React.createElement("div", { className: "".concat(styles$1q['magneto-ui-skill__bar'], " ").concat(fillAnimation || styles$1q['magneto-ui-skill--no-animation']) }))));
|
|
2055
2064
|
};
|
|
2056
|
-
var Skill = Component$
|
|
2065
|
+
var Skill = Component$1x;
|
|
2057
2066
|
|
|
2058
2067
|
var styles$1p = {"magneto-ui-job-skills-card":"mg_job_skills_card_magneto-ui-job-skills-card_o3vgw","magneto-ui-job-skills-card__skills-wrapper":"mg_job_skills_card_magneto-ui-job-skills-card_skills-wrapper_o3vgw"};
|
|
2059
2068
|
|
|
2060
|
-
var Component$
|
|
2069
|
+
var Component$1w = function (_a) {
|
|
2061
2070
|
var offerSkillsLabel = _a.offerSkillsLabel, offerSkills = _a.offerSkills;
|
|
2062
2071
|
return (React.createElement(Fragment, null, offerSkills && offerSkills.length >= 1 && (React.createElement("div", { className: styles$1p['magneto-ui-job-skills-card'] },
|
|
2063
2072
|
React.createElement("p", null, offerSkillsLabel),
|
|
@@ -2070,7 +2079,7 @@ var Component$1v = function (_a) {
|
|
|
2070
2079
|
/**
|
|
2071
2080
|
* UI Molecule component of Job Skills Card
|
|
2072
2081
|
*/
|
|
2073
|
-
var JobSkillsCard = Component$
|
|
2082
|
+
var JobSkillsCard = Component$1w;
|
|
2074
2083
|
|
|
2075
2084
|
var styles$1o = {"magneto-ui-job-video":"mg_job_video_magneto-ui-job-video_ntfx8","magneto-ui-play-button":"mg_job_video_magneto-ui-play-button_ntfx8","jobDetailsVideo":"mg_job_video_jobDetailsVideo_ntfx8"};
|
|
2076
2085
|
|
|
@@ -2093,7 +2102,7 @@ var JobVideo = function (_a) {
|
|
|
2093
2102
|
|
|
2094
2103
|
var style$J = {"magneto-ui-list-icon":"mg_list_icon_link_magneto-ui-list-icon_1b3zm"};
|
|
2095
2104
|
|
|
2096
|
-
var Component$
|
|
2105
|
+
var Component$1v = function (_a) {
|
|
2097
2106
|
var listIcon = _a.listIcon, size = _a.size, _b = _a.hover, hover = _b === void 0 ? true : _b, spacing = _a.spacing;
|
|
2098
2107
|
return (React.createElement("div", { style: { gap: "".concat(spacing, "px") }, className: style$J['magneto-ui-list-icon'] }, listIcon.map(function (_a, index) {
|
|
2099
2108
|
var icon = _a.icon, url = _a.url, title = _a.title;
|
|
@@ -2101,11 +2110,11 @@ var Component$1u = function (_a) {
|
|
|
2101
2110
|
React.createElement(IconItem, { alt: title, hover: hover, size: size, icon: icon })));
|
|
2102
2111
|
})));
|
|
2103
2112
|
};
|
|
2104
|
-
var ListIconLink = Component$
|
|
2113
|
+
var ListIconLink = Component$1v;
|
|
2105
2114
|
|
|
2106
2115
|
var style$I = {"magneto-ui-menu-icon":"mg_menu_icon_magneto-ui-menu-icon_1nc3s","magneto-ui-menu-icon__menu-text":"mg_menu_icon_magneto-ui-menu-icon_menu-text_1nc3s","isActive":"mg_menu_icon_isActive_1nc3s"};
|
|
2107
2116
|
|
|
2108
|
-
var Component$
|
|
2117
|
+
var Component$1u = function (_a) {
|
|
2109
2118
|
var text = _a.text, icon = _a.icon, iconProps = _a.iconProps, _b = _a.iconSize, iconSize = _b === void 0 ? 20 : _b, url = _a.url, _c = _a.type, type = _c === void 0 ? 'link' : _c, onClick = _a.onClick, isActive = _a.isActive, _d = _a.className, className = _d === void 0 ? '' : _d, rel = _a.rel, target = _a.target;
|
|
2110
2119
|
var menuActive = isActive ? style$I['isActive'] : '';
|
|
2111
2120
|
return (React.createElement(React.Fragment, null, type === 'link' ? (React.createElement("a", { href: url, className: "".concat(style$I['magneto-ui-menu-icon'], " ").concat(menuActive, " ").concat(className), title: text, rel: rel, target: target },
|
|
@@ -2114,11 +2123,11 @@ var Component$1t = function (_a) {
|
|
|
2114
2123
|
icon && React.createElement(IconItem, __assign({ size: iconSize, hover: false, icon: icon }, iconProps)),
|
|
2115
2124
|
React.createElement("p", { className: style$I['magneto-ui-menu-icon__menu-text'] }, text)))));
|
|
2116
2125
|
};
|
|
2117
|
-
var MenuIcon = Component$
|
|
2126
|
+
var MenuIcon = Component$1u;
|
|
2118
2127
|
|
|
2119
2128
|
var style$H = {"mangeto-ui-list-menu-icons":"mg_list_menu_icons_mangeto-ui-list-menu-icons_u92cd"};
|
|
2120
2129
|
|
|
2121
|
-
var Component$
|
|
2130
|
+
var Component$1t = function (_a) {
|
|
2122
2131
|
var urlParam = _a.urlParam, menuItems = _a.menuItems, menuItems1440 = _a.menuItems1440, logout = _a.logout, settings = _a.settings, haveGif = _a.haveGif;
|
|
2123
2132
|
var logoutText = logout.logoutText, onClick = logout.onClick;
|
|
2124
2133
|
var settingsText = settings.settingsText, onClickSettings = settings.onClick;
|
|
@@ -2139,16 +2148,16 @@ var Component$1s = function (_a) {
|
|
|
2139
2148
|
React.createElement(Divider, null),
|
|
2140
2149
|
React.createElement(MenuIcon, { type: "button", onClick: onClick, icon: LogoutIcon, text: logoutText })));
|
|
2141
2150
|
};
|
|
2142
|
-
var ListMenuIcons = Component$
|
|
2151
|
+
var ListMenuIcons = Component$1t;
|
|
2143
2152
|
|
|
2144
|
-
var Component$
|
|
2153
|
+
var Component$1s = function (_a) {
|
|
2145
2154
|
var _b = _a.menuList, menuList = _b === void 0 ? [] : _b, _c = _a.urlParam, urlParam = _c === void 0 ? '' : _c;
|
|
2146
2155
|
return (React.createElement("div", null, menuList.map(function (_a, index) {
|
|
2147
2156
|
var text = _a.text, url = _a.url, slug = _a.slug;
|
|
2148
2157
|
return (React.createElement(MenuItem, { key: index, isActive: urlParam === slug ? true : false, url: url, text: text }));
|
|
2149
2158
|
})));
|
|
2150
2159
|
};
|
|
2151
|
-
var ListMenuItems = Component$
|
|
2160
|
+
var ListMenuItems = Component$1s;
|
|
2152
2161
|
|
|
2153
2162
|
var style$G = {"magneto-ui-list-menu":"mg_list_menu_text_magneto-ui-list-menu_1m4l3","magneto-ui-list-menu__title":"mg_list_menu_text_magneto-ui-list-menu_title_1m4l3","magneto-ui-list-menu__link":"mg_list_menu_text_magneto-ui-list-menu_link_1m4l3","magneto-ui-list-menu__create-account":"mg_list_menu_text_magneto-ui-list-menu_create-account_1m4l3","magneto-ui-list-menu__create-account--btn":"mg_list_menu_text_magneto-ui-list-menu_create-account--btn_1m4l3"};
|
|
2154
2163
|
|
|
@@ -2195,7 +2204,7 @@ var style$D = {"mega-menu-cards":"mg_mega_menu_cards_mega-menu-cards_11ld6","meg
|
|
|
2195
2204
|
|
|
2196
2205
|
var styles$1n = {"button-link":"mg_button_link_button-link_1iyy1","button-link__text":"mg_button_link_button-link_text_1iyy1"};
|
|
2197
2206
|
|
|
2198
|
-
var Component$
|
|
2207
|
+
var Component$1r = function (_a) {
|
|
2199
2208
|
var buttonText = _a.buttonText, onClick = _a.onClick, suffixIcon = _a.suffixIcon, prefixIcon = _a.prefixIcon, className = _a.className, _b = _a.iconSize, iconSize = _b === void 0 ? 20 : _b, href = _a.href, rel = _a.rel, target = _a.target;
|
|
2200
2209
|
var handleClick = useCallback(function (event) {
|
|
2201
2210
|
if (onClick) {
|
|
@@ -2211,7 +2220,7 @@ var Component$1q = function (_a) {
|
|
|
2211
2220
|
/**
|
|
2212
2221
|
* UI Atom Component of Save Button
|
|
2213
2222
|
*/
|
|
2214
|
-
var ButtonLink = Component$
|
|
2223
|
+
var ButtonLink = Component$1r;
|
|
2215
2224
|
|
|
2216
2225
|
var MegaMenuCards = function (_a) {
|
|
2217
2226
|
var jobs = _a.jobs, action = _a.action, title = _a.title, actionTitle = _a.actionTitle, className = _a.className;
|
|
@@ -2323,51 +2332,80 @@ var MenuSearch = function (_a) {
|
|
|
2323
2332
|
React.createElement("div", { className: "".concat(styles$1l['magneto-ui-menu-search_content'], " ").concat(show && styles$1l.open) }, content))));
|
|
2324
2333
|
};
|
|
2325
2334
|
|
|
2326
|
-
var initialState = {
|
|
2327
|
-
text: '',
|
|
2328
|
-
type: 'info',
|
|
2329
|
-
duration: 3000
|
|
2330
|
-
};
|
|
2331
2335
|
var iconByType = {
|
|
2332
|
-
info:
|
|
2333
|
-
success:
|
|
2334
|
-
warning:
|
|
2335
|
-
error:
|
|
2336
|
+
info: InfoCircleBlueBold,
|
|
2337
|
+
success: TickCircleGreenBold,
|
|
2338
|
+
warning: WarningYellowBold,
|
|
2339
|
+
error: CloseCircleRedBold
|
|
2336
2340
|
};
|
|
2341
|
+
var transitionDuration = 300;
|
|
2337
2342
|
|
|
2338
|
-
var styles$1k = {"
|
|
2343
|
+
var styles$1k = {"magneto-ui-message__container":"mg_message_magneto-ui-message_container_bk7n3","magneto-ui-message__container--show":"mg_message_magneto-ui-message_container--show_bk7n3","magneto-ui-message__container--hidden":"mg_message_magneto-ui-message_container--hidden_bk7n3","magneto-ui-message__container--info":"mg_message_magneto-ui-message_container--info_bk7n3","magneto-ui-message__container--success":"mg_message_magneto-ui-message_container--success_bk7n3","magneto-ui-message__container--warning":"mg_message_magneto-ui-message_container--warning_bk7n3","magneto-ui-message__container--error":"mg_message_magneto-ui-message_container--error_bk7n3","magneto-ui-message__text":"mg_message_magneto-ui-message_text_bk7n3","magneto-ui-message__text--bold":"mg_message_magneto-ui-message_text--bold_bk7n3","magneto-ui-message__icon":"mg_message_magneto-ui-message_icon_bk7n3"};
|
|
2339
2344
|
|
|
2340
|
-
var
|
|
2341
|
-
var
|
|
2342
|
-
var
|
|
2345
|
+
var Component$1q = function (_a) {
|
|
2346
|
+
var className = _a.className, description = _a.description, _b = _a.duration, duration = _b === void 0 ? 3000 : _b, iconProps = _a.iconProps, onHide = _a.onHide, text = _a.text, _c = _a.type, type = _c === void 0 ? 'info' : _c, _d = _a.visible, visible = _d === void 0 ? true : _d;
|
|
2347
|
+
var _e = useState(false), toggleAnimation = _e[0], setToggleAnimation = _e[1];
|
|
2348
|
+
var _f = useState(visible), localVisible = _f[0], setLocalVisible = _f[1];
|
|
2349
|
+
var _g = useState(false), isAnimating = _g[0], setIsAnimating = _g[1];
|
|
2350
|
+
var removeTimeoutRef = useRef(null);
|
|
2351
|
+
var hideTimeoutRef = useRef(null);
|
|
2352
|
+
var containerVar = useMemo(function () { return ({
|
|
2353
|
+
'--transition-duration': "".concat(transitionDuration / 1000, "s")
|
|
2354
|
+
}); }, []);
|
|
2355
|
+
var containerStyles = useMemo(function () {
|
|
2356
|
+
return CNM.get({
|
|
2357
|
+
styles: styles$1k,
|
|
2358
|
+
cls: [
|
|
2359
|
+
'message__container',
|
|
2360
|
+
"message__container--".concat(toggleAnimation ? 'show' : 'hidden'),
|
|
2361
|
+
"message__container--".concat(type)
|
|
2362
|
+
]
|
|
2363
|
+
});
|
|
2364
|
+
}, [type, toggleAnimation]);
|
|
2365
|
+
var textStyles = useCallback(function (bold) { return CNM.get({ styles: styles$1k, cls: ['message__text', bold && 'message__text--bold'] }); }, []);
|
|
2343
2366
|
useEffect(function () {
|
|
2344
|
-
|
|
2345
|
-
|
|
2367
|
+
if (!localVisible)
|
|
2368
|
+
return;
|
|
2369
|
+
hideTimeoutRef.current = setTimeout(function () {
|
|
2370
|
+
setToggleAnimation(false);
|
|
2371
|
+
}, duration);
|
|
2372
|
+
removeTimeoutRef.current = setTimeout(function () {
|
|
2373
|
+
setLocalVisible(false);
|
|
2374
|
+
onHide === null || onHide === void 0 ? void 0 : onHide(false);
|
|
2375
|
+
}, duration + transitionDuration);
|
|
2376
|
+
return function () {
|
|
2377
|
+
if (hideTimeoutRef.current)
|
|
2378
|
+
clearTimeout(hideTimeoutRef.current);
|
|
2379
|
+
if (removeTimeoutRef.current)
|
|
2380
|
+
clearTimeout(removeTimeoutRef.current);
|
|
2381
|
+
};
|
|
2382
|
+
}, [duration, localVisible, onHide]);
|
|
2346
2383
|
useEffect(function () {
|
|
2347
|
-
if (!
|
|
2384
|
+
if (!localVisible)
|
|
2348
2385
|
return;
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
ReactDOM.render(React.createElement(Message, __assign({}, props)), container);
|
|
2368
|
-
var duration = props.duration ? props.duration : initialState.duration;
|
|
2369
|
-
setTimeout(function () { return document.body.removeChild(container); }, duration);
|
|
2386
|
+
setTimeout(function () {
|
|
2387
|
+
setToggleAnimation(true);
|
|
2388
|
+
}, 10);
|
|
2389
|
+
}, [localVisible]);
|
|
2390
|
+
useEffect(function () {
|
|
2391
|
+
if ((!visible && !isAnimating) || (visible && isAnimating))
|
|
2392
|
+
return;
|
|
2393
|
+
setLocalVisible(visible);
|
|
2394
|
+
setIsAnimating(visible);
|
|
2395
|
+
}, [isAnimating, visible]);
|
|
2396
|
+
return localVisible
|
|
2397
|
+
? ReactDOM.createPortal(React.createElement("div", { style: containerVar, className: CNM.get({ styles: styles$1k, cls: [className] }) },
|
|
2398
|
+
React.createElement("div", { className: containerStyles },
|
|
2399
|
+
React.createElement(IconItem, __assign({ alt: type, className: CNM.get({ styles: styles$1k, cls: ['message__icon'] }), icon: iconByType[type], showDefaultFallback: false, size: 20 }, iconProps)),
|
|
2400
|
+
React.createElement("div", null,
|
|
2401
|
+
text && React.createElement("span", { className: textStyles(!!description) }, text),
|
|
2402
|
+
description && React.createElement("span", { className: textStyles() }, description)))), document.body)
|
|
2403
|
+
: null;
|
|
2370
2404
|
};
|
|
2405
|
+
/**
|
|
2406
|
+
* Molecule UI component for Message
|
|
2407
|
+
*/
|
|
2408
|
+
var Message = Component$1q;
|
|
2371
2409
|
|
|
2372
2410
|
var styles$1j = {"magneto-ui-mobile-job-details-header":"mg_mobile_job_detail_header_magneto-ui-mobile-job-details-header_1fct0"};
|
|
2373
2411
|
|
|
@@ -7586,5 +7624,5 @@ var Component = function (_a) {
|
|
|
7586
7624
|
};
|
|
7587
7625
|
var SuggestedJobsPage = Component;
|
|
7588
7626
|
|
|
7589
|
-
export { Actions, Alert, AnalystTemplate, Avatar, BarLoader, BrandMenu, BrandsContainer, BrandsMenuMobile, BrandsMenuPopover$1 as BrandsMenuPopover, Breadcrumb, Breadcrumbs, Button, CitiesDetailDrawer, ComparativeCounter, DateDropdown, DateInput, DatePicker, DatePickerResponsiveComponent, Divider, Drawer, DrawerMenu, EExpandableInfoSize, EExpandableInfoVariant, ERadioType, EmptyResult as EmptyResults, ExpandableInfo, FilterCard, FilterContainerMenu, FilterHeader, FilterMenuItem, FilterSearchItem, FlatLoader, Footer, FooterMenuLinks, FrequentSearch, HeaderAnalyst, HeaderDrawerCompany, HeaderDrawerTabs, HeaderTab, HeaderTabs, IconItem, Image, Input, InputPlus, InputSearch, JobActions, JobApplyCard, JobCard, JobCardDesktop, JobCardMobile, JobCompanyHeader, JobCompanyLogo, JobDetailCard, JobDetailContainer, JobDetails, JobDetailsDrawer, JobFooterCard, JobHeader, JobSkillsCard, 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, MegaMenuJobsTabs, MegaMenuPopover, MegaMenuTab, MenuDropdown, MenuIcon, MenuItem, MenuSearch, Message, MobileDatePicker, MobileDrawer, MobileDrawerMenu, MobileJobDetailsDrawer, MobileJobDetailsHeader, MobileSearchbar, MobileSortMenu, Modal$1 as Modal, ModalAnalyst, MultiRangeSlider, MultipleSelectionEntry, NavMenuAnalyst, NavMenuAnalystRegionModal, NavMenuDrawerAnalyst, OneSelectionEntry, Pagination, Paragraph, Popover, Radio, RightsReservedText, SaveButton, ScoreLevel, ScoreLevelStatic, SearchButton, SearchItem, Searchbar, Select, Select2, ShareButton, SharePopover, SideFilter, SimilarJobs, SimilarJobsCard, Skill, SortBar, SortMenu$1 as SortMenu, SuggestedJobsPage, Switch, Tab, TabButton, Tags as Tag, TextArea, Timeline, TimelineEvent, ToggleButton, Tooltip, UserMenu, UserMenuAnalyst, UserMenuButtonAnalyst, UserMenuWrapperAnalyst,
|
|
7627
|
+
export { Actions, Alert, AnalystTemplate, Avatar, BarLoader, BrandMenu, BrandsContainer, BrandsMenuMobile, BrandsMenuPopover$1 as BrandsMenuPopover, Breadcrumb, Breadcrumbs, Button, CitiesDetailDrawer, ComparativeCounter, DateDropdown, DateInput, DatePicker, DatePickerResponsiveComponent, Divider, Drawer, DrawerMenu, EExpandableInfoSize, EExpandableInfoVariant, ERadioType, EmptyResult as EmptyResults, ExpandableInfo, FilterCard, FilterContainerMenu, FilterHeader, FilterMenuItem, FilterSearchItem, FlatLoader, Footer, FooterMenuLinks, FrequentSearch, HeaderAnalyst, HeaderDrawerCompany, HeaderDrawerTabs, HeaderTab, HeaderTabs, IconItem, Image, Input, InputPlus, InputSearch, JobActions, JobApplyCard, JobCard, JobCardDesktop, JobCardMobile, JobCompanyHeader, JobCompanyLogo, JobDetailCard, JobDetailContainer, JobDetails, JobDetailsDrawer, JobFooterCard, JobHeader, JobSkillsCard, 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, MegaMenuJobsTabs, MegaMenuPopover, MegaMenuTab, MenuDropdown, MenuIcon, MenuItem, MenuSearch, Message, MobileDatePicker, MobileDrawer, MobileDrawerMenu, MobileJobDetailsDrawer, MobileJobDetailsHeader, MobileSearchbar, MobileSortMenu, Modal$1 as Modal, ModalAnalyst, MultiRangeSlider, MultipleSelectionEntry, NavMenuAnalyst, NavMenuAnalystRegionModal, NavMenuDrawerAnalyst, OneSelectionEntry, Pagination, Paragraph, Popover, Radio, RightsReservedText, SaveButton, ScoreLevel, ScoreLevelStatic, SearchButton, SearchItem, Searchbar, Select, Select2, ShareButton, SharePopover, SideFilter, SimilarJobs, SimilarJobsCard, Skill, SortBar, SortMenu$1 as SortMenu, SuggestedJobsPage, Switch, Tab, TabButton, Tags as Tag, TextArea, Timeline, TimelineEvent, ToggleButton, Tooltip, UserMenu, UserMenuAnalyst, UserMenuButtonAnalyst, UserMenuWrapperAnalyst, useMediaQuery, withClickOut, withMegaMenuContainer };
|
|
7590
7628
|
//# sourceMappingURL=index.js.map
|