index.tsx 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. import React from 'react';
  2. import cls from 'classnames';
  3. import PropTypes from 'prop-types';
  4. import InputFoundation from '@douyinfe/semi-foundation/input/foundation';
  5. import { cssClasses, strings } from '@douyinfe/semi-foundation/input/constants';
  6. import { isSemiIcon } from '../_utils';
  7. import BaseComponent from '../_base/baseComponent';
  8. import '@douyinfe/semi-foundation/input/input.scss';
  9. import { isString, noop, isFunction, isUndefined } from 'lodash';
  10. import { IconClear, IconEyeOpened, IconEyeClosedSolid } from '@douyinfe/semi-icons';
  11. const prefixCls = cssClasses.PREFIX;
  12. const sizeSet = strings.SIZE;
  13. const statusSet = strings.STATUS;
  14. const modeSet = strings.MODE;
  15. export type { InputGroupProps } from './inputGroup';
  16. export type { TextAreaProps } from './textarea';
  17. export type InputSize = 'small' | 'large' | 'default';
  18. export type InputMode = 'password';
  19. // still keep success as ValidateStatus optional value because form will pass success as props.validateStatus in sometime
  20. // Although we do not consume success in the input to configure special styles, we should allow it as a legal props value, otherwise a warning will be thrown
  21. export type ValidateStatus = "default" | "error" | "warning" | "success";
  22. export interface InputProps extends
  23. Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'prefix' | 'size' | 'placeholder' | 'onFocus' | 'onBlur'> {
  24. 'aria-label'?: React.AriaAttributes['aria-label'];
  25. 'aria-describedby'?: React.AriaAttributes['aria-describedby'];
  26. 'aria-errormessage'?: React.AriaAttributes['aria-errormessage'];
  27. 'aria-invalid'?: React.AriaAttributes['aria-invalid'];
  28. 'aria-labelledby'?: React.AriaAttributes['aria-labelledby'];
  29. 'aria-required'?: React.AriaAttributes['aria-required'];
  30. addonBefore?: React.ReactNode;
  31. addonAfter?: React.ReactNode;
  32. borderless?: boolean;
  33. prefix?: React.ReactNode;
  34. suffix?: React.ReactNode;
  35. mode?: InputMode;
  36. value?: React.ReactText;
  37. defaultValue?: React.ReactText;
  38. disabled?: boolean;
  39. readonly?: boolean;
  40. type?: string;
  41. showClear?: boolean;
  42. hideSuffix?: boolean;
  43. placeholder?: React.ReactText;
  44. insetLabel?: React.ReactNode;
  45. insetLabelId?: string;
  46. size?: InputSize;
  47. className?: string;
  48. clearIcon?: React.ReactNode;
  49. style?: React.CSSProperties;
  50. validateStatus?: ValidateStatus;
  51. onClear?: (e: React.MouseEvent<HTMLDivElement>) => void;
  52. onChange?: (value: string, e: React.ChangeEvent<HTMLInputElement>) => void;
  53. onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
  54. onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
  55. onInput?: (e: React.MouseEvent<HTMLInputElement>) => void;
  56. onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
  57. onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
  58. onKeyPress?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
  59. onEnterPress?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
  60. inputStyle?: React.CSSProperties;
  61. getValueLength?: (value: string) => number;
  62. forwardRef?: ((instance: any) => void) | React.MutableRefObject<any> | null;
  63. preventScroll?: boolean;
  64. /** internal prop, DatePicker use it */
  65. showClearIgnoreDisabled?: boolean;
  66. onlyBorder?: number
  67. }
  68. export interface InputState {
  69. value: React.ReactText;
  70. cachedValue: React.ReactText;
  71. disabled: boolean;
  72. props: Record<string, any>;
  73. isFocus: boolean;
  74. isHovering: boolean;
  75. eyeClosed: boolean;
  76. minLength: number
  77. }
  78. class Input extends BaseComponent<InputProps, InputState> {
  79. static propTypes = {
  80. 'aria-label': PropTypes.string,
  81. 'aria-labelledby': PropTypes.string,
  82. 'aria-invalid': PropTypes.bool,
  83. 'aria-errormessage': PropTypes.string,
  84. 'aria-describedby': PropTypes.string,
  85. 'aria-required': PropTypes.bool,
  86. addonBefore: PropTypes.node,
  87. addonAfter: PropTypes.node,
  88. clearIcon: PropTypes.node,
  89. prefix: PropTypes.node,
  90. suffix: PropTypes.node,
  91. mode: PropTypes.oneOf(modeSet),
  92. value: PropTypes.any,
  93. defaultValue: PropTypes.any,
  94. disabled: PropTypes.bool,
  95. readonly: PropTypes.bool,
  96. autoFocus: PropTypes.bool,
  97. type: PropTypes.string,
  98. showClear: PropTypes.bool,
  99. hideSuffix: PropTypes.bool,
  100. placeholder: PropTypes.any,
  101. size: PropTypes.oneOf(sizeSet),
  102. className: PropTypes.string,
  103. style: PropTypes.object,
  104. validateStatus: PropTypes.oneOf(statusSet),
  105. onClear: PropTypes.func,
  106. onChange: PropTypes.func,
  107. onBlur: PropTypes.func,
  108. onFocus: PropTypes.func,
  109. onInput: PropTypes.func,
  110. onKeyDown: PropTypes.func,
  111. onKeyUp: PropTypes.func,
  112. onKeyPress: PropTypes.func,
  113. onEnterPress: PropTypes.func,
  114. onCompositionStart: PropTypes.func,
  115. onCompositionEnd: PropTypes.func,
  116. onCompositionUpdate: PropTypes.func,
  117. insetLabel: PropTypes.node,
  118. insetLabelId: PropTypes.string,
  119. inputStyle: PropTypes.object,
  120. getValueLength: PropTypes.func,
  121. preventScroll: PropTypes.bool,
  122. borderless: PropTypes.bool,
  123. };
  124. static defaultProps = {
  125. addonBefore: '',
  126. addonAfter: '',
  127. prefix: '',
  128. suffix: '',
  129. readonly: false,
  130. type: 'text',
  131. showClear: false,
  132. hideSuffix: false,
  133. placeholder: '',
  134. size: 'default',
  135. className: '',
  136. onClear: noop,
  137. onChange: noop,
  138. onBlur: noop,
  139. onFocus: noop,
  140. onInput: noop,
  141. onKeyDown: noop,
  142. onKeyUp: noop,
  143. onKeyPress: noop,
  144. onEnterPress: noop,
  145. onCompositionStart: noop,
  146. onCompositionEnd: noop,
  147. onCompositionUpdate: noop,
  148. validateStatus: 'default',
  149. borderless: false,
  150. };
  151. inputRef!: React.RefObject<HTMLInputElement>;
  152. prefixRef!: React.RefObject<React.ReactNode>;
  153. suffixRef!: React.RefObject<React.ReactNode>;
  154. foundation!: InputFoundation;
  155. constructor(props: InputProps) {
  156. super(props);
  157. const initValue = 'value' in props ? props.value : props.defaultValue;
  158. this.state = {
  159. value: initValue,
  160. cachedValue: props.value, // Cache current props.value value
  161. disabled: false,
  162. props: {},
  163. isFocus: false,
  164. isHovering: false,
  165. eyeClosed: props.mode === 'password',
  166. minLength: props.minLength,
  167. };
  168. this.inputRef = React.createRef();
  169. this.prefixRef = React.createRef();
  170. this.suffixRef = React.createRef();
  171. this.foundation = new InputFoundation(this.adapter);
  172. }
  173. get adapter() {
  174. return {
  175. ...super.adapter,
  176. setValue: (value: string) => this.setState({ value }),
  177. setEyeClosed: (value: boolean) => this.setState({ eyeClosed: value }),
  178. toggleFocusing: (isFocus: boolean) => {
  179. this.setState({ isFocus });
  180. },
  181. focusInput: () => {
  182. const { preventScroll } = this.props;
  183. const input = this.inputRef && this.inputRef.current;
  184. input && input.focus({ preventScroll });
  185. },
  186. toggleHovering: (isHovering: boolean) => this.setState({ isHovering }),
  187. getIfFocusing: () => this.state.isFocus,
  188. notifyChange: (cbValue: string, e: React.ChangeEvent<HTMLInputElement>) => this.props.onChange(cbValue, e),
  189. notifyBlur: (val: string, e: React.FocusEvent<HTMLInputElement>) => this.props.onBlur(e),
  190. notifyFocus: (val: string, e: React.FocusEvent<HTMLInputElement>) => this.props.onFocus(e),
  191. notifyInput: (e: React.MouseEvent<HTMLInputElement>) => this.props.onInput(e),
  192. notifyKeyPress: (e: React.KeyboardEvent<HTMLInputElement>) => this.props.onKeyPress(e),
  193. notifyKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => this.props.onKeyDown(e),
  194. notifyKeyUp: (e: React.KeyboardEvent<HTMLInputElement>) => this.props.onKeyUp(e),
  195. notifyEnterPress: (e: React.KeyboardEvent<HTMLInputElement>) => this.props.onEnterPress(e),
  196. notifyClear: (e: React.MouseEvent<HTMLDivElement>) => this.props.onClear(e),
  197. notifyCompositionStart: (e: React.CompositionEvent<HTMLInputElement>) => this.props.onCompositionStart(e),
  198. notifyCompositionEnd: (e: React.CompositionEvent<HTMLInputElement>) => this.props.onCompositionEnd(e),
  199. notifyCompositionUpdate: (e: React.CompositionEvent<HTMLInputElement>) => this.props.onCompositionUpdate(e),
  200. setMinLength: (minLength: number) => this.setState({ minLength }),
  201. isEventTarget: (e: React.MouseEvent) => e && e.target === e.currentTarget,
  202. };
  203. }
  204. static getDerivedStateFromProps(props: InputProps, state: InputState) {
  205. const willUpdateStates: Partial<InputState> = {};
  206. if (props.value !== state.cachedValue) {
  207. willUpdateStates.value = props.value;
  208. willUpdateStates.cachedValue = props.value;
  209. }
  210. return willUpdateStates;
  211. }
  212. componentDidUpdate(prevProps: InputProps) {
  213. const { mode } = this.props;
  214. if (prevProps.mode !== mode) {
  215. this.handleModeChange(mode);
  216. }
  217. }
  218. componentDidMount(): void {
  219. // autofocus is changed from the original support of input to the support of manually calling the focus method,
  220. // so that preventScroll can still take effect under the setting of autofocus
  221. const { disabled, autoFocus, preventScroll } = this.props;
  222. if (!disabled && (autoFocus || this.props['autofocus'])) {
  223. this.inputRef.current.focus({ preventScroll });
  224. }
  225. }
  226. handleClear = (e: React.MouseEvent<HTMLInputElement>) => {
  227. this.foundation.handleClear(e);
  228. };
  229. handleClick = (e: React.MouseEvent<HTMLDivElement>) => {
  230. this.foundation.handleClick(e);
  231. };
  232. handleMouseOver = (e: React.MouseEvent<HTMLDivElement>) => {
  233. this.setState({ isHovering: true });
  234. };
  235. handleMouseLeave = (e: React.MouseEvent<HTMLDivElement>) => {
  236. this.setState({ isHovering: false });
  237. };
  238. handleModeChange = (mode: string) => {
  239. this.foundation.handleModeChange(mode);
  240. };
  241. handleClickEye = (e: React.MouseEvent<HTMLInputElement>) => {
  242. this.foundation.handleClickEye(e);
  243. };
  244. handleMouseDown = (e: React.MouseEvent<HTMLInputElement>) => {
  245. this.foundation.handleMouseDown(e);
  246. };
  247. handleMouseUp = (e: React.MouseEvent<HTMLInputElement>) => {
  248. this.foundation.handleMouseUp(e);
  249. };
  250. handleModeEnterPress = (e: React.KeyboardEvent<HTMLDivElement>) => {
  251. this.foundation.handleModeEnterPress(e);
  252. };
  253. handleClickPrefixOrSuffix = (e: React.MouseEvent<HTMLInputElement>) => {
  254. this.foundation.handleClickPrefixOrSuffix(e);
  255. };
  256. handlePreventMouseDown = (e: React.MouseEvent<HTMLInputElement>) => {
  257. this.foundation.handlePreventMouseDown(e);
  258. };
  259. renderPrepend() {
  260. const { addonBefore } = this.props;
  261. if (addonBefore) {
  262. const prefixWrapperCls = cls({
  263. [`${prefixCls}-prepend`]: true,
  264. [`${prefixCls}-prepend-text`]: addonBefore && isString(addonBefore),
  265. [`${prefixCls}-prepend-icon`]: isSemiIcon(addonBefore),
  266. });
  267. return (
  268. <div className={prefixWrapperCls} x-semi-prop="addonBefore">
  269. {addonBefore}
  270. </div>
  271. );
  272. }
  273. return null;
  274. }
  275. renderAppend() {
  276. const { addonAfter } = this.props;
  277. if (addonAfter) {
  278. const prefixWrapperCls = cls({
  279. [`${prefixCls}-append`]: true,
  280. [`${prefixCls}-append-text`]: addonAfter && isString(addonAfter),
  281. [`${prefixCls}-append-icon`]: isSemiIcon(addonAfter),
  282. });
  283. return (
  284. <div className={prefixWrapperCls} x-semi-prop="addonAfter">
  285. {addonAfter}
  286. </div>
  287. );
  288. }
  289. return null;
  290. }
  291. renderClearBtn() {
  292. const clearCls = cls(`${prefixCls}-clearbtn`);
  293. const { clearIcon } = this.props;
  294. const allowClear = this.foundation.isAllowClear();
  295. // use onMouseDown to fix issue 1203
  296. if (allowClear) {
  297. return (
  298. // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
  299. <div
  300. className={clearCls}
  301. onMouseDown={this.handleClear}
  302. >
  303. {clearIcon ? clearIcon : <IconClear />}
  304. </div>
  305. );
  306. }
  307. return null;
  308. }
  309. renderModeBtn() {
  310. const { eyeClosed } = this.state;
  311. const { mode, disabled } = this.props;
  312. const modeCls = cls(`${prefixCls}-modebtn`);
  313. const modeIcon = eyeClosed ? <IconEyeClosedSolid /> : <IconEyeOpened />;
  314. // alway show password button for a11y
  315. const showModeBtn = mode === 'password' && !disabled;
  316. const ariaLabel = eyeClosed ? 'Show password' : 'Hidden password';
  317. if (showModeBtn) {
  318. return (
  319. <div
  320. role="button"
  321. tabIndex={0}
  322. aria-label={ariaLabel}
  323. className={modeCls}
  324. onClick={this.handleClickEye}
  325. onMouseDown={this.handleMouseDown}
  326. onMouseUp={this.handleMouseUp}
  327. onKeyPress={this.handleModeEnterPress}
  328. >
  329. {modeIcon}
  330. </div>
  331. );
  332. }
  333. return null;
  334. }
  335. renderPrefix() {
  336. const { prefix, insetLabel, insetLabelId } = this.props;
  337. const labelNode = prefix || insetLabel;
  338. if (!labelNode) {
  339. return null;
  340. }
  341. const prefixWrapperCls = cls({
  342. [`${prefixCls}-prefix`]: true,
  343. [`${prefixCls}-inset-label`]: insetLabel,
  344. [`${prefixCls}-prefix-text`]: labelNode && isString(labelNode),
  345. [`${prefixCls}-prefix-icon`]: isSemiIcon(labelNode),
  346. });
  347. return (
  348. // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
  349. <div
  350. className={prefixWrapperCls}
  351. onMouseDown={this.handlePreventMouseDown}
  352. onClick={this.handleClickPrefixOrSuffix}
  353. id={insetLabelId}
  354. x-semi-prop="prefix,insetLabel"
  355. >
  356. {labelNode}
  357. </div>
  358. );
  359. }
  360. renderSuffix(suffixAllowClear: boolean) {
  361. const { suffix, hideSuffix } = this.props;
  362. if (!suffix) {
  363. return null;
  364. }
  365. const suffixWrapperCls = cls({
  366. [`${prefixCls}-suffix`]: true,
  367. [`${prefixCls}-suffix-text`]: suffix && isString(suffix),
  368. [`${prefixCls}-suffix-icon`]: isSemiIcon(suffix),
  369. [`${prefixCls}-suffix-hidden`]: suffixAllowClear && Boolean(hideSuffix),
  370. });
  371. return (
  372. // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
  373. <div
  374. className={suffixWrapperCls}
  375. onMouseDown={this.handlePreventMouseDown}
  376. onClick={this.handleClickPrefixOrSuffix}
  377. x-semi-prop="suffix"
  378. >
  379. {suffix}
  380. </div>
  381. );
  382. }
  383. getInputRef() {
  384. const { forwardRef } = this.props;
  385. if (!isUndefined(forwardRef)) {
  386. if (typeof forwardRef === 'function') {
  387. return (node: HTMLInputElement) => {
  388. forwardRef(node);
  389. this.inputRef = { current: node };
  390. };
  391. } else if (Object.prototype.toString.call(forwardRef) === '[object Object]') {
  392. this.inputRef = forwardRef;
  393. return forwardRef;
  394. }
  395. }
  396. return this.inputRef;
  397. }
  398. render() {
  399. const {
  400. addonAfter,
  401. addonBefore,
  402. autoFocus,
  403. clearIcon,
  404. className,
  405. disabled,
  406. defaultValue,
  407. placeholder,
  408. prefix,
  409. mode,
  410. insetLabel,
  411. insetLabelId,
  412. validateStatus,
  413. type,
  414. readonly,
  415. size,
  416. suffix,
  417. style,
  418. showClear,
  419. onEnterPress,
  420. onClear,
  421. hideSuffix,
  422. inputStyle,
  423. forwardRef,
  424. maxLength,
  425. getValueLength,
  426. preventScroll,
  427. borderless,
  428. showClearIgnoreDisabled,
  429. onlyBorder,
  430. ...rest
  431. } = this.props;
  432. const { value, isFocus, minLength: stateMinLength } = this.state;
  433. const suffixAllowClear = this.foundation.isAllowClear();
  434. const suffixIsIcon = isSemiIcon(suffix);
  435. const ref = this.getInputRef();
  436. const wrapperPrefix = `${prefixCls}-wrapper`;
  437. const wrapperCls = cls(wrapperPrefix, className, {
  438. [`${prefixCls}-wrapper__with-prefix`]: prefix || insetLabel,
  439. [`${prefixCls}-wrapper__with-suffix`]: suffix,
  440. [`${prefixCls}-wrapper__with-suffix-hidden`]: suffixAllowClear && Boolean(hideSuffix),
  441. [`${prefixCls}-wrapper__with-suffix-icon`]: suffixIsIcon,
  442. [`${prefixCls}-wrapper__with-append`]: addonBefore,
  443. [`${prefixCls}-wrapper__with-prepend`]: addonAfter,
  444. [`${prefixCls}-wrapper__with-append-only`]: addonBefore && !addonAfter,
  445. [`${prefixCls}-wrapper__with-prepend-only`]: !addonBefore && addonAfter,
  446. [`${wrapperPrefix}-readonly`]: readonly,
  447. [`${wrapperPrefix}-disabled`]: disabled,
  448. [`${wrapperPrefix}-warning`]: validateStatus === 'warning',
  449. [`${wrapperPrefix}-error`]: validateStatus === 'error',
  450. [`${wrapperPrefix}-focus`]: isFocus,
  451. [`${wrapperPrefix}-clearable`]: showClear,
  452. [`${wrapperPrefix}-modebtn`]: mode === 'password',
  453. [`${wrapperPrefix}-hidden`]: type === 'hidden',
  454. [`${wrapperPrefix}-${size}`]: size,
  455. [`${prefixCls}-borderless`]: borderless,
  456. [`${prefixCls}-only_border`]: onlyBorder !== undefined && onlyBorder !== null,
  457. });
  458. const inputCls = cls(prefixCls, {
  459. [`${prefixCls}-${size}`]: size,
  460. [`${prefixCls}-disabled`]: disabled,
  461. [`${prefixCls}-sibling-clearbtn`]: this.foundation.isAllowClear(),
  462. [`${prefixCls}-sibling-modebtn`]: mode === 'password',
  463. });
  464. const inputValue = value === null || value === undefined ? '' : value;
  465. const inputProps: React.InputHTMLAttributes<HTMLInputElement> = {
  466. ...rest,
  467. style: inputStyle,
  468. className: inputCls,
  469. disabled,
  470. readOnly: readonly,
  471. type: this.foundation.handleInputType(type),
  472. placeholder: placeholder as string,
  473. onInput: e => this.foundation.handleInput(e),
  474. onChange: e => this.foundation.handleChange(e.target.value, e),
  475. onFocus: e => this.foundation.handleFocus(e),
  476. onBlur: e => this.foundation.handleBlur(e),
  477. onKeyUp: e => this.foundation.handleKeyUp(e),
  478. onKeyDown: e => this.foundation.handleKeyDown(e),
  479. onKeyPress: e => this.foundation.handleKeyPress(e),
  480. onCompositionStart: this.foundation.handleCompositionStart,
  481. onCompositionEnd: this.foundation.handleCompositionEnd,
  482. onCompositionUpdate: this.foundation.handleCompositionUpdate,
  483. value: inputValue,
  484. };
  485. if (!isFunction(getValueLength)) {
  486. inputProps.maxLength = maxLength;
  487. }
  488. if (stateMinLength) {
  489. inputProps.minLength = stateMinLength;
  490. }
  491. if (validateStatus === 'error') {
  492. inputProps['aria-invalid'] = 'true';
  493. }
  494. let wrapperStyle = { ...style };
  495. if (onlyBorder !== undefined) {
  496. wrapperStyle = {
  497. borderWidth: onlyBorder,
  498. ...style
  499. };
  500. }
  501. return (
  502. // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
  503. <div
  504. className={wrapperCls}
  505. style={wrapperStyle}
  506. onMouseEnter={e => this.handleMouseOver(e)}
  507. onMouseLeave={e => this.handleMouseLeave(e)}
  508. onClick={e => this.handleClick(e)}
  509. >
  510. {this.renderPrepend()}
  511. {this.renderPrefix()}
  512. <input {...inputProps} ref={ref} />
  513. {this.renderClearBtn()}
  514. {this.renderSuffix(suffixAllowClear)}
  515. {this.renderModeBtn()}
  516. {this.renderAppend()}
  517. </div>
  518. );
  519. }
  520. }
  521. const ForwardInput = React.forwardRef<HTMLInputElement, Omit<InputProps, 'forwardRef'>>((props, ref) => <Input {...props} forwardRef={ref} />);
  522. export default ForwardInput;
  523. export { Input };