ecomlab-components-next 0.1.32 → 0.1.34

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.
Files changed (105) hide show
  1. package/dist/common/fetchUrls.js +7 -2
  2. package/dist/common/headers.js +2 -1
  3. package/dist/common/hooks/useDebounce.js +37 -0
  4. package/dist/common/hooks/useTextSelectionInModal.js +41 -0
  5. package/dist/components/Article/ArcticleWiki/ArcticleWiki.stories.js +152 -0
  6. package/dist/components/Article/ArcticleWiki/ArticleWiki.js +775 -0
  7. package/dist/components/Article/ArcticleWiki/ArticleWiki.scss +278 -0
  8. package/dist/components/Article/ArticleViewV2/ArticleViewV2.js +791 -0
  9. package/dist/components/Article/ArticleViewV2/ArticleViewV2.scss +245 -0
  10. package/dist/components/Article/ArticleViewV2/ArticleViewV2.stories.js +166 -0
  11. package/dist/components/Article/ArticleViewV2/img/bell.svg +9 -0
  12. package/dist/components/Article/ArticleViewV2/img/btn-add-round.svg +4 -0
  13. package/dist/components/Article/ArticleViewV2/img/calendar_icon.svg +6 -0
  14. package/dist/components/Article/ArticleViewV2/img/close-round.svg +3 -0
  15. package/dist/components/Article/ArticleViewV2/img/close.svg +9 -0
  16. package/dist/components/Article/ArticleViewV2/img/copy_icon.svg +5 -0
  17. package/dist/components/Article/ArticleViewV2/img/dndMenu.svg +1 -0
  18. package/dist/components/Article/ArticleViewV2/img/info.svg +9 -0
  19. package/dist/components/Article/ArticleViewV2/img/ok_icon.svg +5 -0
  20. package/dist/components/Article/ArticleViewV2/img/plus_circle.svg +6 -0
  21. package/dist/components/Article/ArticleViewV2/img/share_icon.svg +5 -0
  22. package/dist/components/Article/ArticleViewV2/img/tg.svg +3 -0
  23. package/dist/components/Article/ArticleViewV2/img/tg_icon.svg +5 -0
  24. package/dist/components/Article/ArticleViewV2/img/time_icon.svg +6 -0
  25. package/dist/components/Article/ArticleViewV2/img/view_icon.svg +6 -0
  26. package/dist/components/Article/ArticleViewV2/img/vk_icon.svg +5 -0
  27. package/dist/components/Article/ArticleViewV2/img/whatsapp_icon.svg +5 -0
  28. package/dist/components/Article/Breadcrumb/Breadcrumb.js +69 -0
  29. package/dist/components/Article/Breadcrumb/Breadcrumb.scss +96 -0
  30. package/dist/components/Article/Breadcrumb/img/drop-right.svg +3 -0
  31. package/dist/components/Article/Breadcrumb/img/home_icon.svg +5 -0
  32. package/dist/components/Article/EditWrapper/EditWrapper.js +108 -0
  33. package/dist/components/Article/EditWrapper/EditWrapper.scss +93 -0
  34. package/dist/components/Article/EditWrapper/img/bx-grid-vertical.svg +5 -0
  35. package/dist/components/Article/Editor/Editor.js +92 -0
  36. package/dist/components/Article/Editor/Editor.scss +35 -0
  37. package/dist/components/Article/Editor/img/copy.svg +6 -0
  38. package/dist/components/Article/FormBtn/FormBtn.js +229 -0
  39. package/dist/components/Article/FormBtn/FormBtn.scss +458 -0
  40. package/dist/components/Article/FormBtn/ModalBitrixForm/ModalBitrixForm.js +282 -0
  41. package/dist/components/Article/FormBtn/ModalBitrixForm/ModalBitrixForm.scss +140 -0
  42. package/dist/components/Article/FormBtn/ModalBitrixForm/img/close_icon.svg +3 -0
  43. package/dist/components/Article/FormBtn/ModalBitrixForm/img/done_icon.svg +3 -0
  44. package/dist/components/Article/FormBtn/ModalBitrixForm/img/ozon.svg +9 -0
  45. package/dist/components/Article/FormBtn/ModalBitrixForm/img/ozon_bkg.svg +9 -0
  46. package/dist/components/Article/FormBtn/ModalBitrixForm/validationFunc.js +14 -0
  47. package/dist/components/Article/FormBtn/img/clos_icon.svg +6 -0
  48. package/dist/components/Article/FormBtn/img/close-icon.svg +3 -0
  49. package/dist/components/Article/ImgArticle/ImgArticle.js +297 -0
  50. package/dist/components/Article/ImgArticle/ImgArticle.scss +169 -0
  51. package/dist/components/Article/ImgArticle/img/noPhoto.png +0 -0
  52. package/dist/components/Article/InformationBlock/InformationBlock.js +200 -0
  53. package/dist/components/Article/InformationBlock/InformationBlock.scss +89 -0
  54. package/dist/components/Article/InformationBlock/img/bell.svg +9 -0
  55. package/dist/components/Article/ListOfContent/ListOfContent.js +110 -0
  56. package/dist/components/Article/ListOfContent/ListOfContent.scss +115 -0
  57. package/dist/components/Article/ListOfContent/img/time_icon.svg +3 -0
  58. package/dist/components/Article/ListOfContent/img/view_icon.svg +3 -0
  59. package/dist/components/Article/ModalMiltilevelSidebarSettings/ModalMiltilevelSidebarSettings.js +973 -0
  60. package/dist/components/Article/ModalMiltilevelSidebarSettings/ModalMiltilevelSidebarSettings.scss +254 -0
  61. package/dist/components/Article/ModalMiltilevelSidebarSettings/ModalMiltilevelSidebarSettings.stories.js +76 -0
  62. package/dist/components/Article/ModalMiltilevelSidebarSettings/img/bx-cog.png +0 -0
  63. package/dist/components/Article/ModalMiltilevelSidebarSettings/img/bx-cog.svg +4 -0
  64. package/dist/components/Article/ModalMiltilevelSidebarSettings/img/bx-trash.png +0 -0
  65. package/dist/components/Article/ModalMiltilevelSidebarSettings/img/bx-trash.svg +4 -0
  66. package/dist/components/Article/ModalMiltilevelSidebarSettings/img/drop_icon.svg +5 -0
  67. package/dist/components/Article/ModalMiltilevelSidebarSettings/img/edit_icon.svg +6 -0
  68. package/dist/components/Article/ModalMiltilevelSidebarSettings/img/trash_icon.svg +8 -0
  69. package/dist/components/Article/ModalReplaceBlock/ModalReplaceBlock.js +85 -0
  70. package/dist/components/Article/ModalReplaceBlock/ModalReplaceBlock.scss +72 -0
  71. package/dist/components/Article/SelectedBlocks/SelectedBlocks.js +281 -0
  72. package/dist/components/Article/SelectedBlocks/SelectedBlocks.scss +0 -0
  73. package/dist/components/Article/SocialMedia/ModalSelectionSocialMedia/ModalSelectionSocialMedia.js +130 -0
  74. package/dist/components/Article/SocialMedia/ModalSelectionSocialMedia/ModalSelectionSocialMedia.scss +65 -0
  75. package/dist/components/Article/SocialMedia/ModalSelectionSocialMedia/img/Facebook.svg +4 -0
  76. package/dist/components/Article/SocialMedia/ModalSelectionSocialMedia/img/OK.svg +4 -0
  77. package/dist/components/Article/SocialMedia/ModalSelectionSocialMedia/img/Xcom.svg +9 -0
  78. package/dist/components/Article/SocialMedia/ModalSelectionSocialMedia/img/linkedin.svg +5 -0
  79. package/dist/components/Article/SocialMedia/ModalSelectionSocialMedia/img/tg.svg +4 -0
  80. package/dist/components/Article/SocialMedia/ModalSelectionSocialMedia/img/vk.svg +4 -0
  81. package/dist/components/Article/SocialMedia/ModalSelectionSocialMedia/img/wtsp.svg +4 -0
  82. package/dist/components/Article/SocialMedia/SocialMedia.js +242 -0
  83. package/dist/components/Article/SocialMedia/SocialMedia.scss +57 -0
  84. package/dist/components/Article/SocialMedia/img/dzen.svg +4 -0
  85. package/dist/components/Article/SocialMedia/img/facebook.svg +4 -0
  86. package/dist/components/Article/SocialMedia/img/insta.svg +9 -0
  87. package/dist/components/Article/SocialMedia/img/linkendIn.svg +5 -0
  88. package/dist/components/Article/SocialMedia/img/ok.svg +4 -0
  89. package/dist/components/Article/SocialMedia/img/pikabu.svg +9 -0
  90. package/dist/components/Article/SocialMedia/img/telegram.svg +4 -0
  91. package/dist/components/Article/SocialMedia/img/vcru.svg +0 -0
  92. package/dist/components/Article/SocialMedia/img/vk.svg +4 -0
  93. package/dist/components/Article/SocialMedia/img/wp.svg +4 -0
  94. package/dist/components/Article/SocialMedia/img/x.svg +9 -0
  95. package/dist/components/Article/TextArticle/TextArticle.js +257 -0
  96. package/dist/components/Article/TextArticle/TextArticle.scss +156 -0
  97. package/dist/components/Article/TextArticle/img/dndMenu.svg +1 -0
  98. package/dist/components/Article/TitleText/TitleText.js +157 -0
  99. package/dist/components/Article/TitleText/TitleText.scss +74 -0
  100. package/dist/components/Article/VideoArticle/VideoArticle.js +248 -0
  101. package/dist/components/Article/VideoArticle/VideoArticle.scss +147 -0
  102. package/dist/components/Buttons/ButtonActionDrop/ButtonActionDrop.js +109 -0
  103. package/dist/components/Buttons/ButtonActionDrop/ButtonActionDrop.scss +97 -0
  104. package/dist/components/Buttons/ButtonActionDrop/img/bx-dots-horizontal-rounded.svg +3 -0
  105. package/package.json +3 -2
