"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EmailField = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("react");
const personalDataSecurity_1 = require("../personalDataSecurity");
const TextField_1 = require("../TextField");
const classNames_1 = require("../utils/classNames");
exports.EmailField = (0, react_1.forwardRef)(({ isHidePersonalData, inputProps, ...props }, ref) => {
    const hidePersonalDataClassname = (0, personalDataSecurity_1.useHidePersonalData)({
        isEnabled: isHidePersonalData,
        type: 'input',
    });
    return ((0, jsx_runtime_1.jsx)(TextField_1.TextField, { ref: ref, type: "email", inputProps: {
            ...inputProps,
            className: (0, classNames_1.classNames)(inputProps?.className, hidePersonalDataClassname),
        }, ...props }));
});
