ecomlab-components-next 0.1.118 → 0.1.120
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.
|
@@ -87,8 +87,7 @@ var ShortTileArticleBox = function ShortTileArticleBox(_ref) {
|
|
|
87
87
|
try {
|
|
88
88
|
var _author$, _author$2;
|
|
89
89
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, wikiStyle ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
90
|
-
className: "tile-short-wiki"
|
|
91
|
-
key: id
|
|
90
|
+
className: "tile-short-wiki"
|
|
92
91
|
}, /*#__PURE__*/_react["default"].createElement(_link["default"], {
|
|
93
92
|
className: "tile-short-wiki__link",
|
|
94
93
|
target: linkString ? '_blank' : '',
|
|
@@ -100,15 +99,13 @@ var ShortTileArticleBox = function ShortTileArticleBox(_ref) {
|
|
|
100
99
|
onLinkClick(e, id, articlePath);
|
|
101
100
|
}
|
|
102
101
|
},
|
|
103
|
-
key: id,
|
|
104
102
|
href: articlePath
|
|
105
103
|
}, /*#__PURE__*/_react["default"].createElement("h3", {
|
|
106
104
|
className: "tile-short-wiki__title"
|
|
107
105
|
}, search ? (0, _highlightWord.hightlightWord)(search, articleName) : articleName), (Array.isArray(annotation) && (annotation === null || annotation === void 0 ? void 0 : annotation[0]) || annotation) && /*#__PURE__*/_react["default"].createElement("p", {
|
|
108
106
|
className: "tile-short-wiki__description"
|
|
109
107
|
}, Array.isArray(annotation) ? annotation !== null && annotation !== void 0 && annotation[0] ? (0, _htmlReactParser["default"])(annotation === null || annotation === void 0 ? void 0 : annotation[0]) : '' : annotation ? (0, _htmlReactParser["default"])(annotation) : ''))) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
110
|
-
className: "tile-short"
|
|
111
|
-
key: id
|
|
108
|
+
className: "tile-short"
|
|
112
109
|
}, /*#__PURE__*/_react["default"].createElement(_link["default"], {
|
|
113
110
|
target: linkString ? '_blank' : '',
|
|
114
111
|
onClick: function onClick(e) {
|
|
@@ -119,7 +116,6 @@ var ShortTileArticleBox = function ShortTileArticleBox(_ref) {
|
|
|
119
116
|
onLinkClick(e, id, articlePath);
|
|
120
117
|
}
|
|
121
118
|
},
|
|
122
|
-
key: id,
|
|
123
119
|
href: articlePath
|
|
124
120
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
125
121
|
className: "article-min"
|
|
@@ -132,10 +132,11 @@ var ArticlesBlock = function ArticlesBlock(_ref) {
|
|
|
132
132
|
}, "\u0421\u043E\u0431\u0440\u0430\u043B\u0438 \u0432\u0441\u0435 \u0441\u0430\u043C\u043E\u0435 \u043F\u043E\u043B\u0435\u0437\u043D\u043E\u0435 \u0434\u043B\u044F \u0432\u0430\u0441"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
133
|
className: (0, _utils.classes)(_ArticlesBlockModule["default"], 'useful-block__content')
|
|
134
134
|
}, (_getArticleBoxData = getArticleBoxData(articles, locale)) === null || _getArticleBoxData === void 0 ? void 0 : _getArticleBoxData.map(function (articleData) {
|
|
135
|
+
var _articleData$annotati;
|
|
135
136
|
return /*#__PURE__*/_react["default"].createElement(_ShortTileArticleBox["default"], _extends({
|
|
136
137
|
key: articleData.id
|
|
137
138
|
}, articleData, {
|
|
138
|
-
|
|
139
|
+
cpu: articleData === null || articleData === void 0 || (_articleData$annotati = articleData.annotation) === null || _articleData$annotati === void 0 ? void 0 : _articleData$annotati[1]
|
|
139
140
|
}));
|
|
140
141
|
}).splice(0, 4)));
|
|
141
142
|
};
|
|
@@ -25,7 +25,9 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
25
25
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
26
26
|
var transactionPlatforms = [_mir["default"]];
|
|
27
27
|
var Footer = function Footer(_ref) {
|
|
28
|
-
var footerItems = _ref.footerItems
|
|
28
|
+
var footerItems = _ref.footerItems,
|
|
29
|
+
_ref$service = _ref.service,
|
|
30
|
+
service = _ref$service === void 0 ? 'ECOMRU.RU' : _ref$service;
|
|
29
31
|
var _useState = (0, _react.useState)(new Set()),
|
|
30
32
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31
33
|
currentDrop = _useState2[0],
|
|
@@ -65,7 +67,7 @@ var Footer = function Footer(_ref) {
|
|
|
65
67
|
}
|
|
66
68
|
}, /*#__PURE__*/_react["default"].createElement("h4", {
|
|
67
69
|
className: "footer__title"
|
|
68
|
-
},
|
|
70
|
+
}, service), /*#__PURE__*/_react["default"].createElement("button", {
|
|
69
71
|
className: "footer__btn-drop"
|
|
70
72
|
}, /*#__PURE__*/_react["default"].createElement(_image["default"], {
|
|
71
73
|
src: _bxChevronDown["default"],
|