@@ -0,0 +1,242 @@
1
+ "use strict";
2
+ 'use client';
3
+
4
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.SocialMedia = void 0;
9
+ var _react = _interopRequireWildcard(require("react"));
10
+ var _ButtonBasic = _interopRequireDefault(require("../../Buttons/ButtonBasic/ButtonBasic"));
11
+ var _image = _interopRequireDefault(require("next/image"));
12
+ var _ModalSelectionSocialMedia = require("./ModalSelectionSocialMedia/ModalSelectionSocialMedia");
13
+ var _EditWrapper = require("../EditWrapper/EditWrapper");
14
+ var _useDebounce = require("../../../common/hooks/useDebounce");
15
+ var _link = _interopRequireDefault(require("next/link"));
16
+ var _dzen = _interopRequireDefault(require("./img/dzen.svg"));
17
+ var _facebook = _interopRequireDefault(require("./img/facebook.svg"));
18
+ var _insta = _interopRequireDefault(require("./img/insta.svg"));
19
+ var _linkendIn = _interopRequireDefault(require("./img/linkendIn.svg"));
20
+ var _ok = _interopRequireDefault(require("./img/ok.svg"));
21
+ var _pikabu = _interopRequireDefault(require("./img/pikabu.svg"));
22
+ var _telegram = _interopRequireDefault(require("./img/telegram.svg"));
23
+ var _vk = _interopRequireDefault(require("./img/vk.svg"));
24
+ var _wp = _interopRequireDefault(require("./img/wp.svg"));
25
+ var _x = _interopRequireDefault(require("./img/x.svg"));
26
+ require("./SocialMedia.scss");
27
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
28
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
29
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
30
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
31
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
33
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
34
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
35
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
36
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
37
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
38
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
39
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
40
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } // import vcru from './img/vcru.svg'
41
+ var list_media = {
42
+ 'facebook': [_facebook["default"], '#0863F7'],
43
+ 'dzen.ru': [_dzen["default"], '#000'],
44
+ 'instagram.com': [_insta["default"], 'conic-gradient(from 133deg at 50.22% 50%, #F5854C 131.40000343322754deg, #6256CB 194.40000772476196deg, #9A39B9 298.7999939918518deg, #D8317A 360deg)'],
45
+ 'linkedin.com': [_linkendIn["default"], '#0077B5'],
46
+ // 'vc.ru': [vcru, '#F6E4E8'],
47
+ 'ok.ru': [_ok["default"], '#FF7600'],
48
+ 'pikabu.ru': [_pikabu["default"], '#88C657'],
49
+ 't.me': [_telegram["default"], '#3390EC'],
50
+ 'vk.com': [_vk["default"], '#07F'],
51
+ 'whatsapp.com': [_wp["default"], '#27C200'],
52
+ 'x.com': [_x["default"], '#020203']
53
+ };
54
+ var SocialMedia = exports.SocialMedia = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
55
+ var _data$, _data$2, _list_link;
56
+ var data = _ref.data,
57
+ setCurrentIndex = _ref.setCurrentIndex,
58
+ before = _ref.before,
59
+ id = _ref.id,
60
+ setContentArr = _ref.setContentArr,
61
+ setBeforeBlock = _ref.setBeforeBlock,
62
+ setIsModal = _ref.setIsModal,
63
+ ind = _ref.ind,
64
+ deleteBlock = _ref.deleteBlock,
65
+ changeContent = _ref.changeContent,
66
+ _ref$readonly = _ref.readonly,
67
+ readonly = _ref$readonly === void 0 ? false : _ref$readonly,
68
+ draggableElement = _ref.draggableElement,
69
+ setDraggableElement = _ref.setDraggableElement,
70
+ articleId = _ref.articleId,
71
+ fetchDataById = _ref.fetchDataById,
72
+ changeBlock = _ref.changeBlock;
73
+ var _useState = (0, _react.useState)(false),
74
+ _useState2 = _slicedToArray(_useState, 2),
75
+ isModalSocial = _useState2[0],
76
+ setIsModalSocial = _useState2[1];
77
+ var _useState3 = (0, _react.useState)((_data$ = data[0]) !== null && _data$ !== void 0 && _data$.properties ? (_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : _data$2.properties : {}),
78
+ _useState4 = _slicedToArray(_useState3, 2),
79
+ inputValue = _useState4[0],
80
+ _setInputValue = _useState4[1];
81
+ var _useState5 = (0, _react.useState)([]),
82
+ _useState6 = _slicedToArray(_useState5, 2),
83
+ listSocial = _useState6[0],
84
+ setListSocial = _useState6[1];
85
+
86
+ // Удаление блока
87
+ var handleDeleteBlock = function handleDeleteBlock(e) {
88
+ // setContent(e.currentTarget.textContent)
89
+ setContentArr(function (prev) {
90
+ return prev.filter(function (el) {
91
+ if ((el === null || el === void 0 ? void 0 : el.block_id) != id) {
92
+ return el;
93
+ }
94
+ });
95
+ });
96
+ deleteBlock(id);
97
+ };
98
+ var getIcon = function getIcon(path) {
99
+ var current;
100
+ for (var key in list_media) {
101
+ if (path.includes(key)) {
102
+ current = list_media[key];
103
+ }
104
+ }
105
+ if (current) {
106
+ return current;
107
+ }
108
+ };
109
+ (0, _react.useEffect)(function () {
110
+ // if (Array.isArray(data)) {
111
+ // if (data?.length > 0) {
112
+ // let obj = {}
113
+ // data[0]?.properties?.forEach((el => {
114
+ // if (el) {
115
+ // const { name, value } = el
116
+ // obj[name] = value
117
+ // }
118
+ // }))
119
+ // setInputValue(obj)
120
+ // setListSocial(data)
121
+ // }
122
+ // }
123
+ }, [data]);
124
+ (0, _react.useEffect)(function () {
125
+ var keys = Object.keys(inputValue);
126
+ if ((keys === null || keys === void 0 ? void 0 : keys.length) > 0) {
127
+ setListSocial(keys === null || keys === void 0 ? void 0 : keys.map(function (name) {
128
+ return _defineProperty({}, name, inputValue === null || inputValue === void 0 ? void 0 : inputValue[name]);
129
+ }));
130
+ }
131
+ }, [inputValue]);
132
+ (0, _react.useImperativeHandle)(ref, function () {
133
+ return {
134
+ // прикрутить открытие системного диалога с выбором изображения
135
+ focus: function focus() {},
136
+ data: inputValue
137
+ };
138
+ }, [inputValue]);
139
+ var list_link = function list_link() {
140
+ var list = [];
141
+ for (var el in inputValue) {
142
+ list.push({
143
+ name: el,
144
+ value: inputValue[el]
145
+ });
146
+ }
147
+ return list;
148
+ };
149
+ var debounceChange = (0, _useDebounce.useDebounce)(changeContent, 1000);
150
+ var handleInput = function handleInput(e) {
151
+ // setContent(e.currentTarget.textContent)
152
+ debounceChange(id, [{
153
+ value: '',
154
+ properties: inputValue
155
+ }]);
156
+ setContentArr(function (prev) {
157
+ return prev.map(function (el) {
158
+ if ((el === null || el === void 0 ? void 0 : el.block_id) == id) {
159
+ return _objectSpread(_objectSpread({}, el), {}, {
160
+ content: [{
161
+ value: '',
162
+ properties: inputValue
163
+ }]
164
+ });
165
+ } else {
166
+ return el;
167
+ }
168
+ });
169
+ });
170
+ };
171
+ (0, _react.useEffect)(function () {
172
+ handleInput();
173
+ }, [inputValue]);
174
+ return /*#__PURE__*/_react["default"].createElement(_EditWrapper.EditWrapper, {
175
+ id: id,
176
+ before: before,
177
+ articleId: articleId,
178
+ changeBlock: changeBlock,
179
+ readonly: readonly,
180
+ draggableElement: draggableElement,
181
+ setDraggableElement: setDraggableElement,
182
+ fetchDataById: fetchDataById,
183
+ deleteFunc: function deleteFunc(e) {
184
+ return handleDeleteBlock(id);
185
+ },
186
+ type: "social",
187
+ child: /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
188
+ className: "social-media-links",
189
+ onClick: function onClick(e) {
190
+ setCurrentIndex(ind);
191
+ setBeforeBlock(before);
192
+ },
193
+ onContextMenu: function onContextMenu(e) {
194
+ if (!readonly) {
195
+ e.preventDefault();
196
+ setCurrentIndex(ind);
197
+ setIsModal(true);
198
+ }
199
+ }
200
+ }, !readonly && /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], {
201
+ grey: true,
202
+ text: 'Добавить ссылку',
203
+ onClick: function onClick(e) {
204
+ return setIsModalSocial(true);
205
+ }
206
+ }), isModalSocial && !readonly && /*#__PURE__*/_react["default"].createElement(_ModalSelectionSocialMedia.ModalSelectionSocialMedia, {
207
+ inputValue: inputValue,
208
+ setInputValue: function setInputValue(e) {
209
+ return _setInputValue(e);
210
+ },
211
+ setIsModal: function setIsModal(e) {
212
+ return setIsModalSocial(e);
213
+ }
214
+ }), /*#__PURE__*/_react["default"].createElement("div", {
215
+ className: "social-media-links__links"
216
+ }, (_list_link = list_link()) === null || _list_link === void 0 ? void 0 : _list_link.map(function (_ref3) {
217
+ var value = _ref3.value,
218
+ name = _ref3.name,
219
+ icon = _ref3.icon;
220
+ if (value) {
221
+ var _getIcon, _getIcon2, _name$charAt;
222
+ return /*#__PURE__*/_react["default"].createElement(_link["default"], {
223
+ href: value,
224
+ target: "_blank",
225
+ className: "social-media-links__item-bkg",
226
+ style: {
227
+ background: ((_getIcon = getIcon(value)) === null || _getIcon === void 0 ? void 0 : _getIcon.length) > 0 && getIcon(value)[1]
228
+ },
229
+ key: value
230
+ }, /*#__PURE__*/_react["default"].createElement("div", {
231
+ className: "social-media-links__item"
232
+ }, /*#__PURE__*/_react["default"].createElement(_image["default"], {
233
+ alt: "icon",
234
+ className: "article__link-icon",
235
+ src: ((_getIcon2 = getIcon(value)) === null || _getIcon2 === void 0 ? void 0 : _getIcon2.length) > 0 && getIcon(value)[0]
236
+ }), /*#__PURE__*/_react["default"].createElement("h3", {
237
+ className: "social-media-links__link-name"
238
+ }, "\u041C\u044B \u0432 ", (name === null || name === void 0 || (_name$charAt = name.charAt(0)) === null || _name$charAt === void 0 ? void 0 : _name$charAt.toUpperCase()) + (name === null || name === void 0 ? void 0 : name.slice(1)))));
239
+ }
240
+ }))))
241
+ });
242
+ });
@@ -0,0 +1,57 @@
1
+ .social-media-links {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 18px;
5
+ width: 100%;
6
+ align-items: flex-start;
7
+ gap: 12px;
8
+ display: flex;
9
+ flex-wrap: wrap;
10
+ padding: 0;
11
+
12
+ &__item-bkg {
13
+ display: flex;
14
+ min-width: 257px;
15
+ height: 74px;
16
+ padding: 10px;
17
+ flex-direction: column;
18
+ align-items: flex-start;
19
+ gap: 10px;
20
+ border-radius: 8px;
21
+ background: #3390EC;
22
+ }
23
+
24
+ &__item {
25
+ display: flex;
26
+ gap: 8px;
27
+ align-items: center;
28
+ justify-content: center;
29
+ width: 100%;
30
+ height: 100%;
31
+ background-color: #fff;
32
+ }
33
+
34
+ &__link-name {
35
+ color: #333;
36
+ text-align: center;
37
+ font-family: "Golos Text";
38
+ font-size: 16px;
39
+ font-style: normal;
40
+ font-weight: 500;
41
+ line-height: 18px;
42
+ border-radius: 8px;
43
+ }
44
+
45
+ &__links {
46
+ gap: 12px;
47
+ display: flex;
48
+ flex-wrap: wrap;
49
+ }
50
+
51
+ &__name-transform {
52
+
53
+ &::first-letter {
54
+ text-transform: uppercase;
55
+ }
56
+ }
57
+ }
@@ -0,0 +1,4 @@
1
+ <svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="28" height="28" rx="4" fill="black"/>
3
+ <path d="M5.00397 13.7303C5.00133 13.8199 5 13.9097 5 14C5 14.0902 5.00133 14.1801 5.00397 14.2697C8.64997 14.3152 10.6996 14.5646 12.0675 15.9325C13.4354 17.3004 13.6848 19.35 13.7303 22.996C13.8199 22.9987 13.9098 23 14 23C14.0902 23 14.1801 22.9987 14.2697 22.996C14.3152 19.35 14.5646 17.3004 15.9325 15.9325C17.3004 14.5646 19.35 14.3152 22.996 14.2697C22.9987 14.1801 23 14.0902 23 14C23 13.9097 22.9987 13.8199 22.996 13.7303C19.35 13.6848 17.3004 13.4354 15.9325 12.0675C14.5646 10.6996 14.3152 8.64996 14.2697 5.00397C14.1801 5.00133 14.0902 5 14 5C13.9098 5 13.8199 5.00133 13.7303 5.00397C13.6848 8.64996 13.4354 10.6996 12.0675 12.0675C10.6996 13.4354 8.64996 13.6848 5.00397 13.7303Z" fill="white"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="28" height="28" rx="4" fill="#0863F7"/>
3
+ <path d="M15.0468 20.7476V14.6006H17.1205L17.4288 12.1939H15.0468V10.6609C15.0468 9.96638 15.2403 9.49088 16.237 9.49088H17.5V7.34513C16.8855 7.27928 16.2678 7.24748 15.6498 7.24988C13.8168 7.24988 12.5583 8.36888 12.5583 10.4231V12.1894H10.498V14.5961H12.5628V20.7476H15.0468Z" fill="white"/>
4
+ </svg>