@selfcommunity/react-ui 0.7.0-alpha.47 → 0.7.0-alpha.49

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 (30) hide show
  1. package/lib/cjs/components/UserProfileEdit/Section/Account.d.ts +10 -0
  2. package/lib/cjs/components/UserProfileEdit/Section/Account.d.ts.map +1 -1
  3. package/lib/cjs/components/UserProfileEdit/Section/Account.js +12 -10
  4. package/lib/cjs/components/UserProfileEdit/Section/Account.js.map +1 -1
  5. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.d.ts +18 -0
  6. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.d.ts.map +1 -0
  7. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +260 -0
  8. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js.map +1 -0
  9. package/lib/cjs/shared/PasswordTextField/index.d.ts.map +1 -1
  10. package/lib/cjs/shared/PasswordTextField/index.js +5 -2
  11. package/lib/cjs/shared/PasswordTextField/index.js.map +1 -1
  12. package/lib/cjs/types/headerMenuUrls.d.ts +4 -0
  13. package/lib/cjs/types/headerMenuUrls.d.ts.map +1 -1
  14. package/lib/esm/components/UserProfileEdit/Section/Account.d.ts +10 -0
  15. package/lib/esm/components/UserProfileEdit/Section/Account.d.ts.map +1 -1
  16. package/lib/esm/components/UserProfileEdit/Section/Account.js +12 -10
  17. package/lib/esm/components/UserProfileEdit/Section/Account.js.map +1 -1
  18. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.d.ts +18 -0
  19. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.d.ts.map +1 -0
  20. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +231 -0
  21. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js.map +1 -0
  22. package/lib/esm/shared/PasswordTextField/index.d.ts.map +1 -1
  23. package/lib/esm/shared/PasswordTextField/index.js +5 -2
  24. package/lib/esm/shared/PasswordTextField/index.js.map +1 -1
  25. package/lib/esm/types/headerMenuUrls.d.ts +4 -0
  26. package/lib/esm/types/headerMenuUrls.d.ts.map +1 -1
  27. package/lib/umd/react-ui.js +6 -6
  28. package/lib/umd/react-ui.js.LICENSE.txt +1 -1
  29. package/lib/umd/react-ui.js.map +1 -1
  30. package/package.json +5 -5
