@skbkontur/markdown 2.4.1 → 2.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skbkontur/markdown",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -42,23 +42,24 @@ import { MarkdownViewer } from '../MarkdownViewer';
42
42
  import { ThemeProvider } from '../styles/styled-components';
43
43
  import { DEFAULT_MARKDOWN_THEME, MarkdownThemeConsumer } from '../styles/theme';
44
44
  export var Markdown = function (props) {
45
- var panelHorizontalPadding = props.panelHorizontalPadding, onClick = props.onClick, onChange = props.onChange, onSelect = props.onSelect, markdownViewer = props.markdownViewer, renderFilesValidation = props.renderFilesValidation, fileApiUrl = props.fileApiUrl, profileUrl = props.profileUrl, api = props.api, borderless = props.borderless, _a = props.showShotKeys, showShotKeys = _a === void 0 ? true : _a, hideActionsOptions = props.hideActionsOptions, onChangeViewMode = props.onChangeViewMode, textareaProps = __rest(props, ["panelHorizontalPadding", "onClick", "onChange", "onSelect", "markdownViewer", "renderFilesValidation", "fileApiUrl", "profileUrl", "api", "borderless", "showShotKeys", "hideActionsOptions", "onChangeViewMode"]);
45
+ var _a;
46
+ var panelHorizontalPadding = props.panelHorizontalPadding, onClick = props.onClick, onChange = props.onChange, onSelect = props.onSelect, markdownViewer = props.markdownViewer, renderFilesValidation = props.renderFilesValidation, fileApiUrl = props.fileApiUrl, profileUrl = props.profileUrl, api = props.api, borderless = props.borderless, _b = props.showShotKeys, showShotKeys = _b === void 0 ? true : _b, hideActionsOptions = props.hideActionsOptions, onChangeViewMode = props.onChangeViewMode, textareaProps = __rest(props, ["panelHorizontalPadding", "onClick", "onChange", "onSelect", "markdownViewer", "renderFilesValidation", "fileApiUrl", "profileUrl", "api", "borderless", "showShotKeys", "hideActionsOptions", "onChangeViewMode"]);
46
47
  var textareaRef = useRef(null);
47
- var _b = useState(), mention = _b[0], setMention = _b[1];
48
- var _c = useState(ViewMode.Edit), viewMode = _c[0], setViewMode = _c[1];
49
- var _d = useState(false), fullscreen = _d[0], setFullScreen = _d[1];
50
- var _e = useState(0), initialWidth = _e[0], setInitialWidth = _e[1];
51
- var _f = useState(), selectionStart = _f[0], setSelectionStart = _f[1];
52
- var _g = useState(), selectionEnd = _g[0], setSelectionEnd = _g[1];
48
+ var _c = useState(), mention = _c[0], setMention = _c[1];
49
+ var _d = useState(ViewMode.Edit), viewMode = _d[0], setViewMode = _d[1];
50
+ var _e = useState(false), fullscreen = _e[0], setFullScreen = _e[1];
51
+ var _f = useState(0), initialWidth = _f[0], setInitialWidth = _f[1];
52
+ var _g = useState(), selectionStart = _g[0], setSelectionStart = _g[1];
53
+ var _h = useState(), selectionEnd = _h[0], setSelectionEnd = _h[1];
53
54
  var guid = useRef(new Guid().generate()).current;
54
55
  var isEditMode = viewMode !== ViewMode.Preview;
55
56
  var width = fullscreen || !textareaProps.width ? '100%' : textareaProps.width;
56
- var _h = useResponsiveLayout({
57
+ var _j = useResponsiveLayout({
57
58
  customMediaQueries: {
58
59
  isSplitViewAvailable: "(width >= ".concat(SPLIT_VIEW_THRESHOLD, ")"),
59
60
  },
60
- }), isSplitViewAvailable = _h.isSplitViewAvailable, isMobile = _h.isMobile;
61
- var _j = useFileLogic(api === null || api === void 0 ? void 0 : api.fileUploadApi, api === null || api === void 0 ? void 0 : api.fileDownloadApi, fileApiUrl, textareaRef.current, selectionStart, !isEditMode), getRootProps = _j.getRootProps, isDragActive = _j.isDragActive, requestStatus = _j.requestStatus, open = _j.open, error = _j.error, onResetError = _j.onResetError;
61
+ }), isSplitViewAvailable = _j.isSplitViewAvailable, isMobile = _j.isMobile;
62
+ var _k = useFileLogic(api === null || api === void 0 ? void 0 : api.fileUploadApi, api === null || api === void 0 ? void 0 : api.fileDownloadApi, fileApiUrl, textareaRef.current, selectionStart, !isEditMode), getRootProps = _k.getRootProps, isDragActive = _k.isDragActive, requestStatus = _k.requestStatus, open = _k.open, error = _k.error, onResetError = _k.onResetError;
62
63
  var onSelectEmoji = useEmojiLogic(textareaRef.current).onSelectEmoji;
63
64
  usePasteFromClipboard(textareaRef.current, api === null || api === void 0 ? void 0 : api.fileUploadApi, api === null || api === void 0 ? void 0 : api.fileDownloadApi, fileApiUrl);
64
65
  useListenTextareaScroll(resetMention, textareaRef.current);
@@ -99,7 +100,7 @@ export var Markdown = function (props) {
99
100
  isEditMode && error && (api === null || api === void 0 ? void 0 : api.getUsersApi) && (renderFilesValidation === null || renderFilesValidation === void 0 ? void 0 : renderFilesValidation(horizontalPaddings, onResetError)),
100
101
  fullscreen && viewMode === ViewMode.Split && !fullscreenTextareaPadding && (React.createElement(SplitViewContainer, null,
101
102
  React.createElement(SplitViewEditContainer, null, renderEditContainer()),
102
- React.createElement(SplitViewPreviewContainer, { textareaWidth: textareaProps.width }, renderPreview()))),
103
+ React.createElement(SplitViewPreviewContainer, { textareaWidth: ((_a = textareaProps.width) === null || _a === void 0 ? void 0 : _a.toString().includes('%')) ? initialWidth : textareaProps.width }, renderPreview()))),
103
104
  viewMode === ViewMode.Edit && renderEditContainer(),
