import { AddressType } from '@reltio/mdm-sdk';
export var convertSearchResultToOption = function (result) {
    return {
        id: result.Id,
        type: result.Type,
        fullAddress: result.Text,
        description: result.Description
    };
};
export var getOptionLabel = function (option) {
    return typeof option === 'string' ? option : option.fullAddress;
};
export var isOptionEqualToValue = function (option, value) {
    if (option.type === AddressType.Container) {
        return false;
    }
    return option.fullAddress === value;
};
export var isMinLength = function (value, minLength) {
    return (value === null || value === void 0 ? void 0 : value.trim().length) >= minLength;
};
