ecomlab-components-next 0.1.236 → 0.1.237
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.
|
@@ -95,6 +95,7 @@ var form_data_ECOMRU = [{
|
|
|
95
95
|
required: true
|
|
96
96
|
}];
|
|
97
97
|
var BlocksInfo = function BlocksInfo(_ref) {
|
|
98
|
+
var _window;
|
|
98
99
|
var title = _ref.title,
|
|
99
100
|
_ref$list = _ref.list,
|
|
100
101
|
list = _ref$list === void 0 ? [] : _ref$list,
|
|
@@ -109,7 +110,7 @@ var BlocksInfo = function BlocksInfo(_ref) {
|
|
|
109
110
|
_useState2 = _slicedToArray(_useState, 2),
|
|
110
111
|
refPage = _useState2[0],
|
|
111
112
|
setRefPage = _useState2[1];
|
|
112
|
-
var currentUrl = window.location.href;
|
|
113
|
+
var currentUrl = (_window = window) === null || _window === void 0 || (_window = _window.location) === null || _window === void 0 ? void 0 : _window.href;
|
|
113
114
|
var _useState3 = (0, _react.useState)(false),
|
|
114
115
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
115
116
|
isModal = _useState4[0],
|
|
@@ -132,8 +133,8 @@ var BlocksInfo = function BlocksInfo(_ref) {
|
|
|
132
133
|
}
|
|
133
134
|
};
|
|
134
135
|
(0, _react.useEffect)(function () {
|
|
135
|
-
var
|
|
136
|
-
var currentUrl = (
|
|
136
|
+
var _window2;
|
|
137
|
+
var currentUrl = (_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.location) === null || _window2 === void 0 ? void 0 : _window2.href;
|
|
137
138
|
setRefPage("?ref_page=".concat(currentUrl));
|
|
138
139
|
}, []);
|
|
139
140
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isModal && /*#__PURE__*/_react["default"].createElement(_ModalBitrixForm["default"], _extends({
|
|
@@ -192,8 +193,8 @@ var BlocksInfo = function BlocksInfo(_ref) {
|
|
|
192
193
|
if (_onClick) {
|
|
193
194
|
_onClick();
|
|
194
195
|
} else {
|
|
195
|
-
var
|
|
196
|
-
(
|
|
196
|
+
var _window3;
|
|
197
|
+
(_window3 = window) === null || _window3 === void 0 || _window3.open("".concat(linkMain, "/auth").concat(refPage), '_blunk');
|
|
197
198
|
}
|
|
198
199
|
}
|
|
199
200
|
},
|
|
@@ -73,6 +73,7 @@ var Header = function Header(_ref) {
|
|
|
73
73
|
alt: "icon"
|
|
74
74
|
})), (name_service || icon_service) && Array.isArray(name_service) ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, name_service === null || name_service === void 0 ? void 0 : name_service.map(function (el, ind) {
|
|
75
75
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
|
+
key: el + ind,
|
|
76
77
|
style: {
|
|
77
78
|
background: color[ind] ? color[ind] : ''
|
|
78
79
|
},
|
|
@@ -30,6 +30,7 @@ var TabsGreen = exports.TabsGreen = function TabsGreen(_ref) {
|
|
|
30
30
|
count = el.count,
|
|
31
31
|
icon = el.icon;
|
|
32
32
|
return /*#__PURE__*/_react["default"].createElement("button", {
|
|
33
|
+
key: label + ind,
|
|
33
34
|
className: checkValue ? currentBtn == value ? 'btn_active' : 'btn' : currentBtn == label ? 'btn_active' : 'btn',
|
|
34
35
|
onClick: function onClick(e) {
|
|
35
36
|
if (returnEvent) {
|