104
105
  viewMode === ViewMode.Preview && renderPreview(),
105
106
  isDragActive && isEditMode && React.createElement(DroppablePlaceholder, __assign({}, horizontalPaddings)))));
@@ -121,20 +122,20 @@ export var Markdown = function (props) {
121
122
  return (React.createElement(MarkdownEditorBlock, null,
122
123
  React.createElement(MentionWrapper, { id: "".concat(guid).concat(MENTION_WRAPPER_ID_POSTFIX) }),
123
124
  showMention && renderMentions(),
124
- React.createElement(MarkdownEditor, __assign({}, textareaProps, { width: width, textareaRef: textareaRef, onChange: listenChange, onSelect: listenSelection, onClick: listenClick }))));
125
+ React.createElement(MarkdownEditor, __assign({}, textareaProps, { maxRows: fullscreen ? undefined : textareaProps.maxRows, width: width, textareaRef: textareaRef, onChange: listenChange, onSelect: listenSelection, onClick: listenClick }))));
125
126
  }
126
127
  function renderPreview() {
127
128
  var _a;
128
129
  if (!props.value && viewMode === ViewMode.Split)
129
130
  return React.createElement(EmptyPreview, null);
130
- return (React.createElement(MarkdownPreview, __assign({}, horizontalPaddings, { width: width }), (markdownViewer === null || markdownViewer === void 0 ? void 0 : markdownViewer(props.value)) || (React.createElement(MarkdownViewer, { source: (_a = props.value) !== null && _a !== void 0 ? _a : '', downloadFileApi: api === null || api === void 0 ? void 0 : api.fileDownloadApi, fileApiUrl: fileApiUrl, profileUrl: profileUrl }))));
131
+ return (React.createElement(MarkdownPreview, __assign({}, horizontalPaddings, { viewMode: viewMode, width: width }), (markdownViewer === null || markdownViewer === void 0 ? void 0 : markdownViewer(props.value)) || (React.createElement(MarkdownViewer, { source: (_a = props.value) !== null && _a !== void 0 ? _a : '', downloadFileApi: api === null || api === void 0 ? void 0 : api.fileDownloadApi, fileApiUrl: fileApiUrl, profileUrl: profileUrl }))));
131
132
  }