@@ -0,0 +1,231 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React, { useState } from 'react';
13
+ import { styled } from '@mui/material/styles';
14
+ import { Box, Button, CircularProgress, FormGroup, IconButton, InputAdornment, Popover, Typography } from '@mui/material';
15
+ import classNames from 'classnames';
16
+ import { useThemeProps } from '@mui/system';
17
+ import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
18
+ import { formatHttpError, UserService } from '@selfcommunity/api-services';
19
+ import { SCOPE_SC_UI } from '../../../constants/Errors';
20
+ import { Logger } from '@selfcommunity/utils';
21
+ import BaseDialog from '../../../shared/BaseDialog';
22
+ import PasswordTextField from '../../../shared/PasswordTextField';
23
+ import EmailTextField from '../../../shared/EmailTextField';
24
+ import { LoadingButton } from '@mui/lab';
25
+ import Icon from '@mui/material/Icon';
26
+ import { useSnackbar } from 'notistack';
27
+ const messages = defineMessages({
28
+ changePasswordTitle: {
29
+ id: 'ui.userProfileEditAccountCredentials.changePassword',
30
+ defaultMessage: 'ui.userProfileEditAccountCredentials.changePassword'
31
+ },
32
+ confirmPasswordError: {
33
+ id: 'ui.userProfileEditAccountCredentials.confirmPassword.error',
34
+ defaultMessage: 'ui.userProfileEditAccountCredentials.confirmPassword.error'
35
+ },
36
+ emptyEmailError: {
37
+ id: 'ui.userProfileEditAccountCredentials.email.empty.error',
38
+ defaultMessage: 'ui.userProfileEditAccountCredentials.email.empty.error'
39
+ }
40
+ });
41
+ const PREFIX = 'SCAccountCredential';
42
+ const DIALOG_PREFIX = `${PREFIX}-password-dialog`;
43
+ const classes = {
44
+ root: `${PREFIX}-root`,
45
+ email: `${PREFIX}-email`,
46
+ success: `${PREFIX}-success`,
47
+ error: `${PREFIX}-error`,
48
+ form: `${DIALOG_PREFIX}-password-form`,
49
+ formField: `${DIALOG_PREFIX}-form-field`,
50
+ password: `${DIALOG_PREFIX}-password`,
51
+ confirmChangeButton: `${DIALOG_PREFIX}-confirm-change-button`
52
+ };
53
+ const Root = styled(Box, {
54
+ name: PREFIX,
55
+ slot: 'Root',
56
+ overridesResolver: (props, styles) => styles.root
57
+ })(({ theme }) => ({
58
+ [`& .${classes.email}, .${classes.password}`]: {
59
+ margin: theme.spacing(1, 0, 1, 0),
60
+ fontWeight: 'bold'
61
+ }
62
+ }));
63
+ const PasswordDialog = styled(BaseDialog, {
64
+ name: DIALOG_PREFIX,
65
+ slot: 'Root',
66
+ overridesResolver: (props, styles) => styles.root
67
+ })(({ theme }) => ({
68
+ '& .MuiDialogContent-root': {
69
+ [`& .${classes.form}`]: {
70
+ [`& .${classes.formField}`]: {
71
+ margin: theme.spacing(1, 1, 1, 0)
72
+ }
73
+ }
74
+ },
75
+ [`& .${classes.confirmChangeButton}`]: {
76
+ marginTop: theme.spacing(1)
77
+ }
78
+ }));
79
+ export default function AccountCredentials(inProps) {
80
+ var _a;
81
+ // PROPS
82
+ const props = useThemeProps({
83
+ props: inProps,
84
+ name: PREFIX
85
+ });
86
+ // CONTEXT
87
+ const { className = null, user } = props, rest = __rest(props, ["className", "user"]);
88
+ // STATE
89
+ const [openChangePasswordDialog, setOpenChangePasswordDialog] = useState(false);
90
+ const initialFieldState = {
91
+ email: (_a = user === null || user === void 0 ? void 0 : user.email) !== null && _a !== void 0 ? _a : '',
92
+ password: '',
93
+ newPassword: '',
94
+ confirmPassword: ''
95
+ };
96
+ const initialErrorState = {
97
+ email: '',
98
+ password: '',
99
+ newPassword: '',
100
+ confirmPassword: ''
101
+ };
102
+ const [field, setField] = useState(initialFieldState);
103
+ const [error, setError] = useState(initialErrorState);
104
+ const [isEditing, setIsEditing] = useState(false);
105
+ const [isSubmittingPassword, setIsSubmittingPassword] = useState(false);
106
+ const [isSubmitting, setIsSubmitting] = useState(false);
107
+ const [anchorEl, setAnchorEl] = useState(null);
108
+ const open = Boolean(anchorEl);
109
+ const { enqueueSnackbar, closeSnackbar } = useSnackbar();
110
+ // INTL
111
+ const intl = useIntl();
112
+ // HANDLERS
113
+ const handlePopoverOpen = (event) => {
114
+ setAnchorEl(event.currentTarget);
115
+ };
116
+ const handlePopoverClose = () => {
117
+ setAnchorEl(null);
118
+ };
119
+ const handleChange = (event) => {
120
+ const { name, value } = event.target;
121
+ setField((prev) => (Object.assign(Object.assign({}, prev), { [name]: value })));
122
+ if (!value) {
123
+ setError((prev) => (Object.assign(Object.assign({}, prev), { [name]: value })));
124
+ }
125
+ };
126
+ const handleEmailBlur = (e) => {
127
+ if (!e.target.value) {
128
+ setField((prev) => (Object.assign(Object.assign({}, prev), { ['email']: user === null || user === void 0 ? void 0 : user.email })));
129
+ setIsEditing(false);
130
+ }
131
+ };
132
+ const validateInput = () => {
133
+ if (field.newPassword !== field.confirmPassword) {
134
+ setError((prev) => (Object.assign(Object.assign({}, prev), { ['confirmPassword']: intl.formatMessage(messages.confirmPasswordError) })));
135
+ }
136
+ };
137
+ const handleCloseDialog = () => {
138
+ setOpenChangePasswordDialog(false);
139
+ setField(initialFieldState);
140
+ setError(initialErrorState);
141
+ };
142
+ const handleSubmitPassword = (event) => {
143
+ event.preventDefault();
144
+ event.stopPropagation();
145
+ setIsSubmittingPassword(true);
146
+ UserService.changeUserPassword(user === null || user === void 0 ? void 0 : user.id, field.password, field.newPassword)
147
+ .then(() => {
148
+ setIsSubmittingPassword(false);
149
+ handleCloseDialog();
150
+ })
151
+ .catch((error) => {
152
+ setIsSubmittingPassword(false);
153
+ const _error = formatHttpError(error);
154
+ Logger.error(SCOPE_SC_UI, error);
155
+ if (_error.passwordError) {
156
+ setError((prev) => (Object.assign(Object.assign({}, prev), { ['password']: _error.passwordError.error })));
157
+ }
158
+ if (_error.newPasswordError) {
159
+ setError((prev) => (Object.assign(Object.assign({}, prev), { ['newPassword']: _error.newPasswordError.error })));
160
+ }
161
+ });
162
+ };
163
+ const handleSubmitEmail = (e) => {
164
+ e.preventDefault();
165
+ e.stopPropagation();
166
+ setIsSubmitting(true);
167
+ UserService.changeUserMail(user === null || user === void 0 ? void 0 : user.id, field.email, true)
168
+ .then((res) => {
169
+ handleVerifyEmail(res.validation_code);
170
+ })
171
+ .catch((error) => {
172
+ setIsSubmitting(false);
173
+ const _error = formatHttpError(error);
174
+ setError((prev) => (Object.assign(Object.assign({}, prev), { ['email']: _error.error })));
175
+ });
176
+ };
177
+ const handleVerifyEmail = (code) => {
178
+ UserService.confirmChangeUserMail(user === null || user === void 0 ? void 0 : user.id, field.email, code)
179
+ .then(() => {
180
+ setIsEditing(false);
181
+ setIsSubmitting(false);
182
+ enqueueSnackbar(React.createElement(FormattedMessage, { id: "ui.userProfileEditAccountCredentials.email.success", defaultMessage: "ui.userProfileEditAccountCredentials.email.success" }), {
183
+ variant: 'success',
184
+ autoHideDuration: 1500
185
+ });
186
+ })
187
+ .catch((error) => {
188
+ const _error = formatHttpError(error);
189
+ setError((prev) => (Object.assign(Object.assign({}, prev), { ['email']: _error.error })));
190
+ setIsSubmitting(false);
191
+ });
192
+ };
193
+ if (!user) {
194
+ return;
195
+ }
196
+ return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className) }, rest),
197
+ React.createElement(React.Fragment, null,
198
+ React.createElement(Typography, { variant: "body1", className: classes.email },
199
+ React.createElement(FormattedMessage, { id: "ui.userProfileEditAccountCredentials.email", defaultMessage: "ui.userProfileEditAccountCredentials.email" })),
200
+ React.createElement(React.Fragment, null, isSubmitting ? (React.createElement(CircularProgress, null)) : (React.createElement(React.Fragment, null,
201
+ React.createElement(EmailTextField, { name: "email", disabled: !isEditing || isSubmitting, size: "small", value: field.email, onChange: handleChange, onBlur: handleEmailBlur, error: Boolean(error.email), helperText: error.email, InputProps: {
202
+ endAdornment: (React.createElement(InputAdornment, { position: "end" }, !isEditing ? (React.createElement(IconButton, { onClick: () => setIsEditing(true), edge: "end" },
203
+ React.createElement(Icon, null, "edit"))) : error.email ? (React.createElement(Icon, { color: "error" }, "error")) : (React.createElement(IconButton, { onClick: handleSubmitEmail, edge: "end", color: "primary", disabled: !field.email },
204
+ React.createElement(Icon, null, "check")))))
205
+ } })))),
206
+ React.createElement(Typography, { variant: "body1", className: classes.password },
207
+ React.createElement(FormattedMessage, { id: "ui.userProfileEditAccountCredentials.passwordLabel", defaultMessage: "ui.userProfileEditAccountCredentials.passwordLabel" })),
208
+ React.createElement(Button, { size: "small", variant: "outlined", onClick: () => setOpenChangePasswordDialog(true), sx: { mb: 1 } },
209
+ React.createElement(FormattedMessage, { id: "ui.userProfileEditAccountCredentials.changePassword", defaultMessage: "ui.userProfileEditAccountCredentials.changePassword" }))),
210
+ openChangePasswordDialog && (React.createElement(PasswordDialog, Object.assign({ title: intl.formatMessage(messages.changePasswordTitle), open: openChangePasswordDialog, onClose: handleCloseDialog }, rest),
211
+ React.createElement(FormGroup, { className: classes.form },
212
+ React.createElement(PasswordTextField, { className: classes.formField, name: "password", disabled: isSubmittingPassword, label: React.createElement(FormattedMessage, { id: "ui.userProfileEditAccountCredentials.password", defaultMessage: "ui.userProfileEditAccountCredentials.password" }), size: "medium", value: field.password, onChange: handleChange, error: Boolean(error.password), helperText: error.password }),
213
+ React.createElement(PasswordTextField, { name: "newPassword", className: classes.formField, disabled: isSubmittingPassword, label: React.createElement(FormattedMessage, { id: "ui.userProfileEditAccountCredentials.newPassword", defaultMessage: "ui.userProfileEditAccountCredentials.newPassword" }), size: "medium", value: field.newPassword, onChange: handleChange, error: Boolean(error.newPassword), helperText: error.newPassword, InputProps: {
214
+ endAdornment: (React.createElement(InputAdornment, { position: "end" },
215
+ React.createElement(IconButton, { "aria-label": "info", onClick: handlePopoverOpen, edge: "end" }, React.createElement(Icon, null, "info"))))
216
+ } }),
217
+ React.createElement(Popover, { open: open, anchorEl: anchorEl, anchorOrigin: {
218
+ vertical: 'center',
219
+ horizontal: 'left'
220
+ }, transformOrigin: {
221
+ vertical: 'center',
222
+ horizontal: 'right'
223
+ }, onClose: handlePopoverClose },
224
+ React.createElement(Box, { sx: { p: '10px' } },
225
+ React.createElement(Typography, { component: 'span', sx: { whiteSpace: 'pre-line' } },
226
+ React.createElement(FormattedMessage, { id: "ui.userProfileEditAccountCredentials.newPassword.info", defaultMessage: "ui.userProfileEditAccountCredentials.newPassword.info" })))),
227
+ React.createElement(PasswordTextField, { name: "confirmPassword", className: classes.formField, disabled: isSubmittingPassword, label: React.createElement(FormattedMessage, { id: "ui.userProfileEditAccountCredentials.confirmPassword", defaultMessage: "ui.userProfileEditAccountCredentials.confirmPassword" }), size: "medium", value: field.confirmPassword, onChange: handleChange, onBlur: validateInput, error: Boolean(error.confirmPassword), helperText: error.confirmPassword })),
228
+ React.createElement(LoadingButton, { className: classes.confirmChangeButton, loading: isSubmittingPassword, disabled: !field.confirmPassword || Boolean(error.password) || Boolean(error.newPassword), variant: "contained", onClick: handleSubmitPassword },
229
+ React.createElement(FormattedMessage, { id: "ui.userProfileEditAccountCredentials.changePassword", defaultMessage: "ui.userProfileEditAccountCredentials.changePassword" }))))));
230
+ }
231
+ //# sourceMappingURL=AccountCredentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountCredentials.js","sourceRoot":"","sources":["../../../../../src/components/UserProfileEdit/Section/AccountCredentials.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAC,MAAM,O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,CAAC,OAAO,CAyB5E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/PasswordTextField/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAwC,cAAc,EAAC,MAAM,eAAe,CAAC;AAWpF,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,cAAc,GAAG,GAAG,CAAC,OAAO,CA4B5E"}
@@ -9,6 +9,7 @@ const Root = styled(TextField, {
9
9
  overridesResolver: (props, styles) => styles.root
10
10
  })(({ theme }) => ({}));
