magneto365.ui 2.47.0 → 2.48.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/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 +150 -114
- 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/constants/icons.constants.d.ts +4 -0
- package/dist/esm/css/magneto.ui.lib.min.css +1 -1
- package/dist/esm/index.js +151 -114
- 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/constants/icons.constants.d.ts +4 -0
- package/dist/index.d.ts +31 -8
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -250,7 +250,7 @@ var useMediaQuery = function (defaultValue, options) {
|
|
|
250
250
|
|
|
251
251
|
var style$Y = {"magneto-ui-icon":"mg_icon_magneto-ui-icon_4jxnv","magneto-ui-hover":"mg_icon_magneto-ui-hover_4jxnv"};
|
|
252
252
|
|
|
253
|
-
var Component$
|
|
253
|
+
var Component$1$ = function (_a) {
|
|
254
254
|
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;
|
|
255
255
|
var _d = React.useState(false), imageError = _d[0], setImageError = _d[1];
|
|
256
256
|
var handleError = function () {
|
|
@@ -266,7 +266,7 @@ var Component$1_ = function (_a) {
|
|
|
266
266
|
/**
|
|
267
267
|
* Atom UI component of Icon for general purpose
|
|
268
268
|
*/
|
|
269
|
-
var IconItem = Component$
|
|
269
|
+
var IconItem = Component$1$;
|
|
270
270
|
|
|
271
271
|
var styles$1X = {"avatarComponent":"mg_avatar_avatarComponent_1upgt","magneto-ui-default-avatar":"mg_avatar_magneto-ui-default-avatar_1upgt"};
|
|
272
272
|
|
|
@@ -332,6 +332,8 @@ var Close = "https://static.magneto365.com/lib/assets/2cb852fd568fb219.svg";
|
|
|
332
332
|
|
|
333
333
|
var CloseCircle = "https://static.magneto365.com/lib/assets/8cfd4406b512a517.svg";
|
|
334
334
|
|
|
335
|
+
var CloseCircleRedBold = "https://static.magneto365.com/lib/assets/216605c9a4ba8eeb.svg";
|
|
336
|
+
|
|
335
337
|
var CoinBlackOutline = "https://static.magneto365.com/lib/assets/360b8d098be3a53b.svg";
|
|
336
338
|
|
|
337
339
|
var Danger = "https://static.magneto365.com/lib/assets/9a7bd42035ea607a.svg";
|
|
@@ -390,6 +392,8 @@ var ImageWhiteOutline = "https://static.magneto365.com/lib/assets/2d1479bc672d97
|
|
|
390
392
|
|
|
391
393
|
var Info = "https://static.magneto365.com/lib/assets/ae6472919de3f2cd.svg";
|
|
392
394
|
|
|
395
|
+
var InfoCircleBlueBold = "https://static.magneto365.com/lib/assets/53122d74f38b05ed.svg";
|
|
396
|
+
|
|
393
397
|
var Instagram = "https://static.magneto365.com/lib/assets/2f6e7422de96c0e8.svg";
|
|
394
398
|
|
|
395
399
|
var InstagramSolid = "https://static.magneto365.com/lib/assets/b0d4cd86c4b553f3.svg";
|
|
@@ -482,6 +486,8 @@ var TaskBlueBold = "https://static.magneto365.com/lib/assets/546c3401e6c1ab39.sv
|
|
|
482
486
|
|
|
483
487
|
var TaskWhiteOutline = "https://static.magneto365.com/lib/assets/e8987356bcb0eb69.svg";
|
|
484
488
|
|
|
489
|
+
var TickCircleGreenBold = "https://static.magneto365.com/lib/assets/b7c5dd6900f044db.svg";
|
|
490
|
+
|
|
485
491
|
var Tiktok = "https://static.magneto365.com/lib/assets/f3e3f11bce735190.svg";
|
|
486
492
|
|
|
487
493
|
var TiktokSolid = "https://static.magneto365.com/lib/assets/6fb8b692c5ce240a.svg";
|
|
@@ -504,6 +510,8 @@ var UserSearchWhiteOutline = "https://static.magneto365.com/lib/assets/eb30208cb
|
|
|
504
510
|
|
|
505
511
|
var Warning = "https://static.magneto365.com/lib/assets/bfab45bdc4d8d900.svg";
|
|
506
512
|
|
|
513
|
+
var WarningYellowBold = "https://static.magneto365.com/lib/assets/8949e8e4bfb2ef16.svg";
|
|
514
|
+
|
|
507
515
|
var WhatsAppColor = "https://static.magneto365.com/lib/assets/75c50160036c6fdf.svg";
|
|
508
516
|
|
|
509
517
|
var WhatsAppDark = "https://static.magneto365.com/lib/assets/7fda674d8825bc06.svg";
|
|
@@ -514,7 +522,7 @@ var Youtube = "https://static.magneto365.com/lib/assets/f78dbede1bdf3dd0.svg";
|
|
|
514
522
|
|
|
515
523
|
var YoutubeSolid = "https://static.magneto365.com/lib/assets/cdcc07646d43bd9d.svg";
|
|
516
524
|
|
|
517
|
-
var Component$
|
|
525
|
+
var Component$1_ = function (_a) {
|
|
518
526
|
var userImage = _a.userImage, fallbackImage = _a.fallbackImage, onClick = _a.onClick;
|
|
519
527
|
var _b = React.useState(false), imageError = _b[0], setImageError = _b[1];
|
|
520
528
|
var handleError = function () {
|
|
@@ -528,7 +536,7 @@ var Component$1Z = function (_a) {
|
|
|
528
536
|
/**
|
|
529
537
|
* UI Atom component of Avatar
|
|
530
538
|
*/
|
|
531
|
-
var Avatar = Component$
|
|
539
|
+
var Avatar = Component$1_;
|
|
532
540
|
|
|
533
541
|
var BAR_LOADER_PREFIX = '--bar-loader';
|
|
534
542
|
|
|
@@ -667,7 +675,7 @@ var ShareIcons = {
|
|
|
667
675
|
}
|
|
668
676
|
};
|
|
669
677
|
|
|
670
|
-
var Component$
|
|
678
|
+
var Component$1Z = function (_a) {
|
|
671
679
|
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;
|
|
672
680
|
var _b = React.useState(), component = _b[0], setComponent = _b[1];
|
|
673
681
|
var actionsLinkList = ActionsAnchorIcons === null || ActionsAnchorIcons === void 0 ? void 0 : ActionsAnchorIcons.map(function (_, index) { return ({
|
|
@@ -719,7 +727,7 @@ var ShareLinksAction = function (_a) {
|
|
|
719
727
|
/**
|
|
720
728
|
* UI Molecule componet of Actions
|
|
721
729
|
*/
|
|
722
|
-
var Actions = Object.assign(Component$
|
|
730
|
+
var Actions = Object.assign(Component$1Z, { ShareLinks: ShareLinksAction });
|
|
723
731
|
|
|
724
732
|
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"};
|
|
725
733
|
|
|
@@ -745,7 +753,7 @@ var alertIcons = {
|
|
|
745
753
|
warning: Warning,
|
|
746
754
|
error: Error
|
|
747
755
|
};
|
|
748
|
-
var Component$
|
|
756
|
+
var Component$1Y = function (_a) {
|
|
749
757
|
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;
|
|
750
758
|
var borderStyle = border ? style$X["".concat(classMUI, "-").concat(type, "--with-border")] : '';
|
|
751
759
|
var typeStyle = style$X["".concat(classMUI, "-").concat(type)];
|
|
@@ -757,7 +765,7 @@ var Component$1X = function (_a) {
|
|
|
757
765
|
React__default["default"].createElement(IconItem, { icon: Close, alt: type }))),
|
|
758
766
|
extraButton));
|
|
759
767
|
};
|
|
760
|
-
var Alert = Component$
|
|
768
|
+
var Alert = Component$1Y;
|
|
761
769
|
|
|
762
770
|
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"};
|
|
763
771
|
|
|
@@ -799,7 +807,7 @@ var DrawerPortal = function (_a) {
|
|
|
799
807
|
|
|
800
808
|
var style$U = {"magneto-ui-mobile-drawer":"mg_mobile_drawer_magneto-ui-mobile-drawer_kxkzo","magneto-ui-close-button":"mg_mobile_drawer_magneto-ui-close-button_kxkzo","magneto-ui-container":"mg_mobile_drawer_magneto-ui-container_kxkzo","background-drawer":"mg_mobile_drawer_background-drawer_kxkzo","fadeIn":"mg_mobile_drawer_fadeIn_kxkzo","show":"mg_mobile_drawer_show_kxkzo","hidden":"mg_mobile_drawer_hidden_kxkzo"};
|
|
801
809
|
|
|
802
|
-
var Component$
|
|
810
|
+
var Component$1X = function (_a) {
|
|
803
811
|
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;
|
|
804
812
|
var _d = React.useState(false), showContent = _d[0], setShowContent = _d[1];
|
|
805
813
|
var _e = React.useState(isOpen), renderPortal = _e[0], setRenderPortal = _e[1];
|
|
@@ -835,7 +843,7 @@ var Component$1W = function (_a) {
|
|
|
835
843
|
/**
|
|
836
844
|
* Molecule UI component for Mobile Drawer
|
|
837
845
|
*/
|
|
838
|
-
var MobileDrawer = Component$
|
|
846
|
+
var MobileDrawer = Component$1X;
|
|
839
847
|
|
|
840
848
|
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"};
|
|
841
849
|
|
|
@@ -893,7 +901,7 @@ var BrandsMenuPopover$1 = withClickOut(BrandsMenuPopover);
|
|
|
893
901
|
|
|
894
902
|
var styles$1U = {"BreadcrumbsComponent":"mg_breadcrumbs_BreadcrumbsComponent_13csm"};
|
|
895
903
|
|
|
896
|
-
var Component$
|
|
904
|
+
var Component$1W = function (_a) {
|
|
897
905
|
var homeUrl = _a.homeUrl, breadcrumbProps = _a.breadcrumbProps, _b = _a.iconProps, iconProps = _b === void 0 ? iconPropsBreadCrumb : _b;
|
|
898
906
|
return (React__default["default"].createElement("div", { className: styles$1U.BreadcrumbsComponent },
|
|
899
907
|
React__default["default"].createElement("a", { href: homeUrl },
|
|
@@ -903,7 +911,7 @@ var Component$1V = function (_a) {
|
|
|
903
911
|
/**
|
|
904
912
|
* Molecule UI component for breadcrums information
|
|
905
913
|
*/
|
|
906
|
-
var Breadcrumbs = Component$
|
|
914
|
+
var Breadcrumbs = Component$1W;
|
|
907
915
|
|
|
908
916
|
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"};
|
|
909
917
|
|
|
@@ -925,7 +933,7 @@ var CitiesDetailDrawer = function (_a) {
|
|
|
925
933
|
|
|
926
934
|
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"};
|
|
927
935
|
|
|
928
|
-
var Component$
|
|
936
|
+
var Component$1V = function (_a) {
|
|
929
937
|
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;
|
|
930
938
|
var disabledArrow = React.useMemo(function () {
|
|
931
939
|
if (disabled)
|
|
@@ -941,14 +949,14 @@ var Component$1U = function (_a) {
|
|
|
941
949
|
})),
|
|
942
950
|
React__default["default"].createElement("span", { className: styles$1S['magneto-ui--date-dropdown__icon'] }, disabledArrow)));
|
|
943
951
|
};
|
|
944
|
-
var DateDropdown = Component$
|
|
952
|
+
var DateDropdown = Component$1V;
|
|
945
953
|
|
|
946
954
|
var styles$1R = {"magneto-ui--date-picker__wrapper":"mg_date_picker_magneto-ui--date-picker_wrapper_12pj2"};
|
|
947
955
|
|
|
948
956
|
var defaultValue$1 = function (value) {
|
|
949
957
|
return value ? parseDate(value) : { initialMonth: '', initialYear: '' };
|
|
950
958
|
};
|
|
951
|
-
var Component$
|
|
959
|
+
var Component$1U = function (_a) {
|
|
952
960
|
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;
|
|
953
961
|
var _b = React.useState(defaultValue$1(value).initialMonth), selectedMonth = _b[0], setSelectedMonth = _b[1];
|
|
954
962
|
var _c = React.useState(defaultValue$1(value).initialYear), selectedYear = _c[0], setSelectedYear = _c[1];
|
|
@@ -986,12 +994,12 @@ var Component$1T = function (_a) {
|
|
|
986
994
|
React__default["default"].createElement(DateDropdown, { placeholderLabel: monthPlaceholder, dateOptions: monthOptionsList, selectedOption: selectedMonth, onOptionChanged: handleMonthChange, disabled: disabled }),
|
|
987
995
|
React__default["default"].createElement(DateDropdown, { placeholderLabel: yearPlaceholder, dateOptions: yearOptionsList, selectedOption: selectedYear, onOptionChanged: handleYearChange, disabled: disabled })));
|
|
988
996
|
};
|
|
989
|
-
var DatePicker = Component$
|
|
997
|
+
var DatePicker = Component$1U;
|
|
990
998
|
|
|
991
999
|
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"};
|
|
992
1000
|
|
|
993
1001
|
var DEFAULT_PADDING = 20;
|
|
994
|
-
var Component$
|
|
1002
|
+
var Component$1T = function (_a) {
|
|
995
1003
|
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;
|
|
996
1004
|
var fullDrawer = isFull ? "full-drawer" : '';
|
|
997
1005
|
var paddingValue = customPadding !== undefined ? "".concat(customPadding, "px") : "".concat(DEFAULT_PADDING, "px");
|
|
@@ -1037,7 +1045,7 @@ var Component$1S = function (_a) {
|
|
|
1037
1045
|
/**
|
|
1038
1046
|
* Molecule UI component for Drawer
|
|
1039
1047
|
*/
|
|
1040
|
-
var Drawer = Component$
|
|
1048
|
+
var Drawer = Component$1T;
|
|
1041
1049
|
|
|
1042
1050
|
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"};
|
|
1043
1051
|
|
|
@@ -1102,7 +1110,7 @@ var EXPANDABLE_INFO_ACTION_ICONS = {
|
|
|
1102
1110
|
|
|
1103
1111
|
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"};
|
|
1104
1112
|
|
|
1105
|
-
var Component$
|
|
1113
|
+
var Component$1S = function (_a) {
|
|
1106
1114
|
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;
|
|
1107
1115
|
var isUrl = React.useMemo(function () { return onAction && typeof onAction === 'string'; }, [onAction]);
|
|
1108
1116
|
var Component = React.useMemo(function () { return (isUrl ? 'a' : 'button'); }, [isUrl]);
|
|
@@ -1140,11 +1148,11 @@ var Component$1R = function (_a) {
|
|
|
1140
1148
|
/**
|
|
1141
1149
|
* Molecule UI child component of expandable info
|
|
1142
1150
|
*/
|
|
1143
|
-
var ExpandableInfoAction = Component$
|
|
1151
|
+
var ExpandableInfoAction = Component$1S;
|
|
1144
1152
|
|
|
1145
1153
|
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"};
|
|
1146
1154
|
|
|
1147
|
-
var Component$
|
|
1155
|
+
var Component$1R = function (_a) {
|
|
1148
1156
|
var sections = _a.sections, footer = _a.footer;
|
|
1149
1157
|
var sectionStyles = React.useCallback(function (multiple) {
|
|
1150
1158
|
return CNM.get({
|
|
@@ -1191,7 +1199,7 @@ var Component$1Q = function (_a) {
|
|
|
1191
1199
|
/**
|
|
1192
1200
|
* Molecule UI child component of expandable info
|
|
1193
1201
|
*/
|
|
1194
|
-
var ExpandableInfoDetails = Component$
|
|
1202
|
+
var ExpandableInfoDetails = Component$1R;
|
|
1195
1203
|
|
|
1196
1204
|
exports.EExpandableInfoVariant = void 0;
|
|
1197
1205
|
(function (EExpandableInfoVariant) {
|
|
@@ -1214,7 +1222,7 @@ var EXPANDABLE_INFO_MESSAGE_ICONS = {
|
|
|
1214
1222
|
|
|
1215
1223
|
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"};
|
|
1216
1224
|
|
|
1217
|
-
var Component$
|
|
1225
|
+
var Component$1Q = function (_a) {
|
|
1218
1226
|
var className = _a.className, title = _a.title, prefixIcon = _a.prefixIcon, variant = _a.variant;
|
|
1219
1227
|
var icon = React.useCallback(function (icon) {
|
|
1220
1228
|
if (icon) {
|
|
@@ -1238,11 +1246,11 @@ var Component$1P = function (_a) {
|
|
|
1238
1246
|
/**
|
|
1239
1247
|
* Molecule UI child component of expandable info
|
|
1240
1248
|
*/
|
|
1241
|
-
var ExpandableInfoMessage = Component$
|
|
1249
|
+
var ExpandableInfoMessage = Component$1Q;
|
|
1242
1250
|
|
|
1243
1251
|
var styles$1N = {"magneto-ui-expandable-info-modal":"mg_expandable_info_modal_magneto-ui-expandable-info-modal_mka0n"};
|
|
1244
1252
|
|
|
1245
|
-
var Component$
|
|
1253
|
+
var Component$1P = function (_a) {
|
|
1246
1254
|
var toggler = _a.toggler, details = _a.details;
|
|
1247
1255
|
var _b = React.useState(false), visible = _b[0], setVisible = _b[1];
|
|
1248
1256
|
var handleOnToggle = React.useCallback(function () {
|
|
@@ -1256,7 +1264,7 @@ var Component$1O = function (_a) {
|
|
|
1256
1264
|
/**
|
|
1257
1265
|
* Molecule UI child component of expandable info
|
|
1258
1266
|
*/
|
|
1259
|
-
var ExpandableInfoModal = Component$
|
|
1267
|
+
var ExpandableInfoModal = Component$1P;
|
|
1260
1268
|
|
|
1261
1269
|
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"};
|
|
1262
1270
|
|
|
@@ -1322,7 +1330,7 @@ var withMegaMenuContainer = function (WrappedComponent) {
|
|
|
1322
1330
|
return Component;
|
|
1323
1331
|
};
|
|
1324
1332
|
|
|
1325
|
-
var Component$
|
|
1333
|
+
var Component$1O = function (_a) {
|
|
1326
1334
|
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;
|
|
1327
1335
|
return (React__default["default"].createElement(Popover, { widthBase: 'auto', show: clickOut, positionX: "right", positionY: toggler.size === exports.EExpandableInfoSize.LARGE ? 'top' : 'bottom', className: CNM.get({
|
|
1328
1336
|
styles: styles$1M,
|
|
@@ -1342,7 +1350,7 @@ var Component$1N = function (_a) {
|
|
|
1342
1350
|
/**
|
|
1343
1351
|
* Molecule UI child component of expandable info
|
|
1344
1352
|
*/
|
|
1345
|
-
var ExpandableInfoPopover = withClickOut(Component$
|
|
1353
|
+
var ExpandableInfoPopover = withClickOut(Component$1O);
|
|
1346
1354
|
|
|
1347
1355
|
var EXPANDABLE_INFO_TOGGLER_ICONS = {
|
|
1348
1356
|
coin: CoinBlackOutline
|
|
@@ -1350,7 +1358,7 @@ var EXPANDABLE_INFO_TOGGLER_ICONS = {
|
|
|
1350
1358
|
|
|
1351
1359
|
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"};
|
|
1352
1360
|
|
|
1353
|
-
var Component$
|
|
1361
|
+
var Component$1N = function (_a) {
|
|
1354
1362
|
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;
|
|
1355
1363
|
var styleGenerator = React.useCallback(function (base) {
|
|
1356
1364
|
return CNM.get({
|
|
@@ -1399,11 +1407,11 @@ var Component$1M = function (_a) {
|
|
|
1399
1407
|
/**
|
|
1400
1408
|
* Molecule UI child component of expandable info
|
|
1401
1409
|
*/
|
|
1402
|
-
var ExpandableInfoToggler = Component$
|
|
1410
|
+
var ExpandableInfoToggler = Component$1N;
|
|
1403
1411
|
|
|
1404
1412
|
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"};
|
|
1405
1413
|
|
|
1406
|
-
var Component$
|
|
1414
|
+
var Component$1M = function (_a) {
|
|
1407
1415
|
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;
|
|
1408
1416
|
var togglerProps = React.useMemo(function () { return ({
|
|
1409
1417
|
details: details,
|
|
@@ -1435,7 +1443,7 @@ var Component$1L = function (_a) {
|
|
|
1435
1443
|
/**
|
|
1436
1444
|
* Molecule UI component for expandable info
|
|
1437
1445
|
*/
|
|
1438
|
-
var ExpandableInfo = Component$
|
|
1446
|
+
var ExpandableInfo = Component$1M;
|
|
1439
1447
|
|
|
1440
1448
|
var style$P = {"magneto-ui-filter-container":"mg_filter_container_menu_magneto-ui-filter-container_r9inc"};
|
|
1441
1449
|
|
|
@@ -1532,7 +1540,7 @@ var FilterSearchItem = function (_a) {
|
|
|
1532
1540
|
|
|
1533
1541
|
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"};
|
|
1534
1542
|
|
|
1535
|
-
var Component$
|
|
1543
|
+
var Component$1L = function (_a) {
|
|
1536
1544
|
var searchHeading = _a.searchHeading, searchList = _a.searchList, showLess = _a.showLess, showMore = _a.showMore, showFrequentSearch = _a.showFrequentSearch;
|
|
1537
1545
|
var _b = React.useState(true), showFullList = _b[0], setShowFullList = _b[1];
|
|
1538
1546
|
var searchListDinamyc = React.useMemo(function () {
|
|
@@ -1557,29 +1565,29 @@ var Component$1K = function (_a) {
|
|
|
1557
1565
|
/**
|
|
1558
1566
|
* UI Atom component of Frequent Search
|
|
1559
1567
|
*/
|
|
1560
|
-
var FrequentSearch = Component$
|
|
1568
|
+
var FrequentSearch = Component$1L;
|
|
1561
1569
|
|
|
1562
1570
|
var style$O = {"header-drawer-company":"mg_header_drawer_company_header-drawer-company_jtdka"};
|
|
1563
1571
|
|
|
1564
|
-
var Component$
|
|
1572
|
+
var Component$1K = function (_a) {
|
|
1565
1573
|
var logo = _a.logo, alt = _a.alt, logoCompany = _a.logoCompany, logoCompanyAlt = _a.logoCompanyAlt, flag = _a.flag, flagAlt = _a.flagAlt;
|
|
1566
1574
|
return (React__default["default"].createElement("div", { className: style$O['header-drawer-company'] },
|
|
1567
1575
|
React__default["default"].createElement(LogoComponent, { logo: logo, alt: alt }),
|
|
1568
1576
|
React__default["default"].createElement(LogoComponent, { logo: logoCompany, alt: logoCompanyAlt }),
|
|
1569
1577
|
React__default["default"].createElement("img", { src: flag, alt: flagAlt, loading: "lazy", width: '25px', height: '20px' })));
|
|
1570
1578
|
};
|
|
1571
|
-
var HeaderDrawerCompany = Component$
|
|
1579
|
+
var HeaderDrawerCompany = Component$1K;
|
|
1572
1580
|
|
|
1573
1581
|
var styles$1D = {"TabComponent":"mg_tab_TabComponent_zqqnn"};
|
|
1574
1582
|
|
|
1575
|
-
var Component$
|
|
1583
|
+
var Component$1J = function (_a) {
|
|
1576
1584
|
var children = _a.children;
|
|
1577
1585
|
return React__default["default"].createElement("div", { className: styles$1D.TabComponent }, children);
|
|
1578
1586
|
};
|
|
1579
1587
|
/**
|
|
1580
1588
|
* Molecule UI for Tab
|
|
1581
1589
|
*/
|
|
1582
|
-
var Tab = Component$
|
|
1590
|
+
var Tab = Component$1J;
|
|
1583
1591
|
|
|
1584
1592
|
var styles$1C = {"TabButtonComponent":"mg_tab_button_TabButtonComponent_hysss"};
|
|
1585
1593
|
|
|
@@ -1596,7 +1604,7 @@ var toCSSVariables = function (input) {
|
|
|
1596
1604
|
return output;
|
|
1597
1605
|
};
|
|
1598
1606
|
|
|
1599
|
-
var Component$
|
|
1607
|
+
var Component$1I = function (_a) {
|
|
1600
1608
|
var tabButtonLink = _a.tabButtonLink, tabButtonLinkStyles = _a.tabButtonLinkStyles, tabButtonStyles = _a.tabButtonStyles;
|
|
1601
1609
|
var stylesValue = React.useMemo(function () { return toCSSVariables(tabButtonStyles); }, [tabButtonStyles]);
|
|
1602
1610
|
var boxShadow = (tabButtonStyles || {}).boxShadow;
|
|
@@ -1605,11 +1613,11 @@ var Component$1H = function (_a) {
|
|
|
1605
1613
|
/**
|
|
1606
1614
|
* Molecule UI component for Tab Button
|
|
1607
1615
|
*/
|
|
1608
|
-
var TabButton = Component$
|
|
1616
|
+
var TabButton = Component$1I;
|
|
1609
1617
|
|
|
1610
1618
|
var styles$1B = {"HeaderDrawerTabsComponent":"mg_header_drawer_tabs_HeaderDrawerTabsComponent_1wrvo"};
|
|
1611
1619
|
|
|
1612
|
-
var Component$
|
|
1620
|
+
var Component$1H = function (_a) {
|
|
1613
1621
|
var logoProps = _a.logoProps, leftTabLink = _a.leftTabLink, rightTabLink = _a.rightTabLink, leftTabStyle = _a.leftTabStyle, rightTabStyle = _a.rightTabStyle, homeUrl = _a.homeUrl;
|
|
1614
1622
|
return (React__default["default"].createElement("div", { className: styles$1B.HeaderDrawerTabsComponent },
|
|
1615
1623
|
React__default["default"].createElement("a", { href: homeUrl },
|
|
@@ -1618,11 +1626,11 @@ var Component$1G = function (_a) {
|
|
|
1618
1626
|
React__default["default"].createElement(TabButton, { tabButtonLink: leftTabLink, tabButtonLinkStyles: leftTabStyle === null || leftTabStyle === void 0 ? void 0 : leftTabStyle.tabButtonLinkStyles, tabButtonStyles: leftTabStyle === null || leftTabStyle === void 0 ? void 0 : leftTabStyle.tabButtonStyles }),
|
|
1619
1627
|
React__default["default"].createElement(TabButton, { tabButtonLink: rightTabLink, tabButtonLinkStyles: rightTabStyle === null || rightTabStyle === void 0 ? void 0 : rightTabStyle.tabButtonLinkStyles, tabButtonStyles: rightTabStyle === null || rightTabStyle === void 0 ? void 0 : rightTabStyle.tabButtonStyles }))));
|
|
1620
1628
|
};
|
|
1621
|
-
var HeaderDrawerTabs = Component$
|
|
1629
|
+
var HeaderDrawerTabs = Component$1H;
|
|
1622
1630
|
|
|
1623
1631
|
var styles$1A = {"HeaderTabsComponent":"mg_header_tabs_HeaderTabsComponent_yjqx4"};
|
|
1624
1632
|
|
|
1625
|
-
var Component$
|
|
1633
|
+
var Component$1G = function (_a) {
|
|
1626
1634
|
var _b = _a.headerTabList, headerTabList = _b === void 0 ? [] : _b, _c = _a.urlParam, urlParam = _c === void 0 ? '' : _c, addDivider = _a.addDivider;
|
|
1627
1635
|
return (React__default["default"].createElement("div", { className: styles$1A.HeaderTabsComponent, "data-add-divider": addDivider }, headerTabList.map(function (_a, index) {
|
|
1628
1636
|
var headerTabProps = __rest(_a, []);
|
|
@@ -1635,7 +1643,7 @@ var Component$1F = function (_a) {
|
|
|
1635
1643
|
/**
|
|
1636
1644
|
* Molecule UI component for header tabs information`
|
|
1637
1645
|
*/
|
|
1638
|
-
var HeaderTabs = Component$
|
|
1646
|
+
var HeaderTabs = Component$1G;
|
|
1639
1647
|
|
|
1640
1648
|
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"};
|
|
1641
1649
|
|
|
@@ -1693,7 +1701,7 @@ var Input = function (_a) {
|
|
|
1693
1701
|
|
|
1694
1702
|
var styles$1y = {"magneto-ui-flat-loader":"mg_flat_loader_magneto-ui-flat-loader_q96bq","rotation":"mg_flat_loader_rotation_q96bq"};
|
|
1695
1703
|
|
|
1696
|
-
var Component$
|
|
1704
|
+
var Component$1F = function (_a) {
|
|
1697
1705
|
var color = _a.color, size = _a.size, secondColor = _a.secondColor;
|
|
1698
1706
|
var loadingSize = React.useMemo(function () {
|
|
1699
1707
|
if (size) {
|
|
@@ -1709,7 +1717,7 @@ var Component$1E = function (_a) {
|
|
|
1709
1717
|
}, [size]);
|
|
1710
1718
|
return (React__default["default"].createElement("div", { style: __assign(__assign({}, loadingSize), { border: "2px solid ".concat(color || '#090467'), borderBottomColor: secondColor || 'white' }), className: styles$1y["".concat(classMUI, "-flat-loader")] }));
|
|
1711
1719
|
};
|
|
1712
|
-
var FlatLoader = Component$
|
|
1720
|
+
var FlatLoader = Component$1F;
|
|
1713
1721
|
|
|
1714
1722
|
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"};
|
|
1715
1723
|
|
|
@@ -1764,7 +1772,7 @@ var styles$1w = {"magneto-ui-job-actions":"mg_job_actions_magneto-ui-job-actions
|
|
|
1764
1772
|
|
|
1765
1773
|
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"};
|
|
1766
1774
|
|
|
1767
|
-
var Component$
|
|
1775
|
+
var Component$1E = function (_a) {
|
|
1768
1776
|
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"]);
|
|
1769
1777
|
var _f = React.useState(false), show = _f[0], setShow = _f[1];
|
|
1770
1778
|
return (React__default["default"].createElement(Popover, { className: [style$N['popover'], !show ? style$N['popover--hidden'] : ''].join(' '), positionX: "right", positionY: "bottom", show: show, widthBase: 45, content: React__default["default"].createElement("ul", { className: [style$N['content'], classNameContent].join(' ') },
|
|
@@ -1782,10 +1790,10 @@ var Component$1D = function (_a) {
|
|
|
1782
1790
|
React__default["default"].createElement("button", __assign({}, btnProps, { className: [style$N['popover__btn'], classNameButton].join(' '), onClick: function () { return setShow(function (show) { return !show; }); }, onBlur: function () { return setShow(false); } }),
|
|
1783
1791
|
React__default["default"].createElement(IconItem, { size: 20, icon: Share }))));
|
|
1784
1792
|
};
|
|
1785
|
-
Component$
|
|
1786
|
-
var SharePopover = Component$
|
|
1793
|
+
Component$1E.displayName = 'SharePopover';
|
|
1794
|
+
var SharePopover = Component$1E;
|
|
1787
1795
|
|
|
1788
|
-
var Component$
|
|
1796
|
+
var Component$1D = function (_a) {
|
|
1789
1797
|
var actionsAnchorIcons = _a.actionsAnchorIcons, actionsAnchorLinks = _a.actionsAnchorLinks, actionsAnchorTitle = _a.actionsAnchorTitle, externalButtonChild = _a.externalButtonChild, saveButtonProps = _a.saveButtonProps, shareButtonProps = _a.shareButtonProps;
|
|
1790
1798
|
var actionsLinkList = actionsAnchorIcons === null || actionsAnchorIcons === void 0 ? void 0 : actionsAnchorIcons.map(function (_, index) { return ({
|
|
1791
1799
|
icon: actionsAnchorIcons === null || actionsAnchorIcons === void 0 ? void 0 : actionsAnchorIcons[index],
|
|
@@ -1808,11 +1816,11 @@ var Component$1C = function (_a) {
|
|
|
1808
1816
|
/**
|
|
1809
1817
|
* UI Molecule Component for Jobs Actions
|
|
1810
1818
|
*/
|
|
1811
|
-
var JobActions = Component$
|
|
1819
|
+
var JobActions = Component$1D;
|
|
1812
1820
|
|
|
1813
1821
|
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"};
|
|
1814
1822
|
|
|
1815
|
-
var Component$
|
|
1823
|
+
var Component$1C = function (_a) {
|
|
1816
1824
|
var offerApplyHeader = _a.offerApplyHeader, offerApplyElements = _a.offerApplyElements, externalChild = _a.externalChild;
|
|
1817
1825
|
return (React__default["default"].createElement("div", { className: styles$1v['magneto-ui-job-apply-card'] },
|
|
1818
1826
|
React__default["default"].createElement("div", { className: styles$1v['magneto-ui-job-apply-card__wrapper'] },
|
|
@@ -1835,7 +1843,7 @@ var Component$1B = function (_a) {
|
|
|
1835
1843
|
/**
|
|
1836
1844
|
* UI Molecule Component for Job Apply Card
|
|
1837
1845
|
*/
|
|
1838
|
-
var JobApplyCard = Component$
|
|
1846
|
+
var JobApplyCard = Component$1C;
|
|
1839
1847
|
|
|
1840
1848
|
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"};
|
|
1841
1849
|
|
|
@@ -1921,7 +1929,7 @@ var JobCard = function (_a) {
|
|
|
1921
1929
|
|
|
1922
1930
|
var styles$1u = {"magneto-ui-job-company-header":"mg_job_company_header_magneto-ui-job-company-header_13130"};
|
|
1923
1931
|
|
|
1924
|
-
var Component$
|
|
1932
|
+
var Component$1B = function (_a) {
|
|
1925
1933
|
var jobCompanyLogoProps = _a.jobCompanyLogoProps, jobHeaderProps = _a.jobHeaderProps;
|
|
1926
1934
|
return (React__default["default"].createElement("div", { className: styles$1u['magneto-ui-job-company-header'] },
|
|
1927
1935
|
React__default["default"].createElement(JobCompanyLogo, __assign({}, jobCompanyLogoProps)),
|
|
@@ -1930,18 +1938,18 @@ var Component$1A = function (_a) {
|
|
|
1930
1938
|
/**
|
|
1931
1939
|
* UI Molecule component for Company Job Header
|
|
1932
1940
|
*/
|
|
1933
|
-
var JobCompanyHeader = Component$
|
|
1941
|
+
var JobCompanyHeader = Component$1B;
|
|
1934
1942
|
|
|
1935
1943
|
var styles$1t = {"magneto-ui-job-detail-card":"mg_job_detail_card_magneto-ui-job-detail-card_htydq"};
|
|
1936
1944
|
|
|
1937
|
-
var Component$
|
|
1945
|
+
var Component$1A = function (_a) {
|
|
1938
1946
|
var offerDescription = _a.offerDescription;
|
|
1939
1947
|
return (React__default["default"].createElement("div", { className: styles$1t['magneto-ui-job-detail-card'] }, offerDescription !== null ? React__default["default"].createElement("div", { dangerouslySetInnerHTML: { __html: offerDescription } }) : React__default["default"].createElement(React.Fragment, null)));
|
|
1940
1948
|
};
|
|
1941
1949
|
/**
|
|
1942
1950
|
* UI Molecule Component for Job Detail Card Header
|
|
1943
1951
|
*/
|
|
1944
|
-
var JobDetailCard = Component$
|
|
1952
|
+
var JobDetailCard = Component$1A;
|
|
1945
1953
|
|
|
1946
1954
|
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"};
|
|
1947
1955
|
|
|
@@ -1958,7 +1966,7 @@ var JobDetailContainer = function (_a) {
|
|
|
1958
1966
|
|
|
1959
1967
|
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"};
|
|
1960
1968
|
|
|
1961
|
-
var Component$
|
|
1969
|
+
var Component$1z = function (_a) {
|
|
1962
1970
|
var offerDetailsList = _a.offerDetailsList, iconList = _a.iconList, altList = _a.altList, cities = _a.cities, textRemote = _a.textRemote, isRemote = _a.isRemote;
|
|
1963
1971
|
var jobDetailsList = offerDetailsList === null || offerDetailsList === void 0 ? void 0 : offerDetailsList.map(function (offerDetailText, index) { return ({
|
|
1964
1972
|
icon: iconList && iconList[index],
|
|
@@ -1983,12 +1991,12 @@ var Component$1y = function (_a) {
|
|
|
1983
1991
|
/**
|
|
1984
1992
|
* UI Molecule component for Job Detail
|
|
1985
1993
|
*/
|
|
1986
|
-
Component$
|
|
1987
|
-
var JobDetails = Component$
|
|
1994
|
+
Component$1z.displayName = 'JobDetails';
|
|
1995
|
+
var JobDetails = Component$1z;
|
|
1988
1996
|
|
|
1989
1997
|
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"};
|
|
1990
1998
|
|
|
1991
|
-
var Component$
|
|
1999
|
+
var Component$1y = function (_a) {
|
|
1992
2000
|
var offerFooterHeader = _a.offerFooterHeader, offerCompanyLogo = _a.offerCompanyLogo, offerFooterList = _a.offerFooterList, iconList = _a.iconList, shareButtonProps = _a.shareButtonProps, companyImgAlt = _a.companyImgAlt;
|
|
1993
2001
|
var jobFooterList = offerFooterList === null || offerFooterList === void 0 ? void 0 : offerFooterList.map(function (_a, index) {
|
|
1994
2002
|
var href = _a.href, title = _a.title, ariaLabel = _a.ariaLabel;
|
|
@@ -2016,11 +2024,11 @@ var Component$1x = function (_a) {
|
|
|
2016
2024
|
/**
|
|
2017
2025
|
* UI Molecule component for Job Footer Card
|
|
2018
2026
|
*/
|
|
2019
|
-
var JobFooterCard = Component$
|
|
2027
|
+
var JobFooterCard = Component$1y;
|
|
2020
2028
|
|
|
2021
2029
|
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"};
|
|
2022
2030
|
|
|
2023
|
-
var Component$
|
|
2031
|
+
var Component$1x = function (_a) {
|
|
2024
2032
|
var name = _a.name, score = _a.score;
|
|
2025
2033
|
var _b = React.useState(false), animationApplied = _b[0], setAnimationApplied = _b[1];
|
|
2026
2034
|
var skillRef = React.useRef(null);
|
|
@@ -2062,11 +2070,11 @@ var Component$1w = function (_a) {
|
|
|
2062
2070
|
React__default["default"].createElement("p", null, name),
|
|
2063
2071
|
React__default["default"].createElement("div", { className: "".concat(styles$1q['magneto-ui-skill__bar'], " ").concat(fillAnimation || styles$1q['magneto-ui-skill--no-animation']) }))));
|
|
2064
2072
|
};
|
|
2065
|
-
var Skill = Component$
|
|
2073
|
+
var Skill = Component$1x;
|
|
2066
2074
|
|
|
2067
2075
|
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"};
|
|
2068
2076
|
|
|
2069
|
-
var Component$
|
|
2077
|
+
var Component$1w = function (_a) {
|
|
2070
2078
|
var offerSkillsLabel = _a.offerSkillsLabel, offerSkills = _a.offerSkills;
|
|
2071
2079
|
return (React__default["default"].createElement(React.Fragment, null, offerSkills && offerSkills.length >= 1 && (React__default["default"].createElement("div", { className: styles$1p['magneto-ui-job-skills-card'] },
|
|
2072
2080
|
React__default["default"].createElement("p", null, offerSkillsLabel),
|
|
@@ -2079,7 +2087,7 @@ var Component$1v = function (_a) {
|
|
|
2079
2087
|
/**
|
|
2080
2088
|
* UI Molecule component of Job Skills Card
|
|
2081
2089
|
*/
|
|
2082
|
-
var JobSkillsCard = Component$
|
|
2090
|
+
var JobSkillsCard = Component$1w;
|
|
2083
2091
|
|
|
2084
2092
|
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"};
|
|
2085
2093
|
|
|
@@ -2102,7 +2110,7 @@ var JobVideo = function (_a) {
|
|
|
2102
2110
|
|
|
2103
2111
|
var style$J = {"magneto-ui-list-icon":"mg_list_icon_link_magneto-ui-list-icon_1b3zm"};
|
|
2104
2112
|
|
|
2105
|
-
var Component$
|
|
2113
|
+
var Component$1v = function (_a) {
|
|
2106
2114
|
var listIcon = _a.listIcon, size = _a.size, _b = _a.hover, hover = _b === void 0 ? true : _b, spacing = _a.spacing;
|
|
2107
2115
|
return (React__default["default"].createElement("div", { style: { gap: "".concat(spacing, "px") }, className: style$J['magneto-ui-list-icon'] }, listIcon.map(function (_a, index) {
|
|
2108
2116
|
var icon = _a.icon, url = _a.url, title = _a.title;
|
|
@@ -2110,11 +2118,11 @@ var Component$1u = function (_a) {
|
|
|
2110
2118
|
React__default["default"].createElement(IconItem, { alt: title, hover: hover, size: size, icon: icon })));
|
|
2111
2119
|
})));
|
|
2112
2120
|
};
|
|
2113
|
-
var ListIconLink = Component$
|
|
2121
|
+
var ListIconLink = Component$1v;
|
|
2114
2122
|
|
|
2115
2123
|
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"};
|
|
2116
2124
|
|
|
2117
|
-
var Component$
|
|
2125
|
+
var Component$1u = function (_a) {
|
|
2118
2126
|
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;
|
|
2119
2127
|
var menuActive = isActive ? style$I['isActive'] : '';
|
|
2120
2128
|
return (React__default["default"].createElement(React__default["default"].Fragment, null, type === 'link' ? (React__default["default"].createElement("a", { href: url, className: "".concat(style$I['magneto-ui-menu-icon'], " ").concat(menuActive, " ").concat(className), title: text, rel: rel, target: target },
|
|
@@ -2123,11 +2131,11 @@ var Component$1t = function (_a) {
|
|
|
2123
2131
|
icon && React__default["default"].createElement(IconItem, __assign({ size: iconSize, hover: false, icon: icon }, iconProps)),
|
|
2124
2132
|
React__default["default"].createElement("p", { className: style$I['magneto-ui-menu-icon__menu-text'] }, text)))));
|
|
2125
2133
|
};
|
|
2126
|
-
var MenuIcon = Component$
|
|
2134
|
+
var MenuIcon = Component$1u;
|
|
2127
2135
|
|
|
2128
2136
|
var style$H = {"mangeto-ui-list-menu-icons":"mg_list_menu_icons_mangeto-ui-list-menu-icons_u92cd"};
|
|
2129
2137
|
|
|
2130
|
-
var Component$
|
|
2138
|
+
var Component$1t = function (_a) {
|
|
2131
2139
|
var urlParam = _a.urlParam, menuItems = _a.menuItems, menuItems1440 = _a.menuItems1440, logout = _a.logout, settings = _a.settings, haveGif = _a.haveGif;
|
|
2132
2140
|
var logoutText = logout.logoutText, onClick = logout.onClick;
|
|
2133
2141
|
var settingsText = settings.settingsText, onClickSettings = settings.onClick;
|
|
@@ -2148,16 +2156,16 @@ var Component$1s = function (_a) {
|
|
|
2148
2156
|
React__default["default"].createElement(Divider, null),
|
|
2149
2157
|
React__default["default"].createElement(MenuIcon, { type: "button", onClick: onClick, icon: LogoutIcon, text: logoutText })));
|
|
2150
2158
|
};
|
|
2151
|
-
var ListMenuIcons = Component$
|
|
2159
|
+
var ListMenuIcons = Component$1t;
|
|
2152
2160
|
|
|
2153
|
-
var Component$
|
|
2161
|
+
var Component$1s = function (_a) {
|
|
2154
2162
|
var _b = _a.menuList, menuList = _b === void 0 ? [] : _b, _c = _a.urlParam, urlParam = _c === void 0 ? '' : _c;
|
|
2155
2163
|
return (React__default["default"].createElement("div", null, menuList.map(function (_a, index) {
|
|
2156
2164
|
var text = _a.text, url = _a.url, slug = _a.slug;
|
|
2157
2165
|
return (React__default["default"].createElement(MenuItem, { key: index, isActive: urlParam === slug ? true : false, url: url, text: text }));
|
|
2158
2166
|
})));
|
|
2159
2167
|
};
|
|
2160
|
-
var ListMenuItems = Component$
|
|
2168
|
+
var ListMenuItems = Component$1s;
|
|
2161
2169
|
|
|
2162
2170
|
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"};
|
|
2163
2171
|
|
|
@@ -2204,7 +2212,7 @@ var style$D = {"mega-menu-cards":"mg_mega_menu_cards_mega-menu-cards_11ld6","meg
|
|
|
2204
2212
|
|
|
2205
2213
|
var styles$1n = {"button-link":"mg_button_link_button-link_1iyy1","button-link__text":"mg_button_link_button-link_text_1iyy1"};
|
|
2206
2214
|
|
|
2207
|
-
var Component$
|
|
2215
|
+
var Component$1r = function (_a) {
|
|
2208
2216
|
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;
|
|
2209
2217
|
var handleClick = React.useCallback(function (event) {
|
|
2210
2218
|
if (onClick) {
|
|
@@ -2220,7 +2228,7 @@ var Component$1q = function (_a) {
|
|
|
2220
2228
|
/**
|
|
2221
2229
|
* UI Atom Component of Save Button
|
|
2222
2230
|
*/
|
|
2223
|
-
var ButtonLink = Component$
|
|
2231
|
+
var ButtonLink = Component$1r;
|
|
2224
2232
|
|
|
2225
2233
|
var MegaMenuCards = function (_a) {
|
|
2226
2234
|
var jobs = _a.jobs, action = _a.action, title = _a.title, actionTitle = _a.actionTitle, className = _a.className;
|
|
@@ -2332,51 +2340,80 @@ var MenuSearch = function (_a) {
|
|
|
2332
2340
|
React__default["default"].createElement("div", { className: "".concat(styles$1l['magneto-ui-menu-search_content'], " ").concat(show && styles$1l.open) }, content))));
|
|
2333
2341
|
};
|
|
2334
2342
|
|
|
2335
|
-
var initialState = {
|
|
2336
|
-
text: '',
|
|
2337
|
-
type: 'info',
|
|
2338
|
-
duration: 3000
|
|
2339
|
-
};
|
|
2340
2343
|
var iconByType = {
|
|
2341
|
-
info:
|
|
2342
|
-
success:
|
|
2343
|
-
warning:
|
|
2344
|
-
error:
|
|
2344
|
+
info: InfoCircleBlueBold,
|
|
2345
|
+
success: TickCircleGreenBold,
|
|
2346
|
+
warning: WarningYellowBold,
|
|
2347
|
+
error: CloseCircleRedBold
|
|
2345
2348
|
};
|
|
2349
|
+
var transitionDuration = 300;
|
|
2346
2350
|
|
|
2347
|
-
var styles$1k = {"
|
|
2351
|
+
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"};
|
|
2348
2352
|
|
|
2349
|
-
var
|
|
2350
|
-
var
|
|
2351
|
-
var
|
|
2353
|
+
var Component$1q = function (_a) {
|
|
2354
|
+
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;
|
|
2355
|
+
var _e = React.useState(false), toggleAnimation = _e[0], setToggleAnimation = _e[1];
|
|
2356
|
+
var _f = React.useState(visible), localVisible = _f[0], setLocalVisible = _f[1];
|
|
2357
|
+
var _g = React.useState(false), isAnimating = _g[0], setIsAnimating = _g[1];
|
|
2358
|
+
var removeTimeoutRef = React.useRef(null);
|
|
2359
|
+
var hideTimeoutRef = React.useRef(null);
|
|
2360
|
+
var containerVar = React.useMemo(function () { return ({
|
|
2361
|
+
'--transition-duration': "".concat(transitionDuration / 1000, "s")
|
|
2362
|
+
}); }, []);
|
|
2363
|
+
var containerStyles = React.useMemo(function () {
|
|
2364
|
+
return CNM.get({
|
|
2365
|
+
styles: styles$1k,
|
|
2366
|
+
cls: [
|
|
2367
|
+
'message__container',
|
|
2368
|
+
"message__container--".concat(toggleAnimation ? 'show' : 'hidden'),
|
|
2369
|
+
"message__container--".concat(type)
|
|
2370
|
+
]
|
|
2371
|
+
});
|
|
2372
|
+
}, [type, toggleAnimation]);
|
|
2373
|
+
var textStyles = React.useCallback(function (bold) { return CNM.get({ styles: styles$1k, cls: ['message__text', bold && 'message__text--bold'] }); }, []);
|
|
2352
2374
|
React.useEffect(function () {
|
|
2353
|
-
|
|
2354
|
-
|
|
2375
|
+
if (!localVisible)
|
|
2376
|
+
return;
|
|
2377
|
+
hideTimeoutRef.current = setTimeout(function () {
|
|
2378
|
+
setToggleAnimation(false);
|
|
2379
|
+
}, duration);
|
|
2380
|
+
removeTimeoutRef.current = setTimeout(function () {
|
|
2381
|
+
setLocalVisible(false);
|
|
2382
|
+
onHide === null || onHide === void 0 ? void 0 : onHide(false);
|
|
2383
|
+
}, duration + transitionDuration);
|
|
2384
|
+
return function () {
|
|
2385
|
+
if (hideTimeoutRef.current)
|
|
2386
|
+
clearTimeout(hideTimeoutRef.current);
|
|
2387
|
+
if (removeTimeoutRef.current)
|
|
2388
|
+
clearTimeout(removeTimeoutRef.current);
|
|
2389
|
+
};
|
|
2390
|
+
}, [duration, localVisible, onHide]);
|
|
2355
2391
|
React.useEffect(function () {
|
|
2356
|
-
if (!
|
|
2392
|
+
if (!localVisible)
|
|
2357
2393
|
return;
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
ReactDOM__default["default"].render(React__default["default"].createElement(Message, __assign({}, props)), container);
|
|
2377
|
-
var duration = props.duration ? props.duration : initialState.duration;
|
|
2378
|
-
setTimeout(function () { return document.body.removeChild(container); }, duration);
|
|
2394
|
+
setTimeout(function () {
|
|
2395
|
+
setToggleAnimation(true);
|
|
2396
|
+
}, 10);
|
|
2397
|
+
}, [localVisible]);
|
|
2398
|
+
React.useEffect(function () {
|
|
2399
|
+
if ((!visible && !isAnimating) || (visible && isAnimating))
|
|
2400
|
+
return;
|
|
2401
|
+
setLocalVisible(visible);
|
|
2402
|
+
setIsAnimating(visible);
|
|
2403
|
+
}, [isAnimating, visible]);
|
|
2404
|
+
return localVisible
|
|
2405
|
+
? ReactDOM__default["default"].createPortal(React__default["default"].createElement("div", { style: containerVar, className: CNM.get({ styles: styles$1k, cls: [className] }) },
|
|
2406
|
+
React__default["default"].createElement("div", { className: containerStyles },
|
|
2407
|
+
React__default["default"].createElement(IconItem, __assign({ alt: type, className: CNM.get({ styles: styles$1k, cls: ['message__icon'] }), icon: iconByType[type], showDefaultFallback: false, size: 20 }, iconProps)),
|
|
2408
|
+
React__default["default"].createElement("div", null,
|
|
2409
|
+
text && React__default["default"].createElement("span", { className: textStyles(!!description) }, text),
|
|
2410
|
+
description && React__default["default"].createElement("span", { className: textStyles() }, description)))), document.body)
|
|
2411
|
+
: null;
|
|
2379
2412
|
};
|
|
2413
|
+
/**
|
|
2414
|
+
* Molecule UI component for Message
|
|
2415
|
+
*/
|
|
2416
|
+
var Message = Component$1q;
|
|
2380
2417
|
|
|
2381
2418
|
var styles$1j = {"magneto-ui-mobile-job-details-header":"mg_mobile_job_detail_header_magneto-ui-mobile-job-details-header_1fct0"};
|
|
2382
2419
|
|
|
@@ -7734,7 +7771,6 @@ exports.UserMenu = UserMenu;
|
|
|
7734
7771
|
exports.UserMenuAnalyst = UserMenuAnalyst;
|
|
7735
7772
|
exports.UserMenuButtonAnalyst = UserMenuButtonAnalyst;
|
|
7736
7773
|
exports.UserMenuWrapperAnalyst = UserMenuWrapperAnalyst;
|
|
7737
|
-
exports.message = message;
|
|
7738
7774
|
exports.useMediaQuery = useMediaQuery;
|
|
7739
7775
|
exports.withClickOut = withClickOut;
|
|
7740
7776
|
exports.withMegaMenuContainer = withMegaMenuContainer;
|