132
133
  function renderMentions() {
133
134
  var _a;
134
135
  if (textareaRef.current && mention && (api === null || api === void 0 ? void 0 : api.getUsersApi)) {
135
136
  var textareaNode = (_a = textareaRef.current) === null || _a === void 0 ? void 0 : _a.node;
136
137
  var position = getCursorCoordinates(textareaNode, guid);
137
- return (React.createElement(MarkdownMention, { value: getMentionValue(mention), getUsersApi: api.getUsersApi, y: position.y, x: position.x, onUserSelect: handleSelectUser }));
138
+ return (React.createElement(MarkdownMention, { value: getMentionValue(mention), getUsersApi: api.getUsersApi, y: position.y, x: position.x, onSelectUser: handleSelectUser }));
138
139
  }
139
140
  }
140
141
  function handleChangeViewMode(mode) {
@@ -18,7 +18,9 @@ export declare const DroppablePlaceholder: import("styled-components").StyledCom
18
18
  export declare const MentionWrapper: import("styled-components").StyledComponent<"div", MarkdownTheme, {}, never>;
19
19
  export declare const MarkdownPreview: import("styled-components").StyledComponent<"div", MarkdownTheme, {
20
20
  width?: Nullable<number | string>;
21
- } & HorizontalPaddings, never>;
21
+ } & HorizontalPaddings & {
22
+ viewMode: ViewMode;
23
+ }, never>;
22
24
  export declare const MarkdownActionsWrapper: import("styled-components").StyledComponent<"div", MarkdownTheme, {
23
25
  width?: Nullable<number | string>;
24
26
  } & HorizontalPaddings & {
@@ -38,9 +38,11 @@ export var Avatar = styled.img.attrs({ alt: '' })(templateObject_9 || (templateO
38
38
  export var UserWrapper = styled.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n width: 244px;\n display: flex;\n align-items: center;\n gap: 12px;\n"], ["\n width: 244px;\n display: flex;\n align-items: center;\n gap: 12px;\n"])));
39
39
  export var DroppablePlaceholder = styled.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n position: absolute;\n top: ", "px;\n left: ", "px;\n width: 100%;\n height: 100%;\n padding: ", "px;\n border-radius: 8px;\n z-index: 100;\n background: linear-gradient(0deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.04)),\n rgba(255, 255, 255, ", ");\n background-image: ", ";\n"], ["\n position: absolute;\n top: ", "px;\n left: ", "px;\n width: 100%;\n height: 100%;\n padding: ", "px;\n border-radius: 8px;\n z-index: 100;\n background: linear-gradient(0deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.04)),\n rgba(255, 255, 255, ", ");\n background-image: ", ";\n"])), function (p) { return (p.panelPadding || p.fullscreenPadding ? 0 : -8); }, function (p) { return (p.panelPadding || p.fullscreenPadding ? 0 : -8); }, function (p) { return (p.panelPadding || p.fullscreenPadding ? 0 : 8); }, function (p) { return (p.theme.themeMode === 'dark' ? 0.1 : 0.7); }, function (p) { var _a, _b; return (_b = (_a = p.theme) === null || _a === void 0 ? void 0 : _a.droppablePlaceholderBgImage) !== null && _b !== void 0 ? _b : ''; });
40
40
  export var MentionWrapper = styled.div(templateObject_12 || (templateObject_12 = __makeTemplateObject([""], [""])));
41
- export var MarkdownPreview = styled.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n padding: 6px ", "px;\n ", "\n box-sizing: border-box;\n"], ["\n padding: 6px ", "px;\n ", "\n box-sizing: border-box;\n"])), function (_a) {
41
+ export var MarkdownPreview = styled.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n padding: 6px\n ", "px;\n ", "\n box-sizing: border-box;\n"], ["\n padding: 6px\n ", "px;\n ", "\n box-sizing: border-box;\n"])), function (_a) {
42
42
  var _b;
43
- var panelPadding = _a.panelPadding, fullscreenPadding = _a.fullscreenPadding;
43
+ var panelPadding = _a.panelPadding, fullscreenPadding = _a.fullscreenPadding, viewMode = _a.viewMode;
44
+ if (viewMode === ViewMode.Split)
45
+ return 0;
44
46
  return (_b = fullscreenPadding !== null && fullscreenPadding !== void 0 ? fullscreenPadding : panelPadding) !== null && _b !== void 0 ? _b : 8;
45
47
  }, function (p) { return p.width && "width: ".concat(getAllowedCssValue(p.width), ";"); });
