import { jsx as _jsx } from "react/jsx-runtime";
import { PhoneNumberField } from '../../../scalars/components/phone-number-field/index.js';
import { normalizeStringValue } from './utils.js';
export const buildPhoneCellEditor = (phoneNumberFieldProps) => {
    const PhoneNumberCellEditor = (value, onChange, context) => {
        const phoneValue = normalizeStringValue(value);
        return (_jsx(PhoneNumberField, { name: context.column.field, autoComplete: "off", className: "max-w-full", autoFocus: true, ...phoneNumberFieldProps, value: phoneValue, onChange: (value) => {
                onChange(value);
            } }));
    };
    return PhoneNumberCellEditor;
};
//# sourceMappingURL=phone-editor.js.map