11
11
  export default function PasswordTextField(props) {
12
+ var _a;
12
13
  // STATE
13
14
  const [showPassword, setShowPassword] = useState(false);
14
15
  // HANDLERS
@@ -17,8 +18,10 @@ export default function PasswordTextField(props) {
17
18
  };
18
19
  // RENDER
19
20
  return (React.createElement(Root, Object.assign({ type: showPassword ? 'text' : 'password' }, props, { InputProps: {
20
- endAdornment: (React.createElement(InputAdornment, { position: "end" },
21
- React.createElement(IconButton, { "aria-label": "toggle password visibility", onClick: handleClick, edge: "end" }, showPassword ? React.createElement(Icon, null, "visibility_off") : React.createElement(Icon, null, "visibility"))))
21
+ endAdornment: (React.createElement(React.Fragment, null, (_a = props === null || props === void 0 ? void 0 : props.InputProps) === null || _a === void 0 ? void 0 :
22
+ _a.endAdornment,
23
+ React.createElement(InputAdornment, { position: "end" },
24
+ React.createElement(IconButton, { "aria-label": "toggle password visibility", onClick: handleClick, edge: "end" }, showPassword ? React.createElement(Icon, null, "visibility_off") : React.createElement(Icon, null, "visibility")))))
22
25
  } })));
23
26
  }
24
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/shared/PasswordTextField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AACtC,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAC,UAAU,EAA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 -46,6 +46,10 @@ export interface SCHeaderMenuUrlsType {
46
46
  * User followed posts page url
47
47
  */
48
48
  followedPosts?: string;
49
+ /**
50
+ * User followed discussions page url
51
+ */
52
+ followedDiscussions?: string;
49
53
  /**
50
54
  * People suggestion page url
51
55
  */
@@ -1 +1 @@
1
- {"version":3,"file":"headerMenuUrls.d.ts","sourceRoot":"","sources":["../../../src/types/headerMenuUrls.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"headerMenuUrls.d.ts","sourceRoot":"","sources":["../../../src/types/headerMenuUrls.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}