46
48
  export var MarkdownActionsWrapper = styled.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n padding: ", "\n ", " 0;\n margin-bottom: ", "px;\n box-sizing: border-box;\n ", "\n ", "\n \n a {\n border: none !important;\n text-decoration: none !important;\n }\n"], ["\n padding: ", "\n ", " 0;\n margin-bottom: ", "px;\n box-sizing: border-box;\n ", "\n ", "\n \n a {\n border: none !important;\n text-decoration: none !important;\n }\n"])), function (p) { return getMarkdownActionsPadding(!!p.fullscreenPadding, '16px'); }, function (p) { return getMarkdownActionsPadding(!!p.fullscreenPadding, p.fullscreenPadding); }, function (p) { return (p.fullscreen ? 12 : 4); }, function (p) { return p.width && "width: ".concat(getAllowedCssValue(p.width), ";"); }, function (_a) {
@@ -102,9 +104,10 @@ export var getMarkdownReactUiTheme = function (theme, viewMode, reactUiTheme, pa
102
104
  menuItemPaddingY: '4px',
103
105
  menuItemPaddingX: '28px',
104
106
  })), { tabColorHover: 'transparent', tabColorFocus: 'transparent', tabBorderWidth: '0', selectBorderWidth: '0', btnDefaultBg: 'transparent', btnDefaultActiveBorderColor: 'transparent', btnDisabledBg: 'transparent', btnDisabledBorderColor: 'transparent', btnDisabledTextColor: colors.disabledButton, btnDefaultHoverBg: themeMode === 'light' ? reactUiTheme === null || reactUiTheme === void 0 ? void 0 : reactUiTheme.btnDefaultHoverBg : reactUiTheme === null || reactUiTheme === void 0 ? void 0 : reactUiTheme.btnDisabledBg, btnFontSizeSmall: elementsFontSize, checkboxBg: 'transparent', checkboxHoverBg: 'transparent', checkboxCheckedBg: 'transparent', checkboxShadow: "0 0 0 1px ".concat(colors.grayDefault), checkboxShadowHover: "0 0 0 1px ".concat(colors.grayDefault), checkboxCheckedHoverShadow: "0 0 0 1px ".concat(colors.grayDefault), checkboxCheckedShadow: "0 0 0 1px ".concat(colors.grayDefault), checkboxCheckedActiveShadow: "0 0 0 1px ".concat(colors.grayDefault), checkboxShadowActive: "0 0 0 1px ".concat(colors.grayDefault), checkboxCheckedColor: colors.grayDefault, hintFontSize: elementsFontSize, hintColor: colors.textInverse, selectPaddingXSmall: '8px', selectLineHeightSmall: '24px', dropdownBorderWidth: '0' }), (panelHorizontalPadding &&
107
+ !isSplitMode &&
105
108
  extendThemeConfigWithSized({
106
109
  textareaPaddingX: "".concat(panelHorizontalPadding, "px"),
107
- }))), ((borderless || isFullscreenNotSplitMode) && borderlessTextareaVariables)), (isFullscreen &&
110
+ }))), ((borderless || (isFullscreen && viewMode === ViewMode.Edit)) && borderlessTextareaVariables)), (isFullscreen &&
108
111
  __assign({ sidePagePaddingLeft: sidePagePaddingX, sidePagePaddingRight: sidePagePaddingX, textareaBorderColorError: 'transparent', textareaBorderColorWarning: 'transparent', textareaShadow: 'none' }, extendThemeConfigWithSized(__assign({ textareaMinHeight: FULLSCREEN_HEIGHT }, (isFullscreenNotSplitMode && {
109
112
  textareaPaddingX: "".concat(fullScreenTextareaPadding, "px"),
110
113
  textareaPaddingY: '0',
@@ -1,7 +1,7 @@
1
1
  import { Menu } from '@skbkontur/react-ui/internal/Menu';
2
2
  import { ChangeEvent, MouseEvent, RefObject, SyntheticEvent } from 'react';
3
- import { Token, User } from '../types';
3
+ import { Token } from '../types';
4
4
  export declare function mentionActions(event: ChangeEvent<HTMLTextAreaElement> | MouseEvent<HTMLTextAreaElement> | SyntheticEvent<HTMLTextAreaElement, Event>, setToken: (token?: Token) => void): void;
5
- export declare const useMenuKeyListener: (onUserSelect: (login: string, name: string) => void, users?: User[], menuRef?: RefObject<Menu>) => void;
5
+ export declare const useMenuKeyListener: (onChangeHighlightedIndex: (step: number) => void, onSelectUser: () => void, menuRef?: RefObject<Menu>) => void;
6
6
  export declare const getMentionValue: (mention?: Token | null) => string;
7
7
  export declare function getAvatarUrl(sid: undefined | null | string): string;
@@ -12,28 +12,30 @@ export function mentionActions(event, setToken) {
12
12
  setToken(undefined);
13
13
  }
14
14
  }
15
- export var useMenuKeyListener = function (onUserSelect, users, menuRef) {
15
+ export var useMenuKeyListener = function (onChangeHighlightedIndex, onSelectUser, menuRef) {
16
16
  useEffect(function () {
17
17
  var keyListener = function (event) {
18
- var _a;
19
18
  if (menuRef === null || menuRef === void 0 ? void 0 : menuRef.current) {
20
19
  if (ArrowsVertical.includes(event.key)) {
21
20
  event.preventDefault();
22
- if (event.key === 'ArrowUp')
21
+ if (event.key === 'ArrowUp') {
23
22
  menuRef.current.up();
24
- if (event.key === 'ArrowDown')
23
+ onChangeHighlightedIndex(-1);
24
+ }
25
+ if (event.key === 'ArrowDown') {
25
26
  menuRef.current.down();
27
+ onChangeHighlightedIndex(1);
28
+ }
26
29
  }
27
- if (event.key === 'Enter' && (users === null || users === void 0 ? void 0 : users.length)) {
30
+ if (event.key === 'Enter') {
28
31
  event.preventDefault();
29
- var selected = users[menuRef.current.state.highlightedIndex];
30
- onUserSelect((_a = selected.login) !== null && _a !== void 0 ? _a : '', selected.name);
32
+ onSelectUser();
31
33
  }
32
34
  }
33
35
  };
34
36
  window.addEventListener('keydown', keyListener);
35
37
  return function () { return window.removeEventListener('keydown', keyListener); };
36
- }, [menuRef, onUserSelect, users]);
38
+ }, [menuRef, onSelectUser, onChangeHighlightedIndex]);
37
39
  };
38
40
  export var getMentionValue = function (mention) { var _a, _b; return (_b = (_a = mention === null || mention === void 0 ? void 0 : mention.value) === null || _a === void 0 ? void 0 : _a.replace('@', '')) !== null && _b !== void 0 ? _b : ''; };
39
41
  export function getAvatarUrl(sid) {
@@ -2,7 +2,7 @@ import { FC } from 'react';
2
2
  import { User } from './types';
3
3
  interface Props {
4
4
  getUsersApi: (value: string) => Promise<User[]>;
5
- onUserSelect: (login: string, name: string) => void;
5
+ onSelectUser: (login: string, name: string) => void;
6
6
  value: string;
7
7
  x: number;
8
8
  y: number;
@@ -43,11 +43,14 @@ import { MARKDOWN_RENDER_CONTAINER, INPUT_DEBOUNCE_TIME } from './constants';
43
43
  import { getMarkdownMentionStyle, MentionMenuItem, UserDescriptions, UserWrapper, Avatar } from './Markdown.styled';
44
44
  import { getAvatarUrl, useMenuKeyListener } from './MarkdownHelpers/markdownMentionHelpers';
45
45
  export var MarkdownMention = function (_a) {
46
- var value = _a.value, onUserSelect = _a.onUserSelect, x = _a.x, y = _a.y, getUsersApi = _a.getUsersApi;
47
- var _b = useState(), users = _b[0], setUsers = _b[1];
46
+ var _b;
47
+ var value = _a.value, onSelectUser = _a.onSelectUser, x = _a.x, y = _a.y, getUsersApi = _a.getUsersApi;
48
+ var _c = useState(), users = _c[0], setUsers = _c[1];
49
+ var _d = useState(0), highlightedIndex = _d[0], setHighlightedIndex = _d[1];
48
50
  var menuRef = useRef(null);
49
51
  var markdownMentionsRef = useRef(document.getElementById(MARKDOWN_RENDER_CONTAINER));
50
52
  var timerRef = useRef(INPUT_DEBOUNCE_TIME);
53
+ var usersLength = (_b = users === null || users === void 0 ? void 0 : users.length) !== null && _b !== void 0 ? _b : 0;
51
54
  if (!markdownMentionsRef.current) {
52
55
  var container = document.createElement('div');
53
56
  container.id = MARKDOWN_RENDER_CONTAINER;
@@ -75,14 +78,35 @@ export var MarkdownMention = function (_a) {
75
78
  Toast.push('Ошибка в получении списка пользователей');
76
79
  }
77
80
  }, [getUsersApi, value]);
78
- useMenuKeyListener(onUserSelect, users, menuRef);
79
- if (!(users === null || users === void 0 ? void 0 : users.length))
81
+ useEffect(function () {
82
+ setHighlightedIndex(0);
83
+ }, [users]);
84
+ useMenuKeyListener(handleChangeHighlightedIndex, function () { return handleSelectUser(highlightedIndex); }, menuRef);
85
+ if (!usersLength)
80
86
  return null;
81
87
  return createPortal(React.createElement(ZIndex, { priority: "Toast", style: getMarkdownMentionStyle(x, y) },
82
- React.createElement(Menu, { ref: menuRef, preventWindowScroll: true, hasShadow: true, maxHeight: 300, width: 320 }, users === null || users === void 0 ? void 0 : users.map(function (user) { return (React.createElement(MentionMenuItem, { key: user.id, onClick: function () { var _a; return onUserSelect((_a = user === null || user === void 0 ? void 0 : user.login) !== null && _a !== void 0 ? _a : '', user.name); } },
88
+ React.createElement(Menu, { ref: menuRef, preventWindowScroll: true, hasShadow: true, initialSelectedItemIndex: 0, maxHeight: 300, width: 320 }, users === null || users === void 0 ? void 0 : users.map(function (user, idx) { return (React.createElement(MentionMenuItem, { key: user.id, onClick: function () { return handleSelectUser(idx); } },
83
89
  React.createElement(UserWrapper, null,
84
90
  React.createElement(Avatar, { height: 48, width: 48, src: getAvatarUrl(user.sid) }),
85
91
  React.createElement("div", null,
86
92
  React.createElement("div", null, user.name),
87
93
  React.createElement(UserDescriptions, null, user === null || user === void 0 ? void 0 : user.teams.map(function (t) { return t.caption; }).join(', ')))))); }))), markdownMentionsRef.current);
94
+ function handleChangeHighlightedIndex(step) {
95
+ var usersLengthIndex = usersLength - 1;
96
+ if (step === -1 && !highlightedIndex)
97
+ setHighlightedIndex(usersLengthIndex);
98
+ else if (step === 1 && highlightedIndex === usersLengthIndex)
99
+ setHighlightedIndex(0);
100
+ else
101
+ setHighlightedIndex(highlightedIndex + step);
102
+ }
103
+ function handleSelectUser(idx) {
104
+ if (users) {
105
+ var selectedUser = users[idx];
106
+ if (selectedUser) {
107
+ var login = selectedUser.login, name_1 = selectedUser.name;
108
+ onSelectUser(login, name_1);
109
+ }
110
+ }
111
+ }
88
112
  };