{"version":3,"sources":["email-input/email-input.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;GAGG;AACH,qBAAa,UAAW,SAAQ,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC;IAC3D,SAAS,CAAC,EAAE;;;;;;iBAA2B;IAEvC;;OAEG;IAEH,IAAI,MAAC;IAEL,MAAM;IAcN;;OAEG;IACI,KAAK;IAIZ;;OAEG;IACI,IAAI;IAIX;;OAEG;IACI,QAAQ;CAGlB;;AAED,wBAAkE","file":"email-input.d.ts","sourcesContent":["/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n\n// @ts-nocheck\n\nimport React from 'react';\nimport { createCn } from 'bem-react-classname';\nimport { withTheme } from '../cn';\n\nimport Input, { InputProps } from '../input/input';\n\n/**\n * Компонент поля ввода почты.\n * @extends Input\n */\nexport class EmailInput extends React.PureComponent<InputProps> {\n    protected cn = createCn('email-input');\n\n    /**\n     * @type {Input}\n     */\n    // TODO [issues/1018] переписать тесты нужно, что бы private был\n    root;\n\n    render() {\n        return (\n            <Input\n                { ...this.props }\n                type=\"email\"\n                ref={ (root) => {\n                    this.root = root;\n                } }\n                formNoValidate={ true }\n                className={ this.cn() }\n            />\n        );\n    }\n\n    /**\n     * Устанавливает фокус на поле ввода.\n     */\n    public focus() {\n        this.root.focus();\n    }\n\n    /**\n     * Убирает фокус с поля ввода.\n     */\n    public blur() {\n        this.root.blur();\n    }\n\n    /**\n     * Скроллит страницу до поля ввода.\n     */\n    public scrollTo() {\n        this.root.scrollTo();\n    }\n}\n\nexport default withTheme<EmailInputProps, EmailInput>(EmailInput);\n"]}