"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AddressAutocomplete = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const AsyncAutocomplete_1 = require("../AsyncAutocomplete");
const forwardRefWithGeneric_1 = require("../forwardRefWithGeneric");
const useLogic_1 = require("./useLogic");
const AddressAutocompleteInner = (props, ref) => {
    const { handleChange, getOptionLabel, hidePersonalInputDataClassname, hidePersonalDataClassname, } = (0, useLogic_1.useLogic)(props);
    const { minSymbolsToFetch = 3, value = null, onChange, freeSolo = true, ...restProps } = props;
    return ((0, jsx_runtime_1.jsx)(AsyncAutocomplete_1.AsyncAutocomplete, { onChange: handleChange, value: value, freeSolo: freeSolo, minSymbolsToFetch: minSymbolsToFetch, getOptionLabel: getOptionLabel, ref: ref, inputProps: {
            className: hidePersonalInputDataClassname,
        }, overflowOption: { className: hidePersonalDataClassname }, ...restProps }));
};
exports.AddressAutocomplete = (0, forwardRefWithGeneric_1.forwardRefWithGeneric)(AddressAutocompleteInner);
