/*!
 * KoliBri - The accessible HTML-Standard
 */
import { resolveTargets } from "../../utils/aria-labelledby";
import { Log, watchValidator } from "../utils";
export const validateAriaLabelledby = (component, host, internals, value) => {
    watchValidator(component, '_ariaLabelledby', (value) => typeof value === 'string' || typeof value === 'undefined', new Set(['string']), value);
    const elements = resolveTargets(host, value);
    if (internals) {
        try {
            internals.ariaLabelledByElements = elements;
        }
        catch (_a) {
        }
        Log.debug(['WebComponent internals', internals]);
    }
    return elements;
};
//# sourceMappingURL=aria-labelledby